• 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

How do you deploy a WAR file on Tomcat?

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have created a WAR file called myServlets.war using the packager tool.
I have looked in the war and it shows the files in the form of WEB-INF/classes/mypackage/classname.class where the bolded items are my package names and classfile names.
I placed the WAR in the jakarta-tomcat-4.0.4/webapps/ROOT/WEB-INF/lib directory, and restart my server. However I cannot access my servlets, what is wrong?
Randall
 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
usually you put it in
/tomcat/webapps
and it extracts it to
/tomcat/webapps/yourwarname
it might work if you put it in
/tomcat/webapps/somecontext
too. not sure tho
 
reply
    Bookmark Topic Watch Topic
  • New Topic