Forum Moderators: phranque

Message Too Old, No Replies

Tomcat (Java)

The connection to port 8080 was refused

         

delboy1978uk

3:59 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



okay....
i want to run jsp's on my website for accessing a database. The setup is as follows:

Apache HTTP Server 2
Apache Tomcat 5.5
Java JDK
MySQL

so far so good, I installed all without a prob.
However,
I can connect to localhost on port 80, and get the apache homepage. But when i add :8080 to the end of it its says that the connection was refused. I disabled my firewall so that's not it.

Any suggestions?

Hanu

4:15 pm on Dec 21, 2004 (gmt 0)

10+ Year Member



First of all, you don't need Apache. You can run Tomcat behind Apache, but you don't have to. Running Tomcat behind Apache lets you have Apache serve static pages while Tomcat serves your web applications. I recommend getting Tomcat to work in standalone mode first, and then trying to get Tomcat cooperate with Apache in a later step.

You're trying to connect to port 8080. This is the port that Tomcat listens to in standalone mode. Is Tomcat running? Assuming you have some kind of Linux platform, you can do a ps -xa to check for java processes.