• 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

Where to put war files with tomcat ?

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In TOMCAT_HOME/webappps/
 
luis meira
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you restart you Tomcat ?
 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ya

Originally posted by Engin Okucu:
did you restart you Tomcat ?

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic