Firefox can't establish a connection to the server at localhost:8080
Hi,
I installed j2sdk1.4.2_03 and xampp-linux-1.6.8a on RHEL5. Since I could'nt run a jsp script on the server, I suppose xampp does not support jsp. So I installed apache-tomcat-6.0.18. In terminal, [root@localhost ~]# /etc/apache-tomcat-6.0.18-src/bin/startup.sh Using CATALINA_BASE: /etc/apache-tomcat-6.0.18-src Using CATALINA_HOME: /etc/apache-tomcat-6.0.18-src Using CATALINA_TMPDIR: /etc/apache-tomcat-6.0.18-src/temp Using JRE_HOME: /usr/java/jdk1.6.0_11 makes me think tomcat has been installed correctly. But when I try accessing http://localhost:8080/ Unable to connect Firefox can't establish a connection to the server at localhost:8080. * The site could be temporarily unavailable or too busy. Try again in a few moments. * If you are unable to load any pages, check your computer's network connection. * If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. Can anyone tell me how to solve this problem? |
Hi,
first you should check if there is something running on Port 8080 Code:
netstat -an | grep 8080 |
Thanks for the reply.
netstat -an | grep 8080 returned no results. and following is the contents of catalina.out /etc/apache-tomcat-6.0.18-src/bin/catalina.sh: line 292: /usr/java/jdk1.6.0_11/bin/java: No such file or directory I suppose this is the problem. my JAVA_HOME is usr/java/j2sdk1.4.2_03/bin/java What should I do now? |
Hi,
i agree. Your tomcat is looking for JDK 1.6.0.11 which seems not to exist. Check the startup script and install correct jdk. |
I installed jdk1.6.0_11 and now the problem is
Quote:
and when Quote:
Though the site seems valid, the browser was unable to establish a connection.
What now??:( |
Tomcat not running
Your issue is that tomcat does not even startup or run, since you do not see any listeners when you searched for port 8080:
#netstat -an | grep 8080 The reason your tomcat is not running is that you are attempting the startup script from the source folder as opposed to the *built* folder. Set the CATALINA_HOME and _BASE to /var/lib/apache-tomcat-6.0.18-src/output/build/ And run the file ./bin/startup.sh You should be fine then |
All times are GMT -5. The time now is 07:02 PM. |