Hi Folks,
As you can see from the stack trace below I'm trying to run a lifecycle module which
(within a lib) tries to use its own classloader(InvocationMethodFactory$InvokeClassLoader which
extends from java.lang.ClassLoader) to define a class
(org/jruby/internal/runtime/methods/FullInvocationMethod) but fails.
I understand why it fails but am wondering what do to get past the issue ...
Is there a switch with which the jars/classes in $GLASSFISH_HOME/lib are loaded
via system(or is it bootstrap) classloader as opposed to glassfish's common classloader
so that java.lang.ClassLoader finds the missing class ? Or any other suggestions
to get past the issue ?
THanks
Ashish
at java.lang.ClassLoader.defineClass1(Native Method)
[#|2007-01-12T15:51:23.334-0800|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=13;_ThreadName=Thread-5;_RequestID=51301bc0-d958-4ab1-83c5-3d81c7b7d66e;|java.lang.NoClassDefFoundError: org/jruby/internal/runtime/methods/FullInvocationMethod
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.lang.ClassLoader.defineClass(ClassLoader.java:465)
at org.jruby.internal.runtime.methods.InvocationMethodFactory$InvokeClassLoader.define(InvocationMethodFactory.java:50)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.endCall(InvocationMethodFactory.java:104)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getMethod(InvocationMethodFactory.java:158)
at org.jruby.internal.runtime.methods.InvocationMethodFactory.getFullMethod(InvocationMethodFactory.java:168)
at org.jruby.runtime.builtin.meta.AbstractMetaClass.definePrivateMethod(AbstractMetaClass.java:263)
at org.jruby.runtime.builtin.meta.ObjectMetaClass$ObjectMeta.initializeClass(ObjectMetaClass.java:84)
at org.jruby.runtime.builtin.meta.ObjectMetaClass.initializeClass(ObjectMetaClass.java:103)
at org.jruby.Ruby.initCoreClasses(Ruby.java:632)
at org.jruby.Ruby.init(Ruby.java:570)
at org.jruby.Ruby.getDefaultInstance(Ruby.java:252)
at org.jruby.javasupport.JavaEmbedUtils.initialize(JavaEmbedUtils.java:53)
at com.sun.grizzly.rails.RubyObjectPool.initializeRubyRuntime(RubyObjectPool.java:134)
at com.sun.grizzly.rails.RubyObjectPool.start(RubyObjectPool.java:116)
at com.sun.grizzly.rails.RailsSelectorThread.initializeRubyRuntime(RailsSelectorThread.java:106)
at com.sun.grizzly.rails.RailsSelectorThread.initEndpoint(RailsSelectorThread.java:75)
at com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.init(GrizzlyHttpProtocol.java:212)
at org.apache.coyote.tomcat5.CoyoteConnector.initialize(CoyoteConnector.java:1590)
at com.sun.enterprise.web.connector.coyote.PECoyoteConnector.initialize(PECoyoteConnector.java:760)
at org.apache.catalina.startup.Embedded.start(Embedded.java:921)
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:858)
at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:747)
at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:71)
at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices(ServiceGroup.java:266)
at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:211)
at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:60)
at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:180)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java:177)
at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:45)
at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:72)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent(ServerEntryHelper.java:62)
at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generatePortEntryContext(ServerEntryHelper.java:43)
at com.sun.enterprise.server.ss.ASSocketService.generateEntryContext(ASSocketService.java:279)
at com.sun.enterprise.server.ss.ASSocketService$EntryPointThread.run(ASSocketService.java:525)
|#]
[#|2007-01-12T15:51:23.408-0800|WARNING|sun-appserver9.1|javax.enterprise.system.container.web|_ThreadID=13;_ThreadName=Thread-5;_RequestID=51301bc0-d958-4ab1-83c5-3d81c7b7d66e;|org/jruby/internal/runtime/methods/FullInvocationMethod|#]