How to Deploy .war file to Apache Tomcat Server ?
In this article am going to cover the deployment of web applications using Apache Tomcat Server
A WAR (or "web archive") file is simply a packaged webapp directory.
The WAR file is merely a way of packaging your web applications to make them portable, but they can't be run like that. When it is deployed you will see that it gets extracted into a directory structure including WEB-INF, WEB-INF/lib, etc...
You need to use the Tomcat manager to deploy the WAR file.
The procedure for deploying a new WAR file is:
Just start your tomcat server then type http://localhost:8080 in ur address bar, it will display the tomcat home page.
here's how the Tomcat Home Page looks like..
Go to Tomcat Manager.....
provide default username and password username
:admin and password :admin...
Delete existing deployments(if any). in TOMCAT_HOME/webapps.
now you can find a file browser part called deploy ur war file ..select ur war file location and click deploy ..it
Possible issuesif the system is not accepting username and password provided then follow below steps to configure in a file called "tomcat-users.xml" @ <Tomcat-Root>\conf directory -
assuming the tomcat is installed in this directory [ C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf ]
you need to set user details with the manager role.
<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<user name="admin" password="admin" roles="admin,manager" />
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
--></tomcat-users>
In this article am going to cover the deployment of web applications using Apache Tomcat Server
A WAR (or "web archive") file is simply a packaged webapp directory.
The WAR file is merely a way of packaging your web applications to make them portable, but they can't be run like that. When it is deployed you will see that it gets extracted into a directory structure including WEB-INF, WEB-INF/lib, etc...
You need to use the Tomcat manager to deploy the WAR file.
The procedure for deploying a new WAR file is:
Just start your tomcat server then type http://localhost:8080 in ur address bar, it will display the tomcat home page.
here's how the Tomcat Home Page looks like..
Go to Tomcat Manager.....
provide default username and password username
:admin and password :admin...
Delete existing deployments(if any). in TOMCAT_HOME/webapps.
now you can find a file browser part called deploy ur war file ..select ur war file location and click deploy ..it
Possible issuesif the system is not accepting username and password provided then follow below steps to configure in a file called "tomcat-users.xml" @ <Tomcat-Root>\conf directory -
assuming the tomcat is installed in this directory [ C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf ]
you need to set user details with the manager role.
<?xml version='1.0' encoding='cp1252'?>
<tomcat-users>
<user name="admin" password="admin" roles="admin,manager" />
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
--></tomcat-users>