You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Sunny Sun <gr...@hotmail.com> on 2003/02/07 09:06:49 UTC
question
Hello,
I have a question for setup jakarta-tomcat-4.1.18. After I set up it, I want
to run tomcat by typing: $CATALINA_HOME/bin/startup.sh. And the message is:
Using CATALINA_BASE: /usr/jakarta-tomcat-4.1.18
Using CATALINA_HOME: /usr/jakarta-tomcat-4.1.18
Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.1.18/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.1_01
When I test it by typing: http://localhost:8080, the message shows me:
The connection was refused when attemping to contact localhost:8080.
When I want to shutdown tomcat by typing: $CATALINA_HOME/bin/shutdown.sh,
the message shows me:
Using CATALINA_BASE: /usr/jakarta-tomcat-4.1.18
Using CATALINA_HOME: /usr/jakarta-tomcat-4.1.18
Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.1.18/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.1_01
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.<init>(Socket.java:291)
at java.net.Socket.<init>(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
I have no idea whether the tomcat is setup successfully or not. And how to
fix the problem? Could you please help me out? Thank you very much in
advance.
Sunny
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: question
Posted by Sean Dockery <se...@sbdconsultants.com>.
Check the server.xml file located in $CATALINA_HOME/conf/server.xml for the
ports on which Tomcat listens. Confirm that the ports are 8080 for the
HTTP listener and SHUTDOWN on 8005 (IIRC).
Are you running a firewall that would prevent connections on those ports?
Also, check $CATALINA_HOME/logs/... to see what is happening when you start
Tomcat.
At 08:06 2003-02-07 +0000, you wrote:
>Hello,
>I have a question for setup jakarta-tomcat-4.1.18. After I set up it, I
>want to run tomcat by typing: $CATALINA_HOME/bin/startup.sh. And the
>message is:
>Using CATALINA_BASE: /usr/jakarta-tomcat-4.1.18
>Using CATALINA_HOME: /usr/jakarta-tomcat-4.1.18
>Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.1.18/temp
>Using JAVA_HOME: /usr/java/j2sdk1.4.1_01
>
>When I test it by typing: http://localhost:8080, the message shows me:
>The connection was refused when attemping to contact localhost:8080.
>
>When I want to shutdown tomcat by typing: $CATALINA_HOME/bin/shutdown.sh,
>the message shows me:
>Using CATALINA_BASE: /usr/jakarta-tomcat-4.1.18
>Using CATALINA_HOME: /usr/jakarta-tomcat-4.1.18
>Using CATALINA_TMPDIR: /usr/jakarta-tomcat-4.1.18/temp
>Using JAVA_HOME: /usr/java/j2sdk1.4.1_01
>Catalina.stop: java.net.ConnectException: Connection refused
>java.net.ConnectException: Connection refused
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
> at java.net.Socket.connect(Socket.java:426)
> at java.net.Socket.connect(Socket.java:376)
> at java.net.Socket.<init>(Socket.java:291)
> at java.net.Socket.<init>(Socket.java:119)
> at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
> at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
> at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
>
>I have no idea whether the tomcat is setup successfully or not. And how to
>fix the problem? Could you please help me out? Thank you very much in advance.
>Sunny
>
>
>
>
>
>_________________________________________________________________
>STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Sean Dockery
sean@sbdconsultants.com
Certified Java Web Component Developer
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org