7 Replies Latest reply on Oct 22, 2007 11:48 AM by DAVID WONG

    InstanceNotFoundException: jms-ra.rar is not registered

    Henry Canterburry Newbie

      Hey,

      I deployed an MDB and started getting these exeptions at startup:

      [java] Starting server...
      [java] WARN 06-07 01:01:04,984 (UnifiedLoaderRepository3.java:addClassLoader:675) -Tried to add non-URLClassLoader. Ignored
      [java] WARN 06-07 01:01:06,135 (TxControl.java::266) -[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. Us
      ing -3f57fe9b:1050:468ddaa2:0
      [java] ERROR 06-07 01:01:09,831 (AbstractController.java:incrementState:456) -Error installing to Start: name=jboss.j2ee:jar=brms-onto2-client-e
      jb.jar,name=OntoServiceJMSEndpoint,service=EJB3 state=Create
      [java] org.jboss.deployment.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='jms-ra.rar' messaging-
      type=javax.jms.MessageListener properties={acknowledgeMode=ActivationConfigProperty(acknowledgeMode=Auto-acknowledge), destinationType=ActivationConfi
      gProperty(destinationType=javax.jms.Queue)}
      [java] at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
      [java] at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:290)
      [java] at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:189)
      [java] at org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:188)
      [java] at org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:152)
      [java] at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
      [java] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
      [java] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
      [java] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
      [java] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      [java] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
      [java] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
      [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
      [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
      [java] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:84)
      [java] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:78)
      [java] at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:141)
      [java] at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:290)
      [java] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:335)
      [java] at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:54)
      [java] at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
      [java] at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
      [java] at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
      [java] at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
      [java] at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
      [java] at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:109)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
      [java] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
      [java] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
      [java] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
      [java] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      [java] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
      [java] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
      [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
      [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
      [java] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
      [java] at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
      [java] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
      [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
      [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
      [java] at forisent.brms.ejb.server.Server.startServer(Server.java:53)
      [java] at forisent.brms.ejb.server.Server.main(Server.java:26)
      [java] Caused by: javax.management.InstanceNotFoundException: jboss.jca:service=RARDeployment,name='jms-ra.rar' is not registered.
      [java] at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:527)
      [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:662)
      [java] at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
      [java] at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:285)
      [java] ... 64 more
      [java] WARN 06-07 01:01:09,991 (JBossTimerServiceFactory.java:restoreTimerService:112) -TIMER SERVICE IS NOT INSTALLED
      [java] WARN 06-07 01:01:11,102 (JDBCPersistenceManager.java:start:143) -

      [java] JBoss Messaging Warning: DataSource connection transaction isolation should be READ_COMMITTED, but it is currently NONE.
      [java] Using an isolation level less strict than READ_COMMITTED may lead to data consistency problems.
      [java] Using an isolation level more strict than READ_COMMITTED may lead to deadlock.

      [java] Exception in thread "main" org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS F
      OR DETAILS):

      [java] *** CONTEXTS IN ERROR: Name -> Error

      [java] jboss.j2ee:jar=brms-onto2-client-ejb.jar,name=OntoServiceJMSEndpoint,service=EJB3 -> javax.management.InstanceNotFoundException: jboss.jca
      :service=RARDeployment,name='jms-ra.rar' is not registered.


      [java] at org.jboss.embedded.Bootstrap.checkIncomplete(Bootstrap.java:144)
      [java] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:169)
      [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
      [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)


      I have not changed any of the default JMS settings. Here is my MDB descriptor:


      <message-driven>
      <ejb-name>OntoServiceJMSEndpoint</ejb-name>
      <ejb-class>
      forisent.onto2.ejb.OntoServiceJMSEndpoint
      </ejb-class>
      <messaging-type>javax.jms.MessageListener</messaging-type>
      <transaction-type>Container</transaction-type>
      <message-destination-type>
      javax.jms.Queue
      </message-destination-type>
      <activation-config>
      <activation-config-property>
      <activation-config-property-name>destinationType
      </activation-config-property-name>
      <activation-config-property-value>javax.jms.Queue
      </activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>destination
      </activation-config-property-name>
      <activation-config-property-value>queue/BRMSClientRequestQueue
      </activation-config-property-value>
      </activation-config-property>
      <activation-config-property>
      <activation-config-property-name>acknowledgeMode
      </activation-config-property-name>
      <activation-config-property-value>Auto-acknowledge
      </activation-config-property-value>
      </activation-config-property>
      </activation-config>
      <resource-ref>
      <res-ref-name>jms/ConnectionFactory</res-ref-name>
      <res-type>javax.jms.ConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      <mapped-name>ConnectionFactory</mapped-name>
      </resource-ref>
      </message-driven>

        • 1. Re: InstanceNotFoundException: jms-ra.rar is not registered
          Henry Canterburry Newbie

          I enabled INFO logging on the container and get these messages which seem to indicate that the JMS portion is started after all:


          <message-driven>
          <ejb-name>OntoServiceJMSEndpoint</ejb-name>
          <ejb-class>
          forisent.onto2.ejb.OntoServiceJMSEndpoint
          </ejb-class>
          <messaging-type>javax.jms.MessageListener</messaging-type>
          <transaction-type>Container</transaction-type>
          <message-destination-type>
          javax.jms.Queue
          </message-destination-type>
          <activation-config>
          <activation-config-property>
          <activation-config-property-name>destinationType
          </activation-config-property-name>
          <activation-config-property-value>javax.jms.Queue
          </activation-config-property-value>
          </activation-config-property>
          <activation-config-property>
          <activation-config-property-name>destination
          </activation-config-property-name>
          <activation-config-property-value>jboss.messaging.destination:service=Queue,name=BRMSClientRequestQueue
          </activation-config-property-value>
          </activation-config-property>
          <activation-config-property>
          <activation-config-property-name>acknowledgeMode
          </activation-config-property-name>
          <activation-config-property-value>Auto-acknowledge
          </activation-config-property-value>
          </activation-config-property>
          </activation-config>
          <resource-ref>
          <res-ref-name>jms/ConnectionFactory</res-ref-name>
          <res-type>javax.jms.ConnectionFactory</res-type>
          <res-auth>Container</res-auth>
          <mapped-name>ConnectionFactory</mapped-name>
          </resource-ref>
          </message-driven>


          So, it seems the built in queues and everything gets loaded but when I deploy my code I still get the above errors.

          • 2. Re: InstanceNotFoundException: jms-ra.rar is not registered
            Henry Canterburry Newbie

            Ooops...sorry, wrong piece of code:


            [java] INFO 08-07 20:10:41,544 (ServerPeer.java::187) -ServerPeer[0] creating server peer with ID 0
            [java] INFO 08-07 20:10:42,606 (ServerPeer.java:startService:278) -JBoss Messaging 1.2.0.sp1 server [0] started
            [java] INFO 08-07 20:10:42,726 (QueueService.java:startService:149) -Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCac
            heSize=2000
            [java] INFO 08-07 20:10:42,726 (TopicService.java:startService:122) -Topic[/topic/TopicWithOwnRedeliveryDelay] started, fullSize=200000, pageSi
            ze=2000, downCacheSize=2000
            [java] INFO 08-07 20:10:42,736 (QueueService.java:startService:149) -Queue[/queue/QueueWithOwnDLQAndExpiryQueue] started, fullSize=200000, page
            Size=2000, downCacheSize=2000
            [java] INFO 08-07 20:10:42,836 (ConnectionFactory.java:startService:148) -Connector bisocket://10.175.105.84:4457 has leasing enabled, lease pe
            riod 10000 milliseconds
            [java] INFO 08-07 20:10:42,836 (ConnectionFactory.java:startService:149) -[/ConnectionFactory, /XAConnectionFactory, java:/ConnectionFactory, j
            ava:/XAConnectionFactory] started
            [java] INFO 08-07 20:10:42,846 (QueueService.java:startService:149) -Queue[/queue/BRMSClientRequestQueue] started, fullSize=200000, pageSize=20
            00, downCacheSize=2000
            [java] INFO 08-07 20:10:42,856 (QueueService.java:startService:149) -Queue[/queue/PrivateDLQ] started, fullSize=200000, pageSize=2000, downCach
            eSize=2000
            [java] INFO 08-07 20:10:42,866 (TopicService.java:startService:122) -Topic[/topic/TopicWithOwnDLQAndExpiryQueue] started, fullSize=200000, page
            Size=2000, downCacheSize=2000
            [java] INFO 08-07 20:10:42,876 (QueueService.java:startService:149) -Queue[/queue/QueueWithOwnRedeliveryDelay] started, fullSize=200000, pageSi
            ze=2000, downCacheSize=2000
            [java] INFO 08-07 20:10:42,876 (QueueService.java:startService:149) -Queue[/queue/PrivateExpiryQueue] started, fullSize=200000, pageSize=2000,
            downCacheSize=2000
            [java] INFO 08-07 20:10:42,886 (QueueService.java:startService:149) -Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2
            000
            [java] INFO 08-07 20:10:42,896 (QueueService.java:startService:149) -Queue[/queue/BRMSClientReplyQueue] started, fullSize=200000, pageSize=2000
            , downCacheSize=2000

            • 3. Re: InstanceNotFoundException: jms-ra.rar is not registered
              Henry Canterburry Newbie

              OK, so I possibly have a theory to offer but since I don't build app servers I'll probably be way off.

              I noticed in the INFO log output that my MDB is being deployed before the JMS server is started...? So, obviously the MBean instance of the JMS server wouldn't be found if my MDB is attempted to be bound before the JMS MBean is created. Here is the entire startup output again with INFO loggin turned on this time:


              [java] Starting server...
              [java] WARN 08-07 20:10:28,055 (UnifiedLoaderRepository3.java:addClassLoader:675) -Tried to add non-URLClassLoader. Ignored
              [java] INFO 08-07 20:10:31,019 (TransactionManagerService.java:startService:126) -JBossTS Transaction Service (JTA version) - JBoss Inc.
              [java] INFO 08-07 20:10:31,019 (TransactionManagerService.java:startService:128) -Setting up property manager MBean and JMX layer
              [java] WARN 08-07 20:10:31,410 (TxControl.java::266) -[com.arjuna.ats.arjuna.coordinator.TxControl_1] - Name of XA node not defined. U
              ing aaf6954:665:46918b07:0
              [java] INFO 08-07 20:10:31,510 (TransactionStatusManager.java:addService:110) -[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_1] - S
              arting service com.arjuna.ats.arjuna.recovery.ActionStatusService on port 1637
              [java] INFO 08-07 20:10:31,540 (?:?:?) -TransactionStatusManagerItem - host: 10.175.105.84 port: 1637
              [java] INFO 08-07 20:10:31,570 (TransactionStatusManager.java:start:161) -[com.arjuna.ats.arjuna.recovery.TransactionStatusManager_3] - Transa
              tionStatusManager started on port 1637 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
              [java] INFO 08-07 20:10:31,620 (?:?:?) -Registering mbean for module 'arjuna'
              [java] INFO 08-07 20:10:31,650 (?:?:?) -Initialising JMX agent com.arjuna.ats.internal.jbossatx.agent.LocalJBossAgentImpl
              [java] INFO 08-07 20:10:31,710 (TransactionManagerService.java:startService:163) -Starting recovery manager
              [java] INFO 08-07 20:10:31,720 (?:?:?) -
              [java] --- Start RecoveryActivators
              [java] INFO 08-07 20:10:31,760 (RecoveryManagerImple.java::142) -[com.arjuna.ats.internal.arjuna.recovery.ready] RecoveryManagerImple is
              ready on port 1,638
              [java] INFO 08-07 20:10:31,760 (TransactionManagerService.java:startService:168) -Recovery manager started
              [java] INFO 08-07 20:10:31,770 (TransactionManagerService.java:startService:191) -Binding TransactionManager JNDI Reference
              [java] INFO 08-07 20:10:37,649 (MCKernelAbstraction.java:install:119) -installing bean: jboss.j2ee:jar=brms-onto2-client-ejb.jar,name=OntoServ
              ceJMSEndpoint,service=EJB3 with dependencies:
              [java] INFO 08-07 20:10:37,949 (EJBContainer.java:start:580) -STARTED EJB: forisent.onto2.ejb.OntoServiceJMSEndpoint ejbName: OntoServiceJMSEn
              point
              [java] ERROR 08-07 20:10:37,989 (AbstractController.java:incrementState:456) -Error installing to Start: name=jboss.j2ee:jar=brms-onto2-client-
              jb.jar,name=OntoServiceJMSEndpoint,service=EJB3 state=Create
              [java] org.jboss.deployment.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='jms-ra.rar' messaging
              type=javax.jms.MessageListener properties={}
              [java] at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:52)
              [java] at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:290)
              [java] at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:189)
              [java] at org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:188)
              [java] at org.jboss.ejb3.mdb.MessagingContainer.start(MessagingContainer.java:152)
              [java] at org.jboss.ejb3.mdb.MDB.start(MDB.java:126)
              [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              [java] at java.lang.reflect.Method.invoke(Method.java:585)
              [java] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
              [java] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
              [java] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
              [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
              [java] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
              [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
              [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
              [java] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              [java] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
              [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
              [java] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
              [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
              [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
              [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
              [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
              [java] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:84)
              [java] at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:78)
              [java] at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:141)
              [java] at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:290)
              [java] at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:335)
              [java] at org.jboss.ejb3.deployers.EJBStage2Deployer.deploy(EJBStage2Deployer.java:54)
              [java] at org.jboss.deployers.plugins.deployer.AbstractSimpleDeployer.commitDeploy(AbstractSimpleDeployer.java:52)
              [java] at org.jboss.deployers.plugins.deployer.DeployerWrapper.commitDeploy(DeployerWrapper.java:170)
              [java] at org.jboss.deployers.plugins.deployment.MainDeployerImpl.commitDeploy(MainDeployerImpl.java:592)
              [java] at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:476)
              [java] at org.jboss.deployers.plugins.deployment.MainDeployerImpl.process(MainDeployerImpl.java:406)
              [java] at org.jboss.embedded.DeploymentScanner.start(DeploymentScanner.java:109)
              [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              [java] at java.lang.reflect.Method.invoke(Method.java:585)
              [java] at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:55)
              [java] at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:108)
              [java] at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
              [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:103)
              [java] at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:145)
              [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:197)
              [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:136)
              [java] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
              [java] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:233)
              [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:724)
              [java] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:445)
              [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:555)
              [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:489)
              [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:289)
              [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:192)
              [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:302)
              [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:272)
              [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:119)
              [java] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
              [java] at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:150)
              [java] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:162)
              [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
              [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
              [java] at forisent.brms.ejb.server.Server.startServer(Server.java:53)
              [java] at forisent.brms.ejb.server.Server.main(Server.java:26)
              [java] Caused by: javax.management.InstanceNotFoundException: jboss.jca:service=RARDeployment,name='jms-ra.rar' is not registered.
              [java] at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:527)
              [java] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:662)
              [java] at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:44)
              [java] at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:285)
              [java] ... 64 more
              [java] INFO 08-07 20:10:38,009 (MCKernelAbstraction.java:install:119) -installing bean: jboss.j2ee:jar=brms-onto2-client-ejb.jar,name=OntoMana
              erFactory,service=EJB3 with dependencies:
              [java] INFO 08-07 20:10:38,280 (EJBContainer.java:start:580) -STARTED EJB: forisent.onto2.model.OntoManagerFactory ejbName: OntoManagerFactory
              [java] WARN 08-07 20:10:38,410 (JBossTimerServiceFactory.java:restoreTimerService:112) -TIMER SERVICE IS NOT INSTALLED
              [java] INFO 08-07 20:10:39,531 (RARDeployment.java:startService:146) -Required license terms exist, view vfsfile:/C:/DEV/server/bootstrap/depl
              y/jboss-local-jdbc.rar/META-INF/ra.xml
              [java] INFO 08-07 20:10:39,722 (ConnectionFactoryBindingService.java:bindConnectionFactory:148) -Bound ConnectionManager 'jboss.jca:service=Da
              aSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
              [java] INFO 08-07 20:10:39,732 (RARDeployment.java:startService:146) -Required license terms exist, view vfsfile:/C:/DEV/server/bootstrap/depl
              y/jboss-xa-jdbc.rar/META-INF/ra.xml
              [java] INFO 08-07 20:10:39,742 (RARDeployment.java:startService:146) -Required license terms exist, view vfsfile:/C:/DEV/server/bootstrap/depl
              y/jms-ra.rar/META-INF/ra.xml
              [java] WARN 08-07 20:10:41,124 (JDBCPersistenceManager.java:start:143) -

              [java] JBoss Messaging Warning: DataSource connection transaction isolation should be READ_COMMITTED, but it is currently NONE.
              [java] Using an isolation level less strict than READ_COMMITTED may lead to data consistency problems.
              [java] Using an isolation level more strict than READ_COMMITTED may lead to deadlock.

              [java] INFO 08-07 20:10:41,544 (ServerPeer.java::187) -ServerPeer[0] creating server peer with ID 0
              [java] INFO 08-07 20:10:42,606 (ServerPeer.java:startService:278) -JBoss Messaging 1.2.0.sp1 server [0] started
              [java] INFO 08-07 20:10:42,726 (QueueService.java:startService:149) -Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCa
              heSize=2000
              [java] INFO 08-07 20:10:42,726 (TopicService.java:startService:122) -Topic[/topic/TopicWithOwnRedeliveryDelay] started, fullSize=200000, pageS
              ze=2000, downCacheSize=2000
              [java] INFO 08-07 20:10:42,736 (QueueService.java:startService:149) -Queue[/queue/QueueWithOwnDLQAndExpiryQueue] started, fullSize=200000, pag
              Size=2000, downCacheSize=2000
              [java] INFO 08-07 20:10:42,836 (ConnectionFactory.java:startService:148) -Connector bisocket://10.175.105.84:4457 has leasing enabled, lease p
              riod 10000 milliseconds
              [java] INFO 08-07 20:10:42,836 (ConnectionFactory.java:startService:149) -[/ConnectionFactory, /XAConnectionFactory, java:/ConnectionFactory,
              ava:/XAConnectionFactory] started
              [java] INFO 08-07 20:10:42,846 (QueueService.java:startService:149) -Queue[/queue/BRMSClientRequestQueue] started, fullSize=200000, pageSize=2
              00, downCacheSize=2000
              [java] INFO 08-07 20:10:42,856 (QueueService.java:startService:149) -Queue[/queue/PrivateDLQ] started, fullSize=200000, pageSize=2000, downCac
              eSize=2000
              [java] INFO 08-07 20:10:42,866 (TopicService.java:startService:122) -Topic[/topic/TopicWithOwnDLQAndExpiryQueue] started, fullSize=200000, pag
              Size=2000, downCacheSize=2000
              [java] INFO 08-07 20:10:42,876 (QueueService.java:startService:149) -Queue[/queue/QueueWithOwnRedeliveryDelay] started, fullSize=200000, pageS
              ze=2000, downCacheSize=2000
              [java] INFO 08-07 20:10:42,876 (QueueService.java:startService:149) -Queue[/queue/PrivateExpiryQueue] started, fullSize=200000, pageSize=2000,
              downCacheSize=2000
              [java] INFO 08-07 20:10:42,886 (QueueService.java:startService:149) -Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=
              000
              [java] INFO 08-07 20:10:42,896 (QueueService.java:startService:149) -Queue[/queue/BRMSClientReplyQueue] started, fullSize=200000, pageSize=200
              , downCacheSize=2000
              [java] INFO 08-07 20:10:42,926 (ConnectionFactoryBindingService.java:bindConnectionFactory:148) -Bound ConnectionManager 'jboss.jca:service=Da
              aSourceBinding,name=JmsXA' to JNDI name 'java:JmsXA'
              [java] Exception in thread "main" org.jboss.deployers.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS
              OR DETAILS):

              [java] *** CONTEXTS IN ERROR: Name -> Error

              [java] jboss.j2ee:jar=brms-onto2-client-ejb.jar,name=OntoServiceJMSEndpoint,service=EJB3 -> javax.management.InstanceNotFoundException: jboss.jc
              :service=RARDeployment,name='jms-ra.rar' is not registered.


              [java] at org.jboss.embedded.Bootstrap.checkIncomplete(Bootstrap.java:144)
              [java] at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:169)
              [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:201)
              [java] at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:214)
              [java] at forisent.brms.ejb.server.Server.startServer(Server.java:53)
              [java] at forisent.brms.ejb.server.Server.main(Server.java:26)

              • 4. Re: InstanceNotFoundException: jms-ra.rar is not registered
                Henry Canterburry Newbie

                OK, so I believe my hunch was correct.

                I have now been able to deploy my MDB successfully following these points:

                1. Place your xxx-destinations-server.xml queue definitions in the deploy folder.
                2. Do NOT place your ejb jar with your MDB in the deploy folder to PREVENT auto deployment at server startup.
                3. Place your ejb jar somewhere other than /deploy but do not forget to include the location in your classpath definition
                4. When bootstrapping the embedded container, use the deployResourceBase("jar name") method to deploy your jar AFTER bootstrapping the container.

                Following the above order will ensure that the JMS server and destinations are deployed first, and then the MDB will be able to successfully bind to your topic or queue when it is deployed after the container.

                • 5. Re: InstanceNotFoundException: jms-ra.rar is not registered
                  Bill Burke Master

                  Alternatively, you can create a dependency in jboss.xml on the JMS queue:

                  <?xml version="1.0"?>
                  <jboss
                   xmlns="http://java.sun.com/xml/ns/javaee"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                   http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
                   version="3.0">
                   <enterprise-beans>
                   <session>
                   <ejb-name>HasXmlMBeanDependencyBean</ejb-name>
                   <depends>THE MBEAN NAME OF THE QUEUE/TOPIC</depends>
                   </session>
                   </enterprise-beans>
                  </jboss>
                  





                  • 6. Re: InstanceNotFoundException: jms-ra.rar is not registered
                    Henry Canterburry Newbie

                    So....I was just a big moron and worked like nuts to hack the container to do ordering...is what you are telling me :-)

                    • 7. Re: InstanceNotFoundException: jms-ra.rar is not registered
                      DAVID WONG Newbie


                      Bill,

                      In your reply, you mentioned jboss.xml. Where should I put the jboss.xml in the Embedded Container installation?

                      Thanks,
                      -David