Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 9.1pe
    • Fix Version/s: 9.1pe
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: Linux

    • Issuezilla Id:
      2,190

      Description

      I have an enterprise application that contains an EJB module. I setup an
      ejb-jar.xml file to define resources that I want to inject into a couple beans.
      But the resource injection fails (refer to log files).

      I'm attaching the project and log file.

      1. server.log
        15 kB
        dhcavalcanti
      2. server.log
        39 kB
        dhcavalcanti

        Issue Links

          Activity

          Hide
          vijaysr added a comment -

          reassign

          Show
          vijaysr added a comment - reassign
          Hide
          Bhakti Mehta added a comment -

          Hi,
          I tried deploying the schema-manager.jar and run into this error. I tried
          building and deploying from NB too.
          Hence I am not able to reproduce your problem. Please can you attach the war to
          reproduce the problem.

          [#|2007-03-01T10:29:17.453-0800|WARNING|sun-appserver9.1|javax.enterprise.system
          .core.classloading|_ThreadID=14;_ThreadName=Timer-6;_RequestID=6c5fda11-1b73-45d
          a-85ad-6c4d5da1581f;|javax.naming.NameNotFoundException: collector not found
          java.lang.RuntimeException: javax.naming.NameNotFoundException: collector not fo
          und
          at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(P
          ersistenceUnitInfoImpl.java:267)
          at com.sun.enterprise.server.PersistenceUnitInfoImpl.<init>(PersistenceU
          nitInfoImpl.java:99)
          at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceU
          nitLoaderImpl.java:108)
          at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceU
          nitLoaderImpl.java:71)
          at com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits(Abstrac
          tLoader.java:881)
          at com.sun.enterprise.server.EJBModuleLoader.doLoad(EJBModuleLoader.java
          :152)
          at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226
          )
          at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(
          StandAloneEJBModulesManager.java:219)
          at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(
          StandAloneEJBModulesManager.java:174)
          at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed(
          StandAloneEJBModulesManager.java:406)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDepl
          oyEventListener(AdminEventMulticaster.java:951)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDepl
          oyEvent(AdminEventMulticaster.java:938)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(Adm
          inEventMulticaster.java:448)
          at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(A
          dminEventMulticaster.java:160)
          at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.mul
          ticastEvent(DeploymentNotificationHelper.java:295)
          at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicas
          tEvent(DeploymentServiceUtils.java:210)
          at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStar
          tEvent(ServerDeploymentTarget.java:285)
          at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(
          ApplicationStartPhase.java:119)
          at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(De
          ploymentPhase.java:95)
          at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhas
          es(PEDeploymentService.java:892)
          at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDe
          ploymentService.java:263)
          at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDe
          ploymentService.java:281)
          at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(Applic
          ationsConfigMBean.java:542)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
          java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelpe
          r.java:353)
          at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelpe
          r.java:336)
          at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBea
          n.java:448)
          at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp
          l.java:213)
          at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
          at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM
          BeanServerInterceptor.java:815)
          at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784
          )
          at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
          sorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java
          :77)
          at $Proxy1.invoke(Unknown Source)
          at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(Sun
          oneInterceptor.java:297)
          at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymen
          tService(AutoDeployer.java:508)
          at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArc
          hive(AutoDeployer.java:489)
          at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDepl
          oyer.java:436)
          at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoD
          eployer.java:253)
          at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$Aut
          oDeployTask.run(AutoDeployControllerImpl.java:361)
          at java.util.TimerThread.mainLoop(Timer.java:512)
          at java.util.TimerThread.run(Timer.java:462)
          Caused by: javax.naming.NameNotFoundException: collector not found
          at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext.
          java:203)
          at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.ja
          va:175)
          at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.ja
          va:179)
          at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialCont
          extProviderImpl.java:61)
          at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(Local
          SerialContextProviderImpl.java:98)
          at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:315
          )
          at javax.naming.InitialContext.lookup(InitialContext.java:351)
          at com.sun.enterprise.connectors.ConnectorResourceAdminServiceImpl.looku
          p(ConnectorResourceAdminServiceImpl.java:179)
          at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(Conne
          ctorRuntime.java:1071)
          at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(P
          ersistenceUnitInfoImpl.java:264)
          ... 46 more

          #]

          [#|2007-03-01T10:29:17.453-0800|WARNING|sun-appserver9.1|javax.enterprise.system
          .core|_ThreadID=14;_ThreadName=Timer-6;_RequestID=6c5fda11-1b73-45da-85ad-6c4d5d
          a1581f;|CORE5020: Error while loading ejb module|#]

          [#|2007-03-01T10:29:17.468-0800|WARNING|sun-appserver9.1|javax.enterprise.system
          .tools.admin|_ThreadID=14;_ThreadName=Timer-6;Error while loading EJB module [sc
          hema-manager]. Please refer to the server log for more details. ;_RequestID=6c5f
          da11-1b73-45da-85ad-6c4d5da1581f;|ADM1075:Error on listening event:[Error while
          loading EJB module [schema-manager]. Please refer to the server log for more det
          ails. ]|#]

          [#|2007-03-01T10:29:17.468-0800|WARNING|sun-appserver9.1|javax.enterprise.system
          .tools.deployment|_ThreadID=14;_ThreadName=Timer-6;_RequestID=6c5fda11-1b73-45da
          -85ad-6c4d5da1581f;|Warning while deploying : com.sun.enterprise.deployment.back
          end.IASDeploymentException: Error while loading EJB module [schema-manager]. Ple
          ase refer to the server log for more details.
          .|#]

          [#|2007-03-01T10:29:17.468-0800|INFO|sun-appserver9.1|javax.enterprise.system.to
          ols.deployment|_ThreadID=14;_ThreadName=Timer-6;|[AutoDeploy] Autodeployed : C:\
          publish\glassfish\domains\domain1\autodeploy\schema-manager.jar with at least on
          e warning. Please check the server.log file and make sure the autodeployment com
          pleted as expected.|#]

          Show
          Bhakti Mehta added a comment - Hi, I tried deploying the schema-manager.jar and run into this error. I tried building and deploying from NB too. Hence I am not able to reproduce your problem. Please can you attach the war to reproduce the problem. [#|2007-03-01T10:29:17.453-0800|WARNING|sun-appserver9.1|javax.enterprise.system .core.classloading|_ThreadID=14;_ThreadName=Timer-6;_RequestID=6c5fda11-1b73-45d a-85ad-6c4d5da1581f;|javax.naming.NameNotFoundException: collector not found java.lang.RuntimeException: javax.naming.NameNotFoundException: collector not fo und at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(P ersistenceUnitInfoImpl.java:267) at com.sun.enterprise.server.PersistenceUnitInfoImpl.<init>(PersistenceU nitInfoImpl.java:99) at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceU nitLoaderImpl.java:108) at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceU nitLoaderImpl.java:71) at com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits(Abstrac tLoader.java:881) at com.sun.enterprise.server.EJBModuleLoader.doLoad(EJBModuleLoader.java :152) at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:226 ) at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed( StandAloneEJBModulesManager.java:219) at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed( StandAloneEJBModulesManager.java:174) at com.sun.enterprise.server.StandAloneEJBModulesManager.moduleDeployed( StandAloneEJBModulesManager.java:406) at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDepl oyEventListener(AdminEventMulticaster.java:951) at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDepl oyEvent(AdminEventMulticaster.java:938) at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(Adm inEventMulticaster.java:448) at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(A dminEventMulticaster.java:160) at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.mul ticastEvent(DeploymentNotificationHelper.java:295) at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicas tEvent(DeploymentServiceUtils.java:210) at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStar tEvent(ServerDeploymentTarget.java:285) at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase( ApplicationStartPhase.java:119) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(De ploymentPhase.java:95) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhas es(PEDeploymentService.java:892) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDe ploymentService.java:263) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDe ploymentService.java:281) at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(Applic ationsConfigMBean.java:542) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelpe r.java:353) at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelpe r.java:336) at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBea n.java:448) at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImp l.java:213) at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220) at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultM BeanServerInterceptor.java:815) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784 ) at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java :77) at $Proxy1.invoke(Unknown Source) at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(Sun oneInterceptor.java:297) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.invokeDeploymen tService(AutoDeployer.java:508) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployJavaEEArc hive(AutoDeployer.java:489) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deploy(AutoDepl oyer.java:436) at com.sun.enterprise.deployment.autodeploy.AutoDeployer.deployAll(AutoD eployer.java:253) at com.sun.enterprise.deployment.autodeploy.AutoDeployControllerImpl$Aut oDeployTask.run(AutoDeployControllerImpl.java:361) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) Caused by: javax.naming.NameNotFoundException: collector not found at com.sun.enterprise.naming.TransientContext.doLookup(TransientContext. java:203) at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.ja va:175) at com.sun.enterprise.naming.TransientContext.lookup(TransientContext.ja va:179) at com.sun.enterprise.naming.SerialContextProviderImpl.lookup(SerialCont extProviderImpl.java:61) at com.sun.enterprise.naming.LocalSerialContextProviderImpl.lookup(Local SerialContextProviderImpl.java:98) at com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:315 ) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.sun.enterprise.connectors.ConnectorResourceAdminServiceImpl.looku p(ConnectorResourceAdminServiceImpl.java:179) at com.sun.enterprise.connectors.ConnectorRuntime.lookupPMResource(Conne ctorRuntime.java:1071) at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(P ersistenceUnitInfoImpl.java:264) ... 46 more #] [#|2007-03-01T10:29:17.453-0800|WARNING|sun-appserver9.1|javax.enterprise.system .core|_ThreadID=14;_ThreadName=Timer-6;_RequestID=6c5fda11-1b73-45da-85ad-6c4d5d a1581f;|CORE5020: Error while loading ejb module|#] [#|2007-03-01T10:29:17.468-0800|WARNING|sun-appserver9.1|javax.enterprise.system .tools.admin|_ThreadID=14;_ThreadName=Timer-6;Error while loading EJB module [sc hema-manager]. Please refer to the server log for more details. ;_RequestID=6c5f da11-1b73-45da-85ad-6c4d5da1581f;|ADM1075:Error on listening event:[Error while loading EJB module [schema-manager] . Please refer to the server log for more det ails. ]|#] [#|2007-03-01T10:29:17.468-0800|WARNING|sun-appserver9.1|javax.enterprise.system .tools.deployment|_ThreadID=14;_ThreadName=Timer-6;_RequestID=6c5fda11-1b73-45da -85ad-6c4d5da1581f;|Warning while deploying : com.sun.enterprise.deployment.back end.IASDeploymentException: Error while loading EJB module [schema-manager] . Ple ase refer to the server log for more details. .|#] [#|2007-03-01T10:29:17.468-0800|INFO|sun-appserver9.1|javax.enterprise.system.to ols.deployment|_ThreadID=14;_ThreadName=Timer-6;| [AutoDeploy] Autodeployed : C:\ publish\glassfish\domains\domain1\autodeploy\schema-manager.jar with at least on e warning. Please check the server.log file and make sure the autodeployment com pleted as expected.|#]
          Hide
          dhcavalcanti added a comment -

          I the schema-manager project directory /schema-manager/src/conf/ there is a
          schema-create.sql file to create the database/table used by the project. I used
          MySQL. The persistence.xml points the the jbdc jndi resource I created in the
          AS. You probably need to create the connection pool and the jdbc resource. I
          think that's why it's throwing that exception.

          Show
          dhcavalcanti added a comment - I the schema-manager project directory /schema-manager/src/conf/ there is a schema-create.sql file to create the database/table used by the project. I used MySQL. The persistence.xml points the the jbdc jndi resource I created in the AS. You probably need to create the connection pool and the jdbc resource. I think that's why it's throwing that exception.
          Hide
          gfbugbridge added a comment -

          <BT6543272>

          Show
          gfbugbridge added a comment - <BT6543272>
          Hide
          mikeg added a comment -

          @PostConstruct method was being invoked before injections, so the injections
          would not be visible using @PostConstruct. Fixed in b50

          Show
          mikeg added a comment - @PostConstruct method was being invoked before injections, so the injections would not be visible using @PostConstruct. Fixed in b50

            People

            • Assignee:
              Bhakti Mehta
              Reporter:
              dhcavalcanti
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: