File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes My application is false status when i see in Tomcat manager (Struts 2) - URGENT PLEASE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "My application is false status when i see in Tomcat manager (Struts 2) - URGENT PLEASE" Watch "My application is false status when i see in Tomcat manager (Struts 2) - URGENT PLEASE" New topic
Author

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

kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
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....

shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
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.


SCJP 1.5(97%) My Blog
kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
no shiva that is not the issue
i think it with jar files..

or other not with the filter.
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

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...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
You can follow the link http://www.techiegyan.com/?p=12 .
kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
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.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

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

Joined: Mar 22, 2007
Posts: 102
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: My application is false status when i see in Tomcat manager (Struts 2) - URGENT PLEASE