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!
LVL 3
aflat362Asked:
Who is Participating?
 
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.