I have CentOS 6.4 installed on VMware. Recently installed Java SE8 and Apache Tomcat server but I cant't connect to the server by using `localhost:8080' browser says Unable to Connect. I have also tried changing the connector port in the tomcat server config but still unable to connect.
etc/profile
PATH=/usr/local/jdk1.8.0/bin:$PATH
JRE_HOME=/usr/local/jdk1.8.0/jre/bin
CATALINA_HOME=/media/new/softwares/Tomcat/apache-tomcat-8.0.5/
export PATH
export JRE_HOME
export CATALINA_HOME
host file
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
terminal on starting Tomcat
Using CATALINA_BASE: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
Using CATALINA_HOME: /media/new/softwares/Tomcat/apache-tomcat-8.0.5
Using CATALINA_TMPDIR: /media/new/softwares/Tomcat/apache-tomcat-8.0.5/temp
Using JRE_HOME: /usr/local/jdk1.8.0/jre/bin
Using CLASSPATH: /media/new/softwares/Tomcat/apache-tomcat 8.0.5/bin/bootstrap.jar:/media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/tomcat-juli.jar
Tomcat started.
tomcat's log
/media/new/softwares/Tomcat/apache-tomcat-8.0.5/bin/catalina.sh: line 399: /usr/local/jdk1.8.0/jre/bin/bin/java: No such file or directory