Hi Friends...
This is simple information but very useful for beginners of Tomcat users.
Versions Used:
Java
jdk1.6.0_31
jre6
Tomcat Server
apache-tomcat-6.0.36
Install the software's... After installation you can find them at
1)C:\Program Files\Java
2)C:\Program Files\Apache Software Foundation
Now Settings of PATH, CLASSPATH, JRE_HOME for tomcat running
Step1: PATH setting.
Computer->Right Click->Properties-> Click on Advanced System settings->you can find a system properties pop up window->Click on Environment Variables-> Environment variable pop window comes ->
Now Observe:
System variables
Click on New-> Opens new System Variables-> give
Variable name: PATH
Variable Value:C:\Program Files\Java\jdk1.6.0_31\bin
Click on OK.
Step2: CLASSPATH setting
Stay in Environment Variables pop up window only.
Observer:
User variables for (your machine name)
Click on New-> Opens new User Variable
Give
Variable name: CLASSPATH
Variable value:C:\Program Files\Java\jdk1.6.0_31\lib
Click on OK.
Step3: JRE_HOME for Tomcat
Stay in Environment Variables pop up window only.
Observe:
System Variable
Click on New-> Opens new User Variable
Give
Variable name:JRE_HOME
Variable value:C:\Program Files\Java\jdk1.6.0_31\jre
Click on OK.
NOTE: while giving JRE_HOME we should navigate to C:\Program Files\Java\jdk1.6.0_31\jre
we should NOT navigate to C:\Program Files\Java\jre6
Here we are going to run tomcat server from command prompt
Make sure you have to keep some points in mind about tomcat server.
In this tutorial I used apache-tomcat-6.0.36 version of tomcat ..
You can find the following folders here at C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36
like bin,conf,lib,logs, temp,webapps, work, LICENCE, NOTICE, .txt file
Tomcat port number:
i) Go to the location: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\conf
ii) find server.xml file ->Open it
we can find tomcat port number in this file like
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
NOTE:
We can change tomcat port number.. This is needed why b'z, if we run oracle server on our machine it uses the same port number..
Now run the following command on command prompt:
C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\bin>shutdown.bat
then it opens another window which tells
Hurray..!!!! We succeed in running tomcat :
NOTE: The opned window should be stay untill we run/close shutdown.bat command on command prompt
NOTE: We can observe startup.bat , shutdown.bat files at the following location.
C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\bin
Not only these two but also some other files at the same location.
Now we are ready to View the home page of Tomcat
Type the following URL on any web browser
http://localhost:8080
Now we are able to see the tomcat home page
Thank you guys
Featured Tutorial:
i) Tomcat Usename and password issues
ii) A simple web application on ECLIPSE IDE.
Sadakar
BI developer
This is simple information but very useful for beginners of Tomcat users.
Versions Used:
Java
jdk1.6.0_31
jre6
Tomcat Server
apache-tomcat-6.0.36
Install the software's... After installation you can find them at
1)C:\Program Files\Java
2)C:\Program Files\Apache Software Foundation
Now Settings of PATH, CLASSPATH, JRE_HOME for tomcat running
Step1: PATH setting.
Computer->Right Click->Properties-> Click on Advanced System settings->you can find a system properties pop up window->Click on Environment Variables-> Environment variable pop window comes ->
Now Observe:
System variables
Click on New-> Opens new System Variables-> give
Variable name: PATH
Variable Value:C:\Program Files\Java\jdk1.6.0_31\bin
Click on OK.
Step2: CLASSPATH setting
Stay in Environment Variables pop up window only.
Observer:
User variables for (your machine name)
Click on New-> Opens new User Variable
Give
Variable name: CLASSPATH
Variable value:C:\Program Files\Java\jdk1.6.0_31\lib
Click on OK.
Step3: JRE_HOME for Tomcat
Stay in Environment Variables pop up window only.
Observe:
System Variable
Click on New-> Opens new User Variable
Give
Variable name:JRE_HOME
Variable value:C:\Program Files\Java\jdk1.6.0_31\jre
Click on OK.
NOTE: while giving JRE_HOME we should navigate to C:\Program Files\Java\jdk1.6.0_31\jre
we should NOT navigate to C:\Program Files\Java\jre6
Tomcat sever starting through command Prompt:
Here we are going to run tomcat server from command prompt
Make sure you have to keep some points in mind about tomcat server.
In this tutorial I used apache-tomcat-6.0.36 version of tomcat ..
You can find the following folders here at C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36
like bin,conf,lib,logs, temp,webapps, work, LICENCE, NOTICE, .txt file
Tomcat port number:
i) Go to the location: C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\conf
ii) find server.xml file ->Open it
we can find tomcat port number in this file like
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
NOTE:
We can change tomcat port number.. This is needed why b'z, if we run oracle server on our machine it uses the same port number..
Now run the following command on command prompt:
C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\bin>shutdown.bat
then it opens another window which tells
Hurray..!!!! We succeed in running tomcat :
NOTE: The opned window should be stay untill we run/close shutdown.bat command on command prompt
NOTE: We can observe startup.bat , shutdown.bat files at the following location.
C:\Program Files\Apache Software Foundation\apache-tomcat-6.0.36\bin
Not only these two but also some other files at the same location.
Now we are ready to View the home page of Tomcat
Type the following URL on any web browser
http://localhost:8080
Now we are able to see the tomcat home page
Thank you guys
Featured Tutorial:
i) Tomcat Usename and password issues
ii) A simple web application on ECLIPSE IDE.
Sadakar
BI developer