tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Harms <j...@clarionmag.com>
Subject Using Tomcat 3.2 B2 with VAJava - changes to StopTomcat.java
Date Tue, 25 Jul 2000 18:30:25 GMT
If you're following Sheldon Wosnick's much-appreciated tutorial on 
using VAJava with Tomcat, you'll need to make a couple of changes to 
StopTomcat.java for proper shutdown. Change

 Class aClass = Class.forName("org.apache.tomcat.shell.Shutdown");

to

 Class aClass = Class.forName("org.apache.tomcat.startup.Tomcat");
        
And change

 Object[] arguments = new Object[] {new String[] {}};

to

 Object[] arguments = new Object[] {new String[] {"-stop"}};

That will pass the -stop parameter to org.apache.tomcat.startup.Tomcat, 
which now handles startup and shutdown. 

FYI.

Dave

Dave Harms
jdev@clarionmag.com


Mime
View raw message