npanarella
asked on
How do I deploy a .war file project to Tomcat server
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.
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:
Answered by Cheekycj
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
periwinkle
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area with the following recommendation for this question:
Answered by Cheekycj
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
periwinkle
EE Cleanup Volunteer
server.xml (I'll need that to find out where your
log files are). Then I might request some information
from your logfiles.