File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes not recognizing war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "not recognizing war file" Watch "not recognizing war file" New topic

not recognizing war file

Ravi Hyder

Joined: Dec 07, 2005
Posts: 2
Hello all,

I have created a small Servlet program to display name. Followed the directory structure and created the War file and deployed in Tomcat5. I am using Windows XP. I am getting the homepage of Tomcat but it is not recognizing the War file. even the index file is not getting displayed. I checked Servlet program may times and I am able to get the .class file. Is there any server settings I need to do. Plz help me.

With regards,

Ravi P
Sai Shanker

Joined: Aug 09, 2004
Posts: 17
Make sure you have the class files also in the path while creating the war file.
then place the war file under webapps directory.
stop and start tomcat server.
the war file must be recognized and deployed into its respective orginal folder structure automatically when the server is started.

let me know if this helps.
Ravi Hyder

Joined: Dec 07, 2005
Posts: 2

thank you for responding, Sai. i got the issue fixed. i was not using the web.xml appropriately which led to this problem.

With Regards,

Ravi P
I agree. Here's the link:
subject: not recognizing war file
It's not a secret anymore!