dev@glassfish.java.net

Re: Error deploying enterprise application in Glassfish 3.1 build 20

From: Nigel Deakin <nigel.deakin_at_oracle.com>
Date: Tue, 21 Sep 2010 19:15:27 +0100

Thanks, Dies. Switching from b20 to b21 gave me a proper stack trace, which is being thrown by the genericJMSRA resource
adapter when it tries to use the WebLogic JMS client.

This application worked just fine in Glasssfish 3.0.1, and I have just confirmed that it works just fine in Glassfish
3.1 build 17, so we have some kind of regression...

Here's the stack trace. The error seems related to class loading: I'm using GenericJMSRA to connect to WebLogic JMS. The
WebLogic JMS client jar is in glassfish/lib.

[#|2010-09-21T18:30:45.734+0100|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=15;_ThreadName=Thread-1;|Exception
while loading the app : EJB Container initialization error
java.lang.InternalError: error initializing kernel caused by: java.lang.LinkageError: loader (instance of
java/net/URLClassLoader): attempted duplicate class definition for name: "weblogic/kernel/FinalThreadLocal"
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        at weblogic.kernel.FinalThreadLocal$FinalThreadStorage.<clinit>(FinalThreadLocal.java:181)
        at weblogic.kernel.AuditableThread.<init>(AuditableThread.java:13)
        at weblogic.kernel.ExecuteThread.<init>(ExecuteThread.java:43)
        at weblogic.kernel.ServerExecuteThread.<init>(ServerExecuteThread.java:25)
        at weblogic.kernel.ExecuteThreadManager.createExecuteThread(ExecuteThreadManager.java:446)
        at weblogic.kernel.ExecuteThreadManager.setThreadCount(ExecuteThreadManager.java:138)
        at weblogic.kernel.ExecuteThreadManager.<init>(ExecuteThreadManager.java:78)
        at weblogic.kernel.Kernel.addExecuteQueue(Kernel.java:429)
        at weblogic.work.KernelDelegator.<init>(KernelDelegator.java:28)
        at weblogic.work.ExecuteQueueFactory.create(ExecuteQueueFactory.java:105)
        at weblogic.work.ExecuteQueueFactory.initializeHere(ExecuteQueueFactory.java:51)
        at weblogic.work.ExecuteQueueFactory.initialize(ExecuteQueueFactory.java:24)
        at weblogic.kernel.Kernel.initialize(Kernel.java:103)
        at weblogic.kernel.Kernel.ensureInitialized(Kernel.java:64)
        at weblogic.rjvm.wls.WLSClientRJVMEnvironment.ensureInitialized(WLSClientRJVMEnvironment.java:55)
        at weblogic.protocol.ServerURL.getDefaultURL(ServerURL.java:82)
        at weblogic.protocol.ServerURL.<clinit>(ServerURL.java:50)
        at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:338)
        at weblogic.jndi.Environment.getContext(Environment.java:315)
        at weblogic.jndi.Environment.getContext(Environment.java:285)
        at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
        at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
        at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at com.sun.genericra.util.ObjectBuilderFactory$JndiObjectBuilder.createObject(ObjectBuilderFactory.java:94)
        at com.sun.genericra.util.ObjectBuilder.build(ObjectBuilder.java:99)
        at com.sun.genericra.inbound.AbstractConsumer.initializeAdministeredObjects(AbstractConsumer.java:95)
        at com.sun.genericra.inbound.AbstractConsumer.<init>(AbstractConsumer.java:63)
        at com.sun.genericra.inbound.sync.SyncConsumer.<init>(SyncConsumer.java:45)
        at com.sun.genericra.inbound.EndpointConsumerFactory.createEndpointConsumer(EndpointConsumerFactory.java:47)
        at com.sun.genericra.GenericJMSRA.endpointActivation(GenericJMSRA.java:215)
        at com.sun.enterprise.connectors.inbound.ConnectorMessageBeanClient.setup(ConnectorMessageBeanClient.java:225)
        at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:204)
        at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:121)
        at org.glassfish.ejb.startup.EjbApplication.loadContainers(EjbApplication.java:230)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:256)
        at org.glassfish.ejb.startup.EjbDeployer.load(EjbDeployer.java:97)
        at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:174)
        at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:239)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:401)
        at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:221)
        at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:351)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:375)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1072)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:101)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1221)
        at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1210)
        at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:375)
        at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:209)
        at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
        at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:824)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:721)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1014)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:220)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:530)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:511)
        at java.lang.Thread.run(Thread.java:619)

