• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My application is false status when i see in Tomcat manager (Struts 2) - URGENT PLEASE

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends

i have developed struts applications

i really don't my tomcat is behaving weird..

i kept my struts application

Testingagain - [parent folder]

in that i have resouces with jsp

and web-inf folder with classes folder , lib folder and web.xml

now when i open my tomcat manager

i am getting false status under Running when i opened






when i click start i am getting the following error as following..






I have my struts.xml file in classes folder


Please help me out

i really stuck with this. since 4 days....

 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's not able to load filter defined in web.xml. For time being you can just comment the filter in web.xml to check if application is strating up. Just thinking there may be compilation issue with filter.
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
no shiva that is not the issue
i think it with jar files..

or other not with the filter.
 
Sheriff
Posts: 9707
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think you are supposed to Java EE libraries in the lib folder of your application. Your tomcat has servlet and JSP libraries of its own. Remove the servlet and JSP libraries from WEB-INF/lib folder. If you need them for compilation of .java files, then compile it at some other place. Usually a build script (like ant or maven script) or any IDE will do fine...
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can follow the link http://www.techiegyan.com/?p=12 .
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks you very much friends i will surely try to remove the jar files and try it out

but in our company we are using.. the jsp-api.jar and servlet-api.jar

in the WEB-INF\lib


but here we are not having any issues.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should definitely /not/ have the servlet and JSP jars in your own application: those APIs are provided by the app server itself, and using additional, possibly different, versions may cause problems, particularly during version migrations.

I'd recommend turning logging levels up in order to find what is causing the startup issue--but it sure looks like it's due to the superfluous libraries:In short:

Sun wrote:The behavior of a program that includes such classes or interfaces in its WAR file is undefined.



Other than that, without knowing more it's impossible to help.

Note that putting "URGENT" in the subject line may cause people to /not/ answer your message: I tend to ignore such messages. If it's that urgent then there's probably a quicker way to solve the problem than to wait for someone else to do it for you. See this for further details.
 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Friends,

Thank you very much for your help

yes

1. point as above said we should not the jar files since tomcat server will provide then

2. after removing the jar files also i still have my application in false then i have noticed that the classes files were is different version, that is i have jar of java 5 and the classes were compiled in java 6 , after replacing the class files with java 5 compilation.

the application is superb... running .. thanks you very much.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic