troubleshooting Question

How do I deploy a .war file project to Tomcat server

Avatar of npanarella
npanarella asked on
Apache Web Server
3 Comments1 Solution938 ViewsLast Modified:
Basically I am working in my IDE(Websphere Studio App Developer) and I want to export my codebase into a .war file to my tomcat server. My question is
how do I deploy this war file to tomcat. From reading below(next paragraph, some reading material I found) it looks as if I can put the .war file in the /manager directory under the webapps
folder and walla my application will be built. Do I have to register the name of this war file in any of the tomcat congfig file(ie. server.xml)?
I assume tomcat knows how to build the project based upon the web.xml file contained within the war file?

If you package the application as a .war file, place the war file in the tomcat/webapps
directory and Tomcat will automatically expand the war file at startup ..."Tried this but it does not work". I also read
that to Deploy a new web application, on a specified context path, from a specified directory or WAR file pathname by putting the
.war file in the installed by default on context path /manager directory. "I have not tried this one yet. Will it work"

Please help.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros