users@glassfish.java.net

UnsatisfiedDepedencyException when injecting JMS resources into appclient m

From: <glassfish_at_javadesktop.org>
Date: Thu, 21 May 2009 08:22:50 PDT

I'm seeing this exception when injecting jms Queue and QueueConnectionFactory into appclient main class. This is v3 b48 nightly. Any idea?

May 21, 2009 11:14:45 AM com.sun.enterprise.security.appclient.AppClientSecurityInfoImpl initializeSecurity
 INFO: acc.secmgroff
 May 21, 2009 11:14:46 AM org.jvnet.hk2.component.InjectionManager inject
 INFO: Cannot inject com.sun.enterprise.config.serverbeans.AdminService com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.adminService in componentcom.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter_at_a
 May 21, 2009 11:14:46 AM com.sun.enterprise.naming.impl.SerialContext lookup
 SEVERE: enterprise_naming.serialctx_communication_exception
 May 21, 2009 11:14:46 AM com.sun.enterprise.naming.impl.SerialContext lookup
 SEVERE:
 org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied dependency exception : com.sun.enterprise.config.serverbeans.AdminService com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.adminService
         at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:102)
         at com.sun.hk2.component.AbstractWombImpl.inject(AbstractWombImpl.java:166)
         at com.sun.hk2.component.ConstructorWomb$1.run(ConstructorWomb.java:90)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.hk2.component.ConstructorWomb.initialize(ConstructorWomb.java:87)
         at com.sun.hk2.component.AbstractWombImpl.get(AbstractWombImpl.java:77)
         at com.sun.hk2.component.LazyInhabitant.get(LazyInhabitant.java:107)
         at com.sun.hk2.component.AbstractInhabitantImpl.get(AbstractInhabitantImpl.java:60)
         at org.jvnet.hk2.component.Habitat$1.get(Habitat.java:252)
         at java.util.AbstractList$Itr.next(AbstractList.java:345)
         at com.sun.enterprise.connectors.ActiveRAFactory.getActiveRA(ActiveRAFactory.java:139)
         at com.sun.enterprise.connectors.ActiveRAFactory.instantiateActiveResourceAdapter(ActiveRAFactory.java:128)
         at com.sun.enterprise.connectors.ActiveRAFactory.createActiveResourceAdapter(ActiveRAFactory.java:100)
         at com.sun.enterprise.connectors.service.ResourceAdapterAdminServiceImpl.createActiveResourceAdapter(ResourceAdapterAdminServiceImpl.java:277)
         at com.sun.enterprise.connectors.ConnectorRuntime.createActiveResourceAdapter(ConnectorRuntime.java:348)
         at com.sun.enterprise.resource.naming.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:113)
         at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
         at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:427)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:74)
         at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:461)
         at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:139)
         at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:418)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:291)
         at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:210)
         at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:149)
         at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:141)
         at org.glassfish.appclient.client.acc.AppClientContainer$ClientMainClassSetting.getClientMainClass(AppClientContainer.java:476)
         at org.glassfish.appclient.client.acc.AppClientContainer.getMainMethod(AppClientContainer.java:376)
         at org.glassfish.appclient.client.acc.AppClientContainer.completePreparation(AppClientContainer.java:342)
         at org.glassfish.appclient.client.acc.AppClientContainer.prepare(AppClientContainer.java:292)
         at org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:233)
         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 sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:323)
         at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:338)
 Caused by: org.jvnet.hk2.component.UnsatisfiedDepedencyException: Unsatisfied dependency exception : com.sun.enterprise.config.serverbeans.AdminService com.sun.enterprise.connectors.jms.system.ActiveJmsResourceAdapter.adminService
         at org.jvnet.hk2.component.InjectionManager.inject(InjectionManager.java:97)
         ... 38 more
 com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: queueConnectionFactory_at_javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/QueueConnectionFactory_at_res principal: guest_at_mail: null
 No Runtime properties
 Database Vendor : null
 Create Tables at Deploy : false
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=347173