eclipse-ee4j / glassfish

Eclipse GlassFish
https://eclipse-ee4j.github.io/glassfish/
386 stars 144 forks source link

when enable jk-connector - java.lang.NoClassDefFoundError: com/sun/grizzly/tcp/ProtocolHandler #6113

Closed glassfishrobot closed 16 years ago

glassfishrobot commented 16 years ago

When I enable jk-connector either by

1. asadmin create-http-listener --listeneraddress=0.0.0.0 --listenerport=8009 --defaultvs=server jk-connector

2. asadmin create-jvm-options -Dcom.sun.enterprise.web.connector.enableJK=8009

and restart, I cannot start web container due to java.lang.NoClassDefFoundError: com/sun/grizzly/tcp/ProtocolHandler.

SEVERE: Exception in thread "GlassFish Kernel Main Thread" Sep 15, 2008 11:17:09 AM SEVERE: java.lang.NoClassDefFoundError: com/sun/grizzly/tcp/ProtocolHandler Sep 15, 2008 11:17:09 AM SEVERE: at java.lang.ClassLoader.defineClass1(Native Method) Sep 15, 2008 11:17:09 AM SEVERE: at java.lang.ClassLoader.defineClass(ClassLoader.java:620) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.ContentClassLoader.fi ndClass(ContentClassLoader.java:214) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.ContentClassLoader.lo adClassFromModule(ContentClassLoader.java:85) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.ContentLoaderImpl.get Class(ContentLoaderImpl.java:162) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wir e.java:101) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.se archImports(R4SearchPolicyCore.java:505) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.fi ndClassOrResource(R4SearchPolicyCore.java:466) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.fi ndClass(R4SearchPolicyCore.java:185) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.R4SearchPolicy.findCl ass(R4SearchPolicy.java:45) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.felix.framework.searchpolicy.ContentClassLoader.lo adClass(ContentClassLoader.java:109) Sep 15, 2008 11:17:09 AM SEVERE: at java.lang.ClassLoader.loadClass(ClassLoader.java:251) Sep 15, 2008 11:17:09 AM SEVERE: at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

Sep 15, 2008 11:17:09 AM SEVERE: at java.lang.Class.forName0(Native Method) Sep 15, 2008 11:17:09 AM SEVERE: at java.lang.Class.forName(Class.java:164) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.catalina.connector.Connector.initialize(Connector. java:1558) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.web.connector.coyote.PECoyoteConnector.ini tialize(PECoyoteConnector.java:781) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.web.WebConnector.initialize(WebConnector.j ava:62) Sep 15, 2008 11:17:09 AM SEVERE: at org.apache.catalina.startup.Embedded.start(Embedded.java:937)

Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.web.WebContainer.postConstruct(WebContaine r.java:630) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImp l.java:150) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorW omb.java:86) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.j ava:75) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabi tant.java:58) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java: 107) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInha bitantImpl.java:60) Sep 15, 2008 11:17:09 AM SEVERE: at org.glassfish.internal.data.ContainerInfo.getContainer(Contai nerInfo.java:75) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.ApplicationLifecycle.startContai ners(ApplicationLifecycle.java:705) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContai nerInfos(ApplicationLifecycle.java:354) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(Appl icationLifecycle.java:192) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.ApplicationLoaderService.process Application(ApplicationLoaderService.java:260) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.ApplicationLoaderService.postCon struct(ApplicationLoaderService.java:97) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.ApplicationLoaderInjector.postCo nstruct(ApplicationLoaderInjector.java:61) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImp l.java:150) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorW omb.java:86) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.j ava:75) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.SingletonInhabitant.get(SingletonInhabi tant.java:58) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java: 107) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInha bitantImpl.java:60) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.AppServerStartup.run(AppServerSt artup.java:177) Sep 15, 2008 11:17:09 AM SEVERE: at com.sun.enterprise.v3.server.AppServerStartup$1.run(AppServer Startup.java:107)

Environment

Operating System: All Platform: All

Affected Versions

[V3]

glassfishrobot commented 6 years ago
glassfishrobot commented 16 years ago

@glassfishrobot Commented jfarcand said: Strange exception as that class is part of grizzly-module.jar, on which the kernel is based on. Re-assign to Jerome for feedback.

glassfishrobot commented 16 years ago

@glassfishrobot Commented @amyroh said: Jan also confirms getting the error after asadmin create-jvm-options -Dcom.sun.enterprise.web.connector.enableJK=8009 and restart

Ccing Sahoo and this should be P2

glassfishrobot commented 16 years ago

@glassfishrobot Commented ss141213 said: svn rev #22561 done to fix https://glassfish.dev.java.net/issues/show_bug.cgi?id=5921 is the most likely cause of this regression.

Sahoo

glassfishrobot commented 16 years ago

@glassfishrobot Commented jluehe said: Sahoo is right: After reverting the changes in osgi.bundle, as follows:

Index: osgi.bundle

— osgi.bundle (revision 22669) +++ osgi.bundle (working copy) @@ -17,6 +17,10 @@ org.apache.catalina.startup, \ org.apache.catalina.util, \ org.apache.catalina.valves, \

the NoClassDefFoundError is gone.

But re-exporting these packages is not an option.

Should we rename web-core's org.apache.commons to com.sun.org.apache.commons?

glassfishrobot commented 16 years ago

@glassfishrobot Commented ss141213 said: No, please don't repackage them as com.sun.org.apache. Why can't we move those classes to apache-commons module? That will solve this problem as well as #5921.

glassfishrobot commented 16 years ago

@glassfishrobot Commented kumara said: v3 defect tracking

glassfishrobot commented 16 years ago

@glassfishrobot Commented dochez said: the planned resolution is to make our org.apache.commons classes private and package the standard modeler and digester libraries in our repackaged commons module which mod_jk can import.

glassfishrobot commented 16 years ago

@glassfishrobot Commented jluehe said: Amy is working on this

glassfishrobot commented 16 years ago

@glassfishrobot Commented ss141213 said: I am fixing this...

glassfishrobot commented 16 years ago

@glassfishrobot Commented ss141213 said: Sending distributions/external/apache-commons/pom.xml Sending web/web-ajp/pom.xml Transmitting file data .. Committed revision 22736.

glassfishrobot commented 16 years ago

@glassfishrobot Commented Issue-Links: blocks GLASSFISH-5961 GLASSFISH-5515

glassfishrobot commented 16 years ago

@glassfishrobot Commented Was assigned to ss141213

glassfishrobot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-6113

glassfishrobot commented 16 years ago

@glassfishrobot Commented Reported by @amyroh

glassfishrobot commented 16 years ago

@glassfishrobot Commented Marked as fixed on Tuesday, September 16th 2008, 9:57:46 pm