You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by B McFee <br...@hotmail.com> on 2008/01/16 23:30:48 UTC

Tomcat worked before, now it doesn't

Hi, My tomcat worked before but now for some reason the browser won't find the localhost. I am using the same address(http://localhost:8080 etc) Also for some reason it wont shut down when I type inbin/shutdown Here is the error message I get: 
Using CLASSPATH: c:\tomcat\jakarta-tomcat-3.2.3\classes;c:\tomcat\jakarta-tomcat
-3.2.3\lib\ant.jar;c:\tomcat\jakarta-tomcat-3.2.3\lib\jasper.jar;c:\tomcat\jakar
ta-tomcat-3.2.3\lib\jaxp.jar;c:\tomcat\jakarta-tomcat-3.2.3\lib\parser.jar;c:\to
mcat\jakarta-tomcat-3.2.3\lib\servlet.jar;c:\tomcat\jakarta-tomcat-3.2.3\lib\web
server.jar;c:\jdk1.3.1\lib\tools.jar

Stop tomcat
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
at java.net.Socket.<init>(Socket.java:273)
at java.net.Socket.<init>(Socket.java:100)
at org.apache.tomcat.task.StopTomcat.execute(StopTomcat.java:104)
at org.apache.tomcat.startup.Tomcat.stopTomcat(Tomcat.java:267)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:174)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
C:\tomcat\jakarta-tomcat-3.2.3>
 
I checked the archives and FAQ which said try control/break
to stop all threads. This still didnt solve the problem.
 
Here are the log messeges I get on startup
 
servlet.log

2008-01-16 11:40:44 - path="/examples" :jsp: init
2008-01-16 11:40:44 - path="/admin" :jsp: init
2008-01-16 11:40:44 - path="/mydev" :jsp: init
2008-01-16 11:40:44 - path="" :jsp: init
2008-01-16 11:40:44 - path="/test" :jsp: init
 

jasper.log

2008-01-16 11:40:44 - Scratch dir for the JSP engine is: C:\tomcat\jakarta-tomcat-3.2.3
\work\localhost_8080%2Fexamples
2008-01-16 11:40:44 - IMPORTANT: Do not modify the generated servlets
 
Here is what the tomcat window looks like on start up:
(cannot see any anomolies here)
 
2008-01-13 08:57:14 - ContextManager: Adding context Ctx( /examples )
2008-01-13 08:57:14 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2008-01-13 08:57:14 - ContextManager: Adding context Ctx( /mydev )
2008-01-13 08:57:14 - ContextManager: Adding context Ctx( )
2008-01-13 08:57:14 - ContextManager: Adding context Ctx( /test )
2008-01-13 08:57:15 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2008-01-13 08:57:15 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
 
Here is what the DOS window looks like on startup:
 
Using CLASSPATH: c:\tomcat\jakarta-tomcat-3.2.3\classes;c:\tomcat\jakarta-tomcat
-3.2.3\lib\ant.jar;c:\tomcat\jakarta-tomcat-3.2.3\lib\jasper.jar;c:\tomcat\jakar
ta-tomcat-3.2.3\lib\jaxp.jar;c:\tomcat\jakarta-tomcat-3.2.3\lib\parser.jar;c:\to
mcat\jakarta-tomcat-3.2.3\lib\servlet.jar;c:\tomcat\jakarta-tomcat-3.2.3\lib\web
server.jar;c:\jdk1.3.1\lib\tools.jar
 
I am using windows 2000. Can anybody help?
_________________________________________________________________
Put your friends on the big screen with Windows Vista® + Windows Live™.
http://www.microsoft.com/windows/shop/specialoffers.mspx?ocid=TXT_TAGLM_CPC_MediaCtr_bigscreen_012008

Re: Tomcat worked before, now it doesn't

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

B,

B McFee wrote:
| I tried the attached and got the following output which I don't
| understand:
|
|  Proto  Local Address          Foreign Address        State
|  TCP    C36432-B:8007          C36432-B:0             LISTENING
|  TCP    C36432-B:8080          C36432-B:0             LISTENING


These two are the items of interest: you configured an ajp12 connection
on port 8007 (the first line) and an HTTP connector on port 8080 (the
second line). You can see that they are both listening, which indicates
to me that Tomcat /is/ running.

What port are you using for SHUTDOWN? The first non-comment line of your
server.xml should be something like this:

<Server port="8006" shutdown="SHUTDOWN">

That's the port we're looking for. If Tomcat isn't listening on that
port, you'll have to kill the process some way other than running
"shutdown.bat".

Once you get Tomcat stopped, clear out everything in the "work"
directory and try to re-start it and let us know how it goes.

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeXXnEACgkQ9CaO5/Lv0PD9jQCgtzv5FX3MgPnS/NvLF8+LDZ9q
2kAAn3ikkOsZppRIH/vn96XDj/SaMD/T
=ZPqo
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Tomcat worked before, now it doesn't

