Alexander Leyke wrote:

>>You can configure a different starter ( TomcatStarter did work
>>with an older version of BootstrapService - now you can't use
>>the 4.1 version of BS without daemon ). You can probably try
>>to just configure it to use o.a.catalina.startup.Bootstrap.
>>( or a different starter with a main() )
>>  
>>
> I see o.a.jk.apr.TomcatStarter.main() call
> o.a.catalina.startup.BootstrapService.main(). I didn't think of changing
> the bootstrap class. I see the followin "candidates":
> 
> org/apache/catalina/startup/Bootstrap.class
> org/apache/catalina/startup/BootstrapService.class
> org/apache/catalina/startup/CatalinaService.class
> org/apache/catalina/startup/Catalina.class
> org/apache/catalina/startup/Embedded.class
> 
> Unfortunately the link to Catalina Javadocs off is broken on the
> jakarta.apache.org Website. I'll browse through the Java sources,
> butwould be helpful if anyone could mention which bootstrap class I
> could use in place of TomcatStarter

I used BootstrapService because it didn't create the 8005 shutdown
socket. My tests were done with 4.0. 
You can create your own wrapper, use CatalinaService directly or
call Bootstrap ( if you don't mind 8005 - in your case it doesn't
matter too much since you'll have a single process ).


> A related question - what does this log entry mean? I think it is
> related to [worker.jni:onShutdown] entry in workers2.properties.
> 
> jk_worker_jni.c:369:jni.init() disabling the non init hook worker

I have no idea. Ask Mladen :-) 

I know he added special code to allow multiple classes to be called
on startup, init, shutdown, etc. There are several ways to 
load the java class. 

Since you see the messages from TomcatStarter - I assume it's 
harmless.


> 
>>>::::::::::::::
>>>stderr.log
>>>::::::::::::::
>>>TomcatStarter: main()
>>>Try  org.apache.tomcat.startup.Main
>>>Try  org.apache.catalina.startup.BootstrapService
>>>Starting org.apache.catalina.startup.BootstrapService
>>>java.lang.NullPointerException
>>>        at
>>>        
org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:244)
>>>    
>>>
>>>        at
>>>        
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>>>    
>>>
>>>        at java.lang.reflect.Method.invoke(Native Method)
>>>        at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
>>>        at java.lang.Thread.run(Thread.java:484)
>>>Created catalinaLoader in: /<deleted -
>>>AL>/jakarta-tomcat-4.1.12/server/lib
>>>[INFO] Registry - -Loading registry information
>>>[INFO] Registry - -Creating new Registry instance
>>>[INFO] Registry - -Creating MBeanServer
>>>[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on port 8089
>>>java.lang.ArrayIndexOutOfBoundsException
>>>        at
>>>        
org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:305)
>>>    
>>>
>>>        at java.lang.reflect.Method.invoke(Native Method)
>>>        at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
>>>        at java.lang.Thread.run(Thread.java:484)
>>>java.lang.ArrayIndexOutOfBoundsException
>>>        at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:131)
>>>        at java.lang.Thread.run(Thread.java:484)
>>>::::::::::::::
>>>stdout.log
>>>::::::::::::::
>>>Bootstrap: Starting service
>>>TomcatStarter: Done
>>>TomcatStarter: Done
>>>    
>>>
>>
>>  
>>




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

Reply via email to