tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Endre Stølsvik <>
Subject Re: [tc3.3] Shutting down doesn't seem to honor the config file
Date Wed, 21 Feb 2001 17:28:08 GMT
On Tue, 20 Feb 2001, Endre Stølsvik wrote:

| How do I shut down my Tomcat 3.3 when I have set the ajp12 port to
| something else thatn 8007? I supply -f configfile, but it doesn't seem to
| do anything about it.

Ok, found it!

I think there might be some inconsistency when it comes to the

The org.apache.tomcat.startup.StopTomcat looks for a file called
"" in the tomcat home dir. This is where it stores the portnumber,
and apparently also "the secret" and the address that tomcat is supposed
to have bound to. It expects this to be the tomcat "root", the proper
tomcat home. But org.apache.tomcat.startup.Main seems to expect the
tomcat.home to be set to the install dir. If not, the URLClassLoader won't
find Tomcat:
 java.lang.ClassNotFoundException: org.apache.tomcat.startup.Tomcat

So it works when I supply my tomcat install dir as the -Dtomcat.home for
the startup.Main, and the dir where ends up as the -Dtomcat.home
for the StopTomcat.

..or am I doing something else wrong?

(I wondering though why one couldn't read the config file again, which
seems a bit more robust..)


View raw message