• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2979
  • Last Modified:

Tomcat - how to deploy war and set up classpath

Here's what should be a fairly simple question for a Tomcat expert.

I've created a Java web application as a war file and would now like to deploy it to my Tomcat server.

I have Tomcat running fine I just want to add a new application to it, configure the classpath, and run the new app.

How is this accomplished?  I'm running Tomcat 5.0

Thanks!
0
aflat362
Asked:
aflat362
2 Solutions
 
objectsCommented:
you should just need to drop the war file in your webapps directory. Tomcat will then automatically deploy it for you.

0
 
emad_sarhanCommented:
at webapps directory put your WAR file.
shutdown Tomcat  then restart it again..
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
Mayank SAssociate Director - Product EngineeringCommented:
The server might need to be restarted (if its an old version, I guess).
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Sorry, didn't refresh.
0
 
aflat362Author Commented:
OK -

After the WAR is in the webapps and I restart, how do I add jar files to my classpath definition for the web app?

Thanks!
0
 
Mayank SAssociate Director - Product EngineeringCommented:
Keep them in WEB-INF\lib or in Tomcat's common\lib folder, before starting the server.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now