aspose file tools*
The moose likes Tomcat and the fly likes How do you deploy a WAR file on Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How do you deploy a WAR file on Tomcat?" Watch "How do you deploy a WAR file on Tomcat?" New topic
Author

How do you deploy a WAR file on Tomcat?

Randall Stevens
Ranch Hand

Joined: Jul 01, 2003
Posts: 65
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

Joined: Oct 04, 2003
Posts: 541
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


Kim Jong II (North Korea's Dear Leader) said:Nuclear weapons don't kill people, people kill people.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How do you deploy a WAR file on Tomcat?