2 Replies Latest reply on Jul 7, 2008 11:44 PM by Chris Simons

    Unable to bind local home for TimerServiceDispatcher into JNDI location

    Chris Simons Expert

      Trying to deploy examples/jee5/booking to OC4J 10.1.3.3.  If you've seen my posts before, you know that it's a nightmare.


      I think I've gotten past my TopLink problems and am now faced with this:


      Error initializing ejb-modules: Unable to bind local home for TimerServiceDispatcher into JNDI location jboss-seam_TimerServiceDispatcherLocal
      Any thoughts before I lose my mind?


      I assume it is getting this from my orion-ejb-jar.xml, which is as follows:



      <enterprise-beans>
              <session-deployment name="TimerServiceDispatcher" location="TimerServiceDispatcher" local-location="jboss-seam_TimerServiceDispatcherLocal" persistence-filename="TimerServiceDispatcher">
           <resource-env-ref-mapping name="org.jboss.seam.async.TimerServiceDispatcher/timerService" />
           </session-deployment>
           <session-deployment name="EjbSynchronizations" location="EjbSynchronizations" local-location="jboss-seam_EjbSynchronizationsLocal" passivate-count="0" persistence-filename="EjbSynchronizations">
      </session-deployment>
           </enterprise-beans>
           <assembly-descriptor>
           <default-method-access>
           <security-role-mapping name="&lt;default-ejb-caller-role&gt;" impliesAll="true" />
      </default-method-access>
      </assembly-descriptor>




        • 1. Re: Unable to bind local home for TimerServiceDispatcher into JNDI location
          Chris Simons Expert

          Here is some more detailed log information in case anyone is reading: (note that I still don't know where the default persistence unit is coming from as I never define it); seems TopLink wants what it can't have:


          08/07/07 16:57:39 FINE: RMIContext.rebind Binding jboss-seam/default to oracle.toplink.essentials.internal.ejb.cmp3.EntityManagerFactoryImpl@e4eda
          08/07/07 16:57:39 FINER: EJBPackageDeployment.bindHomes ENTRY com.evermind.server.ejb.EJBContainer@a6ad47
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_AuthenticatorActionLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINE: StatefulSessionEJBHome.<init> Remove signed bit from + -6876340918337667072
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_BookingListActionLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_ChangePasswordActionLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_HotelBookingActionLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_HotelSearchingActionLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINE: StatefulSessionEJBHome.<init> Remove signed bit from + -4296689371727265792
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_RegisterActionLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_TimerServiceDispatcherLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam_TimerServiceDispatcherLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINE: StatefulSessionEJBHome.<init> Remove signed bit from + -2410116332600164352
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam-jee5_EjbSynchronizationsLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINER: RMIClient.lookup Looking up 'jboss-seam_EjbSynchronizationsLocal'
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINER: EJBPackageDeployment.bindHomes RETURN [Ljava.lang.Object;@a5143a
          08/07/07 16:57:39 FINER: EJBPackageDeployment.bindHomes ENTRY com.evermind.server.ejb.EJBContainer@a6ad47
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          08/07/07 16:57:39 FINE: RMIClient$DefaultGetMatchingConnectionsStrategy.getMatchingConnections Requiring username: null domain: jboss-seam-jee5
          2008-07-07 16:57:39.865 ERROR J2EE EJB-03027 [jboss-seam-jee5] An error occured deploying EJB module: java.lang.InstantiationException: Unable to bind local home for TimerServiceDispatcher into JNDI location jb
          oss-seam_TimerServiceDispatcherLocal
          08/07/07 16:57:39 FINER: EJBContainer.postInit RETURN
          08/07/07 16:57:39 WARNING: Application.setConfig Application: jboss-seam-jee5 is in failed state as initialization failed.
          java.lang.InstantiationException: Error initializing ejb-modules: Unable to bind local home for TimerServiceDispatcher into JNDI location jboss-seam_TimerServiceDispatcherLocal
          08/07/07 16:57:39 FINE: Application.stateCleanUp removing user application MBeans
          08/07/07 16:57:39 FINE: Application.stateCleanUp destroying EJB container
          08/07/07 16:57:39 FINER: EJBPackageDeployment.processTimers() ENTRY
          08/07/07 16:57:39 FINER: EJBPackageDeployment.processTimers() RETURN
          08/07/07 16:57:39 FINER: EJBPackageDeployment.destroy() ENTRY
          08/07/07 16:57:39 FINER: EJBPackageDeployment.destroy() RETURN


          • 2. Re: Unable to bind local home for TimerServiceDispatcher into JNDI location
            Chris Simons Expert

            I realized I was missing TimeServiceDispatcher from web.xml, but I added it and I have the same problem:



              <ejb-local-ref>
                <ejb-ref-name>jboss-seam-jee5/TimerServiceDispatcher/local</ejb-ref-name>  
                <ejb-ref-type>Session</ejb-ref-type>
                <local>org.jboss.seam.async.TimerServiceDispatcher</local>
                <ejb-link>TimerServiceDispatcher</ejb-link>
              </ejb-local-ref>




            Does this look right?