PLATFORM
windows 7 family edition 64-bit
jdk 1.7.0
tomcat 7.0.26 (64-bit edition)
go to apache tomcat website and download tomcat 7.0
http://tomcat.apache.org/
download 64-bit Windows zip file as we try to install tomcat 7.0.26 on windows 7 64-bit system
unzip apache-tomcat-7.0.26-windows-x64.zip
this is how the folder looks like after unzipping
C:\Downloads\apache-tomcat-7.0.26-windows-x64\apache-tomcat-7.0.26\bin
If you click startup.bat file to start tomcat IT WILL NOT RUN
C:\Downloads\apache-tomcat-7.0.26-windows-x64\apache-tomcat-7.0.26\bin\startup.bat
To get tomcat running,first run command prompt
Then with cd command go to directory
cd C:\Downloads\apache-tomcat-7.0.26-windows-x64\apache-tomcat-7.0.26\bin
Run startup.bat in the command prompt
C:\Downloads\apache-tomcat-7.0.26-windows-x64\apache-tomcat-7.0.26\bin>startup.bat
Then type on firefox
http://localhost:8080
Server Status" and "Manager App" interfaces require manager-gui role and "Host Manager" requires admin-gui role.
add these lines and restart tomcat if it works.
C:\Downloads\apache-tomcat\conf \tomcat-users.xml
<role rolename="manager-gui,admin-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
configure tomcat port.
C:\Downloads\apache-tomcat\conf\server.xml
<Connector port="5555" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
This file sets java_home manually and runs tomcat on the folder mentioned.
contents of "tomcat start.cmd" file.
@echo off
SET JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_31
SET CATALINA_HOME=C:\Downloads\apache-tomcat
C:\Downloads\apache-tomcat\bin\startup.bat
run "tomcat start.cmd" on folder
C:\Downloads\ciroot
test tomcat whether it runs
tomcat runs on http://localhost:8080/