javax.naming.NamingException: Only the application that has the embedded resourceadapter can access the resource adapter

Oracle Community | 807574 | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception while deploying application

    Oracle Community | 9 years ago | 807574
    javax.naming.NamingException: Only the application that has the embedded resourceadapter can access the resource adapter

    Root Cause Analysis

    1. javax.naming.NamingException

      Only the application that has the embedded resourceadapter can access the resource adapter

      at com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance()
    2. com.sun.enterprise
      ConnectorObjectFactory.getObjectInstance
      1. com.sun.enterprise.naming.factory.ConnectorObjectFactory.getObjectInstance(ConnectorObjectFactory.java:77)
      1 frame
    3. Java RT
      NamingManager.getObjectInstance
      1. javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
      1 frame
    4. Glassfish Naming
      SerialContext.lookup
      1. com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:293)
      1 frame
    5. Java RT
      InitialContext.lookup
      1. javax.naming.InitialContext.lookup(InitialContext.java:351)
      1 frame
    6. Glassfish Naming
      NamingManagerImpl.bindObjects
      1. com.sun.enterprise.naming.NamingManagerImpl.bindObjects(NamingManagerImpl.java:338)
      1 frame
    7. Embedded GlassFish Web
      ContainerFactoryImpl.createContainer
      1. com.sun.ejb.containers.BaseContainer.setupEnvironment(BaseContainer.java:1874)
      2. com.sun.ejb.containers.BaseContainer.<init>(BaseContainer.java:388)
      3. com.sun.ejb.containers.StatelessSessionContainer.<init>(StatelessSessionContainer.java:134)
      4. com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:209)
      4 frames
    8. com.sun.enterprise
      ApplicationManager.applicationDeployed
      1. com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:488)
      2. com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:148)
      3. com.sun.enterprise.server.HttpServiceApplicationLoader.load(HttpServiceApplicationLoader.java:97)
      4. com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:229)
      5. com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:164)
      6. com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:500)
      6 frames
    9. admin-util
      AdminEventMulticaster.multicastEvent
      1. com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:872)
      2. com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:856)
      3. com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:424)
      4. com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:139)
      4 frames
    10. com.sun.enterprise
      ServerRuntimeMBean.forwardEvent
      1. com.sun.enterprise.ee.admin.mbeans.ServerRuntimeMBean.forwardEvent(ServerRuntimeMBean.java:64)
      1 frame
    11. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor668.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:585)
      3 frames
    12. GlassFish Admin
      MBeanHelper.invokeOperationInBean
      1. com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:305)
      1 frame
    13. com.sun.enterprise
      BaseRuntimeMBean.invoke
      1. com.sun.enterprise.admin.runtime.BaseRuntimeMBean.invoke(BaseRuntimeMBean.java:386)
      1 frame
    14. Java RT
      Thread.run
      1. com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
      2. com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
      3. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
      4. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
      5. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1410)
      6. javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
      7. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1247)
      8. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1343)
      9. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:784)
      10. sun.reflect.GeneratedMethodAccessor209.invoke(Unknown Source)
      11. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      12. java.lang.reflect.Method.invoke(Method.java:585)
      13. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      14. sun.rmi.transport.Transport$1.run(Transport.java:153)
      15. java.security.AccessController.doPrivileged(Native Method)
      16. sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      17. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      18. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      19. java.lang.Thread.run(Thread.java:595)
      19 frames