That reminds me of the error I get every time I try to shutdown Tomcat
when it is not actually running, only I get a
"java.net.ConnectException: Connection refused". This happens often
during my messing up with the configuration files, since the startup
script never outputs any errors, including the fact that Tomcat might
not have started at all (you really have to look at logs/catalina.out if
you're not sure). When I realise something's gone wrong and try stopping
Tomcat (without realising it wasn't running at all) then end up getting
the Exception, along with the thread stack.

Perhaps the NoRouteToHostException is also related to Tomcat not having
initialised properly, since you do have that problem in
/webapps/examples?

Dan

> -----Original Message-----
> From: Bryan Zimmer [mailto:[EMAIL PROTECTED]]
> Sent: 08 July 2002 02:42
> To: Tomcat Users
> Subject: Problems stopping tomcat 4.0.4 on linux
> 
> 
> Greetings,
> 
> I am running Tomcat and Apache together on a RedHat Linux
> box. Up until recently they seem to have done quite well. I 
> recently encountered a problem that I can not trace to any 
> configuration change that I made - I made few or none - 
> although the problem seems related to configuration. Just 
> today I installed the rpm version of Tomcat 4.0.4, upgrading 
> from 4.0.3, first wiping out the old tomcat installation (but 
> saving the important config files in a different directory). 
> I still get the same results.
> 
> On RedHat, the startup script is invoked by issuing the
> command "service tomcat4 start", and correspondingly to shut 
> down "service tomcat4 stop". What happens is that Tomcat 
> seems to start up without complaint, although its 
> /webapps/examples directory was inaccessible. That may have 
> been an Apache problem configuring mod_webapp.so and the 
> WarpConnection, or the directory aliases (do they end with a 
> slash or not? Is there a printed or online guide to 
> configuring mod_webapp and WarpConnection?).
> 
> However, when I issued the command "service tomcat4 stop", I
> got the following output:
> 
> Stopping tomcat4:
> Using CATALINA_BASE:   /var/tomcat4
> Using CATALINA_HOME:   /var/tomcat4
> Using CATALINA_TMPDIR: /var/tomcat4/temp
> Using JAVA_HOME:       /usr/java/jdk       <<--- symbolic link to my
> /usr/java/j2sdk1.4.0
> Catalina.stop: java.net.NoRouteToHostException: No route to host
> java.net.NoRouteToHostException: No route to host
>  at java.net.PlainSocketImpl.socketConnect(Native Method)
>  at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
>  at
> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
>  at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
>  at java.net.Socket.connect(Socket.java:425)
>  at java.net.Socket.connect(Socket.java:375)
>  at java.net.Socket.<init>(Socket.java:290)
>  at java.net.Socket.<init>(Socket.java:118)
>  at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
>  at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
>  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
> Method)  at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.java:39
> )
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl
> .java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
>                       FAILED
> 
> Tomcat actually did stop, but I can't understand the meaning
> of "No route to host". The localhost and the machines 
> external IP addresses are both in my routing table. I checked 
> all the config files I could think of, but couldn't come up 
> with any ideas.
> 
> Can anyone help me solve this dilemma?
> 
> Also, I had to use the --nodeps switch on rpm when installing
> 4.0.4, because rpm was unaware of the existence of log4j on 
> my machine, but that's another matter.
> 
> Thanks,
> 
> Bryan A. Zimmer
> [EMAIL PROTECTED]
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to