wood burning stoves*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Where to put war files with tomcat ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Where to put war files with tomcat ?" Watch "Where to put war files with tomcat ?" New topic
Author

Where to put war files with tomcat ?

luis meira
Ranch Hand

Joined: Apr 18, 2002
Posts: 55
Hello everyone,
can u tell me where do i put war files with tomcat application server ?
best regards
Lu�s Filipe Meira
See El
Ranch Hand

Joined: Oct 07, 2002
Posts: 44
In TOMCAT_HOME/webappps/


See El<br />SCJP2, SCWCD, IBM XML, SCBCD
luis meira
Ranch Hand

Joined: Apr 18, 2002
Posts: 55
it doesn't work.
i've created the war file with this content :
eshop
- WEB-INF
- classes
- lib
- jsp files
and put the war on tomcat home\webapps
but tomcat doesn't unpack the war file
best regards
Luis Meira
Originally posted by See El:
In TOMCAT_HOME/webappps/
Engin Okucu
Ranch Hand

Joined: Feb 09, 2002
Posts: 174
did you restart you Tomcat ?
g madhava
Ranch Hand

Joined: Sep 14, 2001
Posts: 85
Oops.
Shouldn't the directory structure be
[-eshop
- WEB-INF
- classes
- lib
- jsp files ]
instead of the
[- eshop
- WEB-INF
- classes
- lib
- jsp files ] ?
luis meira
Ranch Hand

Joined: Apr 18, 2002
Posts: 55
ya
Originally posted by Engin Okucu:
did you restart you Tomcat ?
Madan, Gopal
Ranch Hand

Joined: Aug 13, 2001
Posts: 86
Luis:
You put your war files in ..\webapps folder.
Since you said you did that, you should be able to access your web application.(even though you may not see the exploded directory structure under ..\webapps folder).
Second, if unpacking is not happening is your concern, then there is an attribute called unpackWARs for the Host element in the server.xml file. It takes boolean values. Make sure it is set to true for whatever Service element you're interested in.
FYI, if the war was packed properly, you should be able to access your web application, without exploded directory structure.
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Does Tomcat log any exceptions on the console? If there are problems with, for instance, the web.xml file or taglib descriptors, deployment will fail and the application will not be available.
- Peter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Where to put war files with tomcat ?
 
Similar Threads
Where to put application specific configuration files?
moved from jboss-4.0.3 to jboss-5.1.0 where do I put my war files
DB connection pool per webapp if defined in context.xml?
where to put .java file in tomcat
404 error