glassfish
  1. glassfish
  2. GLASSFISH-17216

when deploying a mdb project, some exception occur

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2_b23
    • Component/s: jms
    • Labels:
      None
    • Environment:

      jdk 6.0_21
      glassfish 3.1.1
      netbeans 7.0.1

      Description

      Launching GlassFish on Felix platform
      INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
      INFO: The Admin Console is already installed, but not yet loaded.
      INFO: Grizzly Framework 1.9.31 started in: 312ms - bound to [0.0.0.0:7676]
      INFO: Grizzly Framework 1.9.31 started in: 391ms - bound to [0.0.0.0:8080]
      INFO: Grizzly Framework 1.9.31 started in: 359ms - bound to [0.0.0.0:4848]
      INFO: Grizzly Framework 1.9.31 started in: 359ms - bound to [0.0.0.0:8181]
      INFO: Grizzly Framework 1.9.31 started in: 328ms - bound to [0.0.0.0:3700]
      INFO: SEC1002: Security Manager is OFF.
      INFO: SEC1010: Entering Security Startup Service
      INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
      INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
      INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
      INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
      INFO: SEC1011: Security Service(s) Started Successfully
      INFO: Hibernate Validator 4.1.0.Final
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: Portable JNDI names for EJB PatientFacade : [java:global/Patient-ejb/PatientFacade, java:global/Patient-ejb/PatientFacade!packt.PatientFacade]
      INFO: packt.Patient actually got transformed
      INFO: Portable JNDI names for EJB MedicationFacade : [java:global/Patient-ejb/MedicationFacade, java:global/Patient-ejb/MedicationFacade!packt.MedicationFacade]
      INFO: packt.Medication actually got transformed
      INFO: WELD-000900 $

      {parsedVersion (osgiVersion}

      )
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: CORE10010: Loading application Patient-ejb done in 8,343 ms
      INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]
      INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]
      INFO: WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]
      INFO: WEB0171: Created virtual server [server]
      INFO: WEB0171: Created virtual server [__asadmin]
      INFO: WEB0172: Virtual server [server] loaded default web module []
      INFO: Portable JNDI names for EJB MedicationFacade : [java:global/EJBServlet/MedicationFacade, java:global/EJBServlet/MedicationFacade!packt.MedicationFacade]
      INFO: Portable JNDI names for EJB PatientFacade : [java:global/EJBServlet/PatientFacade, java:global/EJBServlet/PatientFacade!packt.PatientFacade]
      INFO: WEB0671: Loading application [EJBServlet] at [/EJBServlet]
      INFO: CORE10010: Loading application EJBServlet done in 2,360 ms
      INFO: JTS5014: Recoverable JTS instance, serverId = [3700]
      INFO: entity.Cabin actually got transformed
      INFO: Portable JNDI names for EJB TravelAgentBean : [java:global/TiananEJBModule/TravelAgentBean!session.TravelagentRemote, java:global/TiananEJBModule/TravelAgentBean]
      INFO: Glassfish-specific (Non-portable) JNDI names for EJB TravelAgentBean : session.TravelagentRemote, session.TravelagentRemote#session.TravelagentRemote
      INFO: CORE10010: Loading application TiananEJBModule done in 5,375 ms
      SEVERE: not.found.in.original.location[Ljava.lang.Object;@3e6d51
      INFO: Portable JNDI names for EJB Salutation : [java:global/EJBCookbook/Salutation, java:global/EJBCookbook/Salutation!beans.Salutation]
      INFO: Portable JNDI names for EJB SphereBean : [java:global/EJBCookbook/SphereBean!beans.SphereBean, java:global/EJBCookbook/SphereBean!beans.SphereBeanLocal]
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: WEB0671: Loading application [EJBCookbook] at [/EJBCookbook]
      INFO: CORE10010: Loading application EJBCookbook done in 500 ms
      INFO: GlassFish Server Open Source Edition 3.1 (43) 启动时间: Felix (8,766ms),启动服务 (18,968ms),总计(27,734ms)
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]
      INFO: Grizzly Framework 1.9.31 started in: 0ms - bound to [0.0.0.0:8080]
      INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://certusnet-08d9a:8686/jndi/rmi://certusnet-08d9a:8686/jmxrmi
      INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]
      INFO: Grizzly Framework 1.9.31 started in: 0ms - bound to [0.0.0.0:8181]
      INFO: Total number of available updates : 58
      INFO: Number of available updates since Sun Aug 21 16:16:53 CST 2011 : 0
      INFO: ADDRESSLIST in setJmsServiceProvider: mq://localhost:7676/
      INFO: JMS Service Connection URL is : mq://localhost:7676/
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter: Version: 4.5 (Build 29-b) Compile: Wed Feb 9 22:53:30 PST 2011
      INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter starting: broker is EMBEDDED, connection mode is Direct
      INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter Started:EMBEDDED
      INFO: end point determine destionation name, Res name: javax.jms.Queue, JNDI name: TextBean descriptor name :

      {3}
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: WEB0671: Loading application [MDBExample] at [/MDBExample]
      INFO: MDBExample 在 3,281 毫秒内成功完成部署。
      WARNING: [MDBContainer] Current thread done cleanup()...
      INFO: end point determine destionation name, Res name: javax.jms.Queue, JNDI name: TextBean descriptor name : {3}

      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: WEB0671: Loading application [MDBExample] at [/MDBExample]
      INFO: MDBExample 在 281 毫秒内成功完成部署。
      INFO: PWC1412: WebModule[null] ServletContext.log():PWC1409: Marking servlet TextServlet as unavailable
      WARNING: StandardWrapperValve[TextServlet]: PWC1382: Allocate exception for servlet TextServlet
      com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class servlet.TextServlet
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:317)
      at com.sun.enterprise.web.WebContainer.createServletInstance(WebContainer.java:702)
      at com.sun.enterprise.web.WebModule.createServletInstance(WebModule.java:1958)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1263)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1070)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:189)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.IllegalStateException: Exception attempting to inject Res-Ref-Env-Property: servlet.TextServlet/queueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/TextFactoryPool@res principal: null@mail: null
      No Runtime properties
      Database Vendor : null
      Create Tables at Deploy : false
      Delete Tables at Undeploy : false into class servlet.TextServlet
      at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:137)
      at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:50)
      at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:114)
      at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:253)
      at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:204)
      at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:478)
      at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:428)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:300)
      ... 28 more
      Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: servlet.TextServlet/queueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/TextFactoryPool@res principal: null@mail: null
      No Runtime properties
      Database Vendor : null
      Create Tables at Deploy : false
      Delete Tables at Undeploy : false into class servlet.TextServlet
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:698)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:468)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:173)
      at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:130)
      ... 35 more
      Caused by: javax.naming.NamingException: Lookup failed for 'java:comp/env/servlet.TextServlet/queueConnectionFactory' in SerialContext[myEnv=

      {java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming} [Root exception is javax.naming.NamingException: Lookup failed for 'jms/TextFactoryPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming, com.sun.enterprise.naming.logicalName=java:comp/env/servlet.TextServlet/queueConnectionFactory} [Root exception is javax.naming.NameNotFoundException: TextFactoryPool not found]]
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:597)
      ... 38 more
      Caused by: javax.naming.NamingException: Lookup failed for 'jms/TextFactoryPool' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming, com.sun.enterprise.naming.logicalName=java:comp/env/servlet.TextServlet/queueConnectionFactory} [Root exception is javax.naming.NameNotFoundException: TextFactoryPool not found]
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:90)
      at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:772)
      at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:740)
      at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:172)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:498)
      ... 42 more
      Caused by: javax.naming.NameNotFoundException: TextFactoryPool not found
      at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:248)
      at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:215)
      at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219)
      at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77)
      at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:119)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:505)
      ... 50 more

      INFO: The Admin Console is already installed, but not yet loaded.
      INFO: The Admin Console is starting. Please wait.
      INFO: Initiating Jersey application, version 'Jersey: 1.5 01/14/2011 12:36 PM'
      INFO: 初始化上下文 '' 的 Mojarra 2.1.0 (FCS 2.1.0-b11)
      INFO: Listening to REST requests at context: /management/domain
      INFO: WEB0671: Loading application [__admingui] at [/]
      INFO: CORE10010: Loading application __admingui done in 9,140 ms
      INFO: The Admin Console application is loaded.
      WARNING: PWC4011: Unable to set request character encoding to UTF-8 from context , because request parameters have already been read, or ServletRequest.getReader() has already been called
      INFO: 管理控制台: 正在初始化会话属性...
      WARNING: 无法为 D:\Program Files\glassfish-3.1 创建更新中心映像;更新中心功能在管理控制台中将不可用
      SEVERE: RestResponse.getResponse() 提供 FAILURE。endpoint = "http://localhost:4848/management/domain/resources/connector-resource/jms%2FTextQueueFactoryPool";attrs = "{}"
      INFO: 发生异常:java.lang.RuntimeException: REST Request 'http://localhost:4848/management/domain/resources/connector-resource/jms%2FTextQueueFactoryPool' failed with response code '404'.
      WARNING: [MDBContainer] Current thread done cleanup()...
      INFO: end point determine destionation name, Res name: javax.jms.Queue, JNDI name: TextBean descriptor name : {3}
      INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
      INFO: WEB0671: Loading application [MDBExample] at [/MDBExample]
      INFO: MDBExample 在 297 毫秒内成功完成部署。
      INFO: PWC1412: WebModule[null] ServletContext.log():PWC1409: Marking servlet TextServlet as unavailable
      WARNING: StandardWrapperValve[TextServlet]: PWC1382: Allocate exception for servlet TextServlet
      com.sun.enterprise.container.common.spi.util.InjectionException: Error creating managed object for class servlet.TextServlet
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:317)
      at com.sun.enterprise.web.WebContainer.createServletInstance(WebContainer.java:702)
      at com.sun.enterprise.web.WebModule.createServletInstance(WebModule.java:1958)
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1263)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:1070)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:189)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: java.lang.IllegalStateException: Exception attempting to inject Res-Ref-Env-Property: servlet.TextServlet/queueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/TextFactoryPool@res principal: null@mail: null
      No Runtime properties
      Database Vendor : null
      Create Tables at Deploy : false
      Delete Tables at Undeploy : false into class servlet.TextServlet
      at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:137)
      at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:50)
      at org.jboss.weld.manager.SimpleInjectionTarget.inject(SimpleInjectionTarget.java:114)
      at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:253)
      at org.glassfish.weld.services.JCDIServiceImpl.createManagedObject(JCDIServiceImpl.java:204)
      at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:478)
      at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:428)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:300)
      ... 28 more
      Caused by: com.sun.enterprise.container.common.spi.util.InjectionException: Exception attempting to inject Res-Ref-Env-Property: servlet.TextServlet/queueConnectionFactory@javax.jms.QueueConnectionFactory@ resolved as: jndi: jms/TextFactoryPool@res principal: null@mail: null
      No Runtime properties
      Database Vendor : null
      Create Tables at Deploy : false
      Delete Tables at Undeploy : false into class servlet.TextServlet
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:698)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:468)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:173)
      at org.glassfish.weld.services.InjectionServicesImpl.aroundInject(InjectionServicesImpl.java:130)
      ... 35 more
      Caused by: javax.naming.NamingException: Lookup failed for 'java:comp/env/servlet.TextServlet/queueConnectionFactory' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming}

      [Root exception is javax.naming.NamingException: Lookup failed for 'jms/TextFactoryPool' in SerialContext[myEnv=

      {java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming, com.sun.enterprise.naming.logicalName=java:comp/env/servlet.TextServlet/queueConnectionFactory}

      [Root exception is javax.naming.NameNotFoundException: TextFactoryPool not found]]
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:597)
      ... 38 more
      Caused by: javax.naming.NamingException: Lookup failed for 'jms/TextFactoryPool' in SerialContext[myEnv=

      {java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, java.naming.factory.url.pkgs=com.sun.enterprise.naming, com.sun.enterprise.naming.logicalName=java:comp/env/servlet.TextServlet/queueConnectionFactory}

      [Root exception is javax.naming.NameNotFoundException: TextFactoryPool not found]
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at javax.naming.InitialContext.lookup(InitialContext.java:411)
      at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:90)
      at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:772)
      at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:740)
      at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:172)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:498)
      ... 42 more
      Caused by: javax.naming.NameNotFoundException: TextFactoryPool not found
      at com.sun.enterprise.naming.impl.TransientContext.doLookup(TransientContext.java:248)
      at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:215)
      at com.sun.enterprise.naming.impl.TransientContext.lookup(TransientContext.java:219)
      at com.sun.enterprise.naming.impl.SerialContextProviderImpl.lookup(SerialContextProviderImpl.java:77)
      at com.sun.enterprise.naming.impl.LocalSerialContextProviderImpl.lookup(LocalSerialContextProviderImpl.java:119)
      at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:505)
      ... 50 more

        Activity

        Hide
        David Zhao added a comment -

        Per the trace log, it seems that the resource with jndi name "jms/TextFactoryPool" does not exist when the ear is deployed. Please make sure the resource is created successfully previously.

        Show
        David Zhao added a comment - Per the trace log, it seems that the resource with jndi name "jms/TextFactoryPool" does not exist when the ear is deployed. Please make sure the resource is created successfully previously.
        Hide
        David Zhao added a comment -

        googya,

        Can you confirm if resource with jndi name "jms/TextFactoryPool" exists when you deploying mdb?

        Show
        David Zhao added a comment - googya, Can you confirm if resource with jndi name "jms/TextFactoryPool" exists when you deploying mdb?
        Hide
        David Zhao added a comment -

        Can not reproduce against NetBeans 7.1.1 and GlassFish 3.1.2. Please try the sample EnterpriseApplication2.zip which I built for demonstration.

        The output:
        =============================================================
        Launching GlassFish on Felix platform
        INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2 (build 23)
        INFO: Grizzly Framework 1.9.46 started in: 50ms - bound to [0.0.0.0:8080]
        INFO: Grizzly Framework 1.9.46 started in: 7ms - bound to [0.0.0.0:7676]
        INFO: Grizzly Framework 1.9.46 started in: 14ms - bound to [0.0.0.0:3700]
        INFO: Grizzly Framework 1.9.46 started in: 34ms - bound to [0.0.0.0:8181]
        INFO: Grizzly Framework 1.9.46 started in: 28ms - bound to [0.0.0.0:4848]
        INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry
        INFO: GlassFish Server Open Source Edition 3.1.2 (23) startup time : Felix (9,637ms), startup services(707ms), total(10,344ms)
        INFO: JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://davidz-lt.cn.oracle.com:8686/jndi/rmi://davidz-lt.cn.oracle.com:8686/jmxrmi
        INFO: Hibernate Validator 4.2.0.Final
        INFO: Grizzly Framework 1.9.46 started in: 5ms - bound to [0.0.0.0:8080]
        INFO: unable to read instance state file D:\glassfish-3.1.2\glassfish\domains\domain1\config\.instancestate, recreating
        INFO: Grizzly Framework 1.9.46 started in: 11ms - bound to [0.0.0.0:8181]
        INFO: Created EjbThreadPoolExecutor with thread-core-pool-size 16 thread-max-pool-size 32 thread-keep-alive-seconds 60 thread-queue-capacity 2147483647 allow-core-thread-timeout false
        INFO: SEC1002: Security Manager is OFF.
        INFO: SEC1010: Entering Security Startup Service
        INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
        INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
        INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created.
        INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created.
        INFO: SEC1011: Security Service(s) Started Successfully
        INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080]
        INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181]
        INFO: WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848]
        INFO: WEB0171: Created virtual server [server]
        INFO: WEB0171: Created virtual server [__asadmin]
        INFO: WEB0172: Virtual server [server] loaded default web module []
        INFO: JTS5014: Recoverable JTS instance, serverId = [3700]
        INFO: JMS010: ADDRESSLIST in setJmsServiceProvider: mq://localhost:7676/
        INFO: JMS08: JMS Service Connection URL is : mq://localhost:7676/
        INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter: Version: 4.5.2 (Build 2-d) Compile: Thu Dec 8 17:30:48 PST 2011
        INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter starting: broker is EMBEDDED, connection mode is Direct
        INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter Started:EMBEDDED
        INFO: JMS013: end point determine destionation name, Res name: javax.jms.Queue, JNDI name: NewMessageBean descriptor name :

        {3}

        INFO: WEB0671: Loading application EnterpriseApplication2#EnterpriseApplication2-war.war at [EnterpriseApplication2-war]
        INFO: EnterpriseApplication2 was successfully deployed in 6,331 milliseconds.

        Show
        David Zhao added a comment - Can not reproduce against NetBeans 7.1.1 and GlassFish 3.1.2. Please try the sample EnterpriseApplication2.zip which I built for demonstration. The output: ============================================================= Launching GlassFish on Felix platform INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3.1.2 (build 23) INFO: Grizzly Framework 1.9.46 started in: 50ms - bound to [0.0.0.0:8080] INFO: Grizzly Framework 1.9.46 started in: 7ms - bound to [0.0.0.0:7676] INFO: Grizzly Framework 1.9.46 started in: 14ms - bound to [0.0.0.0:3700] INFO: Grizzly Framework 1.9.46 started in: 34ms - bound to [0.0.0.0:8181] INFO: Grizzly Framework 1.9.46 started in: 28ms - bound to [0.0.0.0:4848] INFO: Registered org.glassfish.ha.store.adapter.cache.ShoalBackingStoreProxy for persistence-type = replicated in BackingStoreFactoryRegistry INFO: GlassFish Server Open Source Edition 3.1.2 (23) startup time : Felix (9,637ms), startup services(707ms), total(10,344ms) INFO: JMX005: JMXStartupService had Started JMXConnector on JMXService URL service:jmx:rmi://davidz-lt.cn.oracle.com:8686/jndi/rmi://davidz-lt.cn.oracle.com:8686/jmxrmi INFO: Hibernate Validator 4.2.0.Final INFO: Grizzly Framework 1.9.46 started in: 5ms - bound to [0.0.0.0:8080] INFO: unable to read instance state file D:\glassfish-3.1.2\glassfish\domains\domain1\config\.instancestate, recreating INFO: Grizzly Framework 1.9.46 started in: 11ms - bound to [0.0.0.0:8181] INFO: Created EjbThreadPoolExecutor with thread-core-pool-size 16 thread-max-pool-size 32 thread-keep-alive-seconds 60 thread-queue-capacity 2147483647 allow-core-thread-timeout false INFO: SEC1002: Security Manager is OFF. INFO: SEC1010: Entering Security Startup Service INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper. INFO: SEC1115: Realm [admin-realm] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created. INFO: SEC1115: Realm [file] of classtype [com.sun.enterprise.security.auth.realm.file.FileRealm] successfully created. INFO: SEC1115: Realm [certificate] of classtype [com.sun.enterprise.security.auth.realm.certificate.CertificateRealm] successfully created. INFO: SEC1011: Security Service(s) Started Successfully INFO: WEB0169: Created HTTP listener [http-listener-1] on host/port [0.0.0.0:8080] INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] INFO: WEB0169: Created HTTP listener [admin-listener] on host/port [0.0.0.0:4848] INFO: WEB0171: Created virtual server [server] INFO: WEB0171: Created virtual server [__asadmin] INFO: WEB0172: Virtual server [server] loaded default web module [] INFO: JTS5014: Recoverable JTS instance, serverId = [3700] INFO: JMS010: ADDRESSLIST in setJmsServiceProvider: mq://localhost:7676/ INFO: JMS08: JMS Service Connection URL is : mq://localhost:7676/ INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter: Version: 4.5.2 (Build 2-d) Compile: Thu Dec 8 17:30:48 PST 2011 INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter starting: broker is EMBEDDED, connection mode is Direct INFO: MQJMSRA_RA1101: GlassFish MQ JMS Resource Adapter Started:EMBEDDED INFO: JMS013: end point determine destionation name, Res name: javax.jms.Queue, JNDI name: NewMessageBean descriptor name : {3} INFO: WEB0671: Loading application EnterpriseApplication2#EnterpriseApplication2-war.war at [EnterpriseApplication2-war] INFO: EnterpriseApplication2 was successfully deployed in 6,331 milliseconds.

          People

          • Assignee:
            David Zhao
            Reporter:
            googya
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: