- Export the project in WAR file by selecting the project to deploy -> Export -> WAR file
- There are two ways to deploy WAR file in Apache Tomcat Server.First is through tomcat manager.The steps to deploy WAR from tomcat manager is described below:-
- Open tomcat-users.xml present at appBase location(default appBase is "$CATALINA_BASE)/config or from eclipse go to server >Tomcat v6.0 Server at localhost-config and add user with manager role.For Ex:- Add the following line<user username="admin" password="admin" roles="manager"/>
tomcat_users.xml - Start the tomcat server by executing startup.bat file present at bin folder of apache-tomcat.Open
the Apache Manager by clicking http://localhost:8080 and select Tomcat Manager.
Username = “admin”
Password=”admin" - Upload WAR file as shown below.
Add WAR file - Deployment on Tomcat startup
- The location you deploy web applications to for this type of deployment is called the
appBase
which is specified per Host. Copy the WAR file to be deployed to appBase location.(default appBase is "$CATALINA_BASE/webapps").This method will work only if Host'sdeployOnStartup
attribute is "true".
- The location you deploy web applications to for this type of deployment is called the
Wednesday, 24 October 2012
Deployment in Tomcat Apache Server
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment