System.err.println("Starting " + c.getName());
try {
Class argClass=args.getClass();
Method m=c.getMethod( "main", new Class[] {argClass} );
m.invoke( c, new Object[] { args } );
System.out.println("TomcatStarter: Done");
if (apr.isLoaded())
apr.jkSetAttribute(0, 0, "channel:jni", "done");
if (args[0].equals("stop")) {
Thread.sleep(5000);
Runtime.getRuntime().exit(0);
}
} catch( Throwable t ) {
t.printStackTrace(System.err);
}