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

How do you deploy a WAR file on Tomcat?

 
Randall Stevens
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • 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
 
Tim Baker
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic