users@glassfish.java.net

Re: Glassfish V2 not starting correctly - just crashes

From: <Jan.Luehe_at_Sun.COM>
Date: Tue, 11 Dec 2007 09:42:57 -0800

glassfish_at_javadesktop.org wrote:

>Hello again -
>
>I have been having problems with this for some time now. I was running V1 and Apache together via mod_jk and all worked fine. I assumed that uninstalling V1 and upgrading to V2 and then following the usual steps to "attach" to mod_jk would work. Alas not! the appserver doesn't start as can be seen below. I am guessing that I am using an incompatible mod_jk as the error is thrown by a missing "coyote" class. I would really appreciate some pointers on this one.
>
>[code]
>[#|2007-12-11T11:23:40.546+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;com.sun.enterprise.web.PEWebContainerLifecycle_at_174d4c9;com.sun.appserv.server.ServerLifecycleException: WEB0105: An error occurred while starting the web container;_RequestID=1dbc59fb-4ceb-4f7b-89d8-f520ee6b0c3a;|Service com.sun.enterprise.web.PEWebContainerLifecycle_at_174d4c9 cannot be started! : com.sun.appserv.server.ServerLifecycleException: WEB0105: An error occurred while starting the web container|#]
>
>[#|2007-12-11T11:23:40.546+0000|SEVERE|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=10;_ThreadName=main;_RequestID=1dbc59fb-4ceb-4f7b-89d8-f520ee6b0c3a;|CORE5071: An error occured during initialization
>com.sun.appserv.server.ServerLifecycleException: WEB0105: An error occurred while starting the web container
> at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:799)
> at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:84)
> at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
> at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
> at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
> at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)
>Caused by: LifecycleException: PWC3986: Protocol handler instantiation failed: java.lang.ClassNotFoundException: org.apache.jk.server.JkCoyoteHandler
> at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1546)
> at com.sun.enterprise.web.connector.coyote.PECoyoteConnector.initialize(PECoyoteConnector.java:791)
> at org.apache.catalina.startup.Embedded.start(Embedded.java:928)
> at com.sun.enterprise.web.WebContainer.start(WebContainer.java:873)
> at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:790)
> ... 10 more
>|#]
>
>

Hmm, which verison of tomcat-ajp.jar are you using?

I've installed the one that comes with Tomcat 5.5.23
(along with the commons-modeler-2.0.jar and commons-logging-api.jar
from that same Tomcat version) to my GlassFish v2 installation's lib
directory and was able to start the mod_jk connector successfully.


Jan