Koper, Dies wrote, on 21/09/2010 17:01:
> Hi Nigel,
>
> Hong fixed the issue of the first message in your server log (bundle not
> found for ModuleInfo) two days ago. If you try again on a later (b21
> nightly) build, you should get the real error message it was trying to
> log. It might help explain better what's wrong.
>
> Regards,
> Dies
>
>
>> -----Original Message-----
>> From: Nigel Deakin [mailto:nigel.deakin_at_oracle.com]
>> Sent: Tuesday, 21 September 2010 20:17
>> To: dev_at_glassfish.dev.java.net
>> Subject: Error deploying enterprise application in Glassfish 3.1 build
>> 20
>>
>> I'm trying to deploy a simple enterprise app in Glassfish 3.1 build
> 20.
>> This works just fine in Glassfish 3.0.1 and
>> Glassfish 2.1.1,
>>
>> This fails, without any information as to what the problem is. Can
>> anyone please advise how I might investigate the error?
>>
>> The command I executed was:
>>
>> asadmin deploy --host localhost --port 4848 --target server
> --retrieve
>> C:\mq\genericjmsra/tests/build/lib
>> C:\mq\genericjmsra/tests/build/lib/testgenericra-performance-
>> queueApp.ear
>>
>> The response I received was:
>>
>> Deprecated syntax, instead use:
>> asadmin --port 4848 --host localhost deploy [options] ...
>> remote failure: Exception while loading the app :
>> java.lang.RuntimeException: EJB Container initialization error
>> Command deploy failed.
>> EJB Container initialization errorException while invoking class
>> org.glassfish.ejb.startup.EjbDeployer load method :
>> java.lang.RuntimeException: EJB Container initialization error
>> EJB Container initialization error
>>
>> The server log reported:
>>
>> [#|2010-09-
>>
> 21T11:53:23.833+0100|WARNING|glassfish3.1|javax.enterprise.system.core|
>> _ThreadID=15;_ThreadName=Thread-1;|Can
>> not find resource bundle for this logger. class name that failed:
>> org.glassfish.internal.data.ModuleInfo|#]
>>
>> [#|2010-09-
>>
> 21T11:53:23.833+0100|SEVERE|glassfish3.1|javax.enterprise.system.core.o
>>
> rg.glassfish.internal.data|_ThreadID=15;_ThreadName=Thread-1;|Exception
>> while invoking class org.glassfish.ejb.startup.EjbDeployer load
>> method|#]
>>
>> [#|2010-09-
>>
> 21T11:53:23.833+0100|SEVERE|glassfish3.1|javax.enterprise.system.core.c
>> om.sun.enterprise.v3.server|_ThreadID=15;_ThreadName=Thread-
>> 1;|Exception
>> while loading the app|#]
>>
>> [#|2010-09-
>>
> 21T11:53:23.833+0100|WARNING|glassfish3.1|javax.enterprise.system.core|
>> _ThreadID=15;_ThreadName=Thread-1;|Can
>> not find resource bundle for this logger. class name that failed:
>> org.glassfish.internal.data.ModuleInfo|#]
>>
>> [#|2010-09-
>>
> 21T11:53:23.849+0100|WARNING|glassfish3.1|javax.enterprise.system.core.
>> org.glassfish.admin.payload|_ThreadID=15;_ThreadName=Thread-
>> 1;|PAYL1001:
>> Error processing file
>> C:\Sun\glassfish-3.1-
>> b20\glassfishv3\glassfish\domains\domain1\generated\xml\testgenericra-
>> performance-queueApp\testgenericra-performance-queue-
>> client_jar\testgenericra-performance-queue-clientClient.jar
>> to include it in the payload|#]
>>
>> [#|2010-09-
>>
> 21T11:53:23.849+0100|WARNING|glassfish3.1|javax.enterprise.system.core.
>> org.glassfish.admin.payload|_ThreadID=15;_ThreadName=Thread-
>> 1;|PAYL1001:
>> Error processing file
>> C:\Sun\glassfish-3.1-
>> b20\glassfishv3\glassfish\domains\domain1\generated\xml\testgenericra-
>> performance-queueApp\testgenericra-performance-queueAppClient.jar
>> to include it in the payload|#]
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>