Posted by B McFee <br...@hotmail.com>.
Hi,
 
I tried the attached and got the following output which I dont 
understand:
 
RESULT OF NETSTAT
 
 
 Proto  Local Address          Foreign Address        State
 TCP    C36432-B:ftp           C36432-B:0             LISTENING
 TCP    C36432-B:http          C36432-B:0             LISTENING
 TCP    C36432-B:epmap         C36432-B:0             LISTENING
 TCP    C36432-B:microsoft-ds  C36432-B:0             LISTENING
 TCP    C36432-B:1025          C36432-B:0             LISTENING
 TCP    C36432-B:1026          C36432-B:0             LISTENING
 TCP    C36432-B:1028          C36432-B:0             LISTENING
 TCP    C36432-B:1029          C36432-B:0             LISTENING
 TCP    C36432-B:1030          C36432-B:0             LISTENING
 TCP    C36432-B:1031          C36432-B:0             LISTENING
 TCP    C36432-B:8007          C36432-B:0             LISTENING
 TCP    C36432-B:8080          C36432-B:0             LISTENING
 UDP    C36432-B:epmap         *:*
 UDP    C36432-B:microsoft-ds  *:*
 UDP    C36432-B:1027          *:*
 UDP    C36432-B:1032          *:*
 UDP    C36432-B:1645          *:*
 UDP    C36432-B:1646          *:*
 UDP    C36432-B:radius        *:*
 UDP    C36432-B:radacct       *:*
 UDP    C36432-B:3456          *:*
 UDP    C36432-B:1033          *:*
 UDP    C36432-B:1034          *:*
 
Can anybody help me?
Thanks> Date: Wed, 16 Jan 2008 17:43:39 -0500> From: chris@christopherschultz.net> To: users@tomcat.apache.org> Subject: Re: Tomcat worked before, now it doesn't> > -----BEGIN PGP SIGNED MESSAGE-----> Hash: SHA1> > B,> > B McFee wrote:> | Hi, My tomcat worked before but now for some reason the browser won't> | find the localhost. I am using the same> | address(http://localhost:8080 etc) Also for some reason it wont shut> | down when I type inbin/shutdown Here is the error message I get:> |> | Using CLASSPATH:> c:\tomcat\jakarta-tomcat-3.2.3\classes;c:\tomcat\jakarta-tomcat> | -3.2.3\lib\ant.jar;[...]> > Yikes! Tomcat 3.2.3? Time to upgrade, man.> > | I am using windows 2000. Can anybody help?> > Did you change anything recently?> > Try using "netstat -abn" and look through the output for port 8080 to> see if Java has correctly bound itself to the port. Tcpview might be> even better.> > I would definitely start with a clean slate: run the Task Manager and> kill any existing tomcats that are running, delete all the logs (or move> them out of the way), delete the work directory, and re-start Tomcat.> > Good luck!> - -chris> > -----BEGIN PGP SIGNATURE-----> Version: GnuPG v1.4.8 (MingW32)> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org> > iEYEARECAAYFAkeOiJsACgkQ9CaO5/Lv0PAwewCdGW02hxJAQvmxkGfHIisZQHbN> TdUAn20C9EffIOJSm0mVqKMI+YbXf7ym> =g4Ef> -----END PGP SIGNATURE-----> > ---------------------------------------------------------------------> To start a new topic, e-mail: users@tomcat.apache.org> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org> For additional commands, e-mail: users-help@tomcat.apache.org> 
_________________________________________________________________
Need to know the score, the latest news, or you need your Hotmail®-get your "fix".
http://www.msnmobilefix.com/Default.aspx

Re: Tomcat worked before, now it doesn't

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

B,

B McFee wrote:
| Hi, My tomcat worked before but now for some reason the browser won't
|  find the localhost. I am using the same
| address(http://localhost:8080 etc) Also for some reason it wont shut
| down when I type inbin/shutdown Here is the error message I get:
|
| Using CLASSPATH:
c:\tomcat\jakarta-tomcat-3.2.3\classes;c:\tomcat\jakarta-tomcat
| -3.2.3\lib\ant.jar;[...]

Yikes! Tomcat 3.2.3? Time to upgrade, man.

| I am using windows 2000. Can anybody help?

Did you change anything recently?

Try using "netstat -abn" and look through the output for port 8080 to
see if Java has correctly bound itself to the port. Tcpview might be
even better.

I would definitely start with a clean slate: run the Task Manager and
kill any existing tomcats that are running, delete all the logs (or move
them out of the way), delete the work directory, and re-start Tomcat.

Good luck!
- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkeOiJsACgkQ9CaO5/Lv0PAwewCdGW02hxJAQvmxkGfHIisZQHbN
TdUAn20C9EffIOJSm0mVqKMI+YbXf7ym
=g4Ef
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org