Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where to put war files with tomcat ?

 
luis meira
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In TOMCAT_HOME/webappps/
 
luis meira
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
did you restart you Tomcat ?
 
g madhava
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya
Originally posted by Engin Okucu:
did you restart you Tomcat ?
 
Madan, Gopal
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic