com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: jms/QueueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/QueueConnectionFactory@res principal: null@mail: null No Runtime properties Database Vendor : null Create Tables at Deploy : false Delete Tables at Undeploy : false into class Main: Lookup failed for 'java:comp/env/jms/QueueConnectionFactory' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    @Resource is not Injecting JMS resources in glassfish4 Application client container (ACC)

    Stack Overflow | 11 months ago | Mukesh kumar saini
    com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: jms/QueueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/QueueConnectionFactory@res principal: null@mail: null No Runtime properties Database Vendor : null Create Tables at Deploy : false Delete Tables at Undeploy : false into class Main: Lookup failed for 'java:comp/env/jms/QueueConnectionFactory' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}
  2. 0

    Calling SessionBean gives InjectionException

    Stack Overflow | 1 year ago | James Lin
    com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Env-Prop: ejbclient1.EJBSBMAIN/sb1@Field-Injectable Resource. Class name = ejbclient1.EJBSBMAIN Field name=sb1@java.lang.String@@@ into class ejbclient1.EJBSBMAIN: Lookup failed for 'java:comp/env/ejbclient1.EJBSBMAIN/sb1' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}

    Root Cause Analysis

    1. com.sun.enterprise.container.common.spi.util.InjectionException

      Exception attempting to inject Res-Ref-Env-Property: jms/QueueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/QueueConnectionFactory@res principal: null@mail: null No Runtime properties Database Vendor : null Create Tables at Deploy : false Delete Tables at Undeploy : false into class Main: Lookup failed for 'java:comp/env/jms/QueueConnectionFactory' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl}

      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject()
    2. Container Common
      InjectionManagerImpl.injectClass
      1. com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:740)
      2. com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:507)
      3. com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:235)
      4. com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectClass(InjectionManagerImpl.java:227)
      4 frames
    3. org.glassfish.appclient
      AppClientContainerAgent.premain
      1. org.glassfish.appclient.client.acc.AppClientContainer$ClientMainClassSetting.getClientMainClass(AppClientContainer.java:636)
      2. org.glassfish.appclient.client.acc.AppClientContainer.getMainMethod(AppClientContainer.java:525)
      3. org.glassfish.appclient.client.acc.AppClientContainer.completePreparation(AppClientContainer.java:419)
      4. org.glassfish.appclient.client.acc.AppClientContainer.prepare(AppClientContainer.java:320)
      5. org.glassfish.appclient.client.AppClientFacade.prepareACC(AppClientFacade.java:279)
      6. org.glassfish.appclient.client.acc.agent.AppClientContainerAgent.premain(AppClientContainerAgent.java:83)
      6 frames
    4. Java RT
      InstrumentationImpl.loadClassAndCallPremain
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      5. sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:382)
      6. sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:397)
      6 frames