6 Replies Latest reply on Aug 16, 2011 6:31 AM by Hushen Savani

    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException

    Hushen Savani Novice

      Hi,

       

      I have embedded HornetQ 2.2.5 with JBossAS 5.1.0 successfully. Now I am trying to deploy a sample MBD Example provided by HornetQ Distro as per instructions given in HornetQ Quick Start Guide. But I am facing following exceptions:

       

           [exec] 12:40:46,690 INFO  [TomcatDeployment] deploy, ctxPath=/admin-console

           [exec] 12:40:46,783 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/admin-console'

           [exec] 12:40:49,106 INFO  [TomcatDeployment] deploy, ctxPath=/

           [exec] 12:40:49,168 INFO  [TomcatDeployment] deploy, ctxPath=/jmx-console

           [exec] 12:40:49,293 INFO  [JBossASKernel] Created KernelDeployment for: mdb-tx-send-example.jar

           [exec] 12:40:49,293 INFO  [JBossASKernel] installing bean: jboss.j2ee:ear=mdb-tx-send-example.ear,jar=mdb-tx-send-example.jar,name=MDBMessageSendTxExample,service=EJB3

           [exec] 12:40:49,293 INFO  [JBossASKernel]   with dependencies:

           [exec] 12:40:49,293 INFO  [JBossASKernel]   and demands:

           [exec] 12:40:49,293 INFO  [JBossASKernel]  jboss.ejb:service=EJBTimerService

           [exec] 12:40:49,293 INFO  [JBossASKernel]   and supplies:

           [exec] 12:40:49,293 INFO  [JBossASKernel]  jndi:null

           [exec] 12:40:49,293 INFO  [JBossASKernel]  Class:javax.jms.MessageListener

           [exec] 12:40:49,293 INFO  [JBossASKernel] Added bean(jboss.j2ee:ear=mdb-tx-send-example.ear,jar=mdb-tx-send-example.jar,name=MDBMessageSendTxExample,service=EJB3) to KernelDep

      loyment of: mdb-tx-send-example.jar

           [exec] 12:40:49,698 INFO  [EJBContainer] STARTED EJB: org.hornetq.javaee.example.server.MDBMessageSendTxExample ejbName: MDBMessageSendTxExample

           [exec] 12:40:49,713 ERROR [AbstractKernelController] Error installing to Start: name=jboss.j2ee:ear=mdb-tx-send-example.ear,jar=mdb-tx-send-example.jar,name=MDBMessageSendTxEx

      ample,service=EJB3 state=Create

           [exec] org.jboss.deployers.spi.DeploymentException: Unable to create activation spec ra=jboss.jca:service=RARDeployment,name='hornetq-ra.rar' messaging-type=javax.jms.MessageL

      istener properties={destinationType=org.jboss.metadata.ejb.spec.ActivationConfigPropertyMetaData@96f19068{destinationType}, destination=org.jboss.metadata.ejb.spec.ActivationConfig

      PropertyMetaData@aac6440e{destination}}

           [exec]    at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)

           [exec]     at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:324)

           [exec]     at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.start(JBossMessageEndpointFactory.java:205)

           [exec]     at org.jboss.ejb3.mdb.MessagingContainer.startProxies(MessagingContainer.java:224)

           [exec]     at org.jboss.ejb3.mdb.MessagingContainer.lockedStart(MessagingContainer.java:176)

           [exec]     at org.jboss.ejb3.EJBContainer.start(EJBContainer.java:884)

           [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

           [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

           [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

           [exec]     at java.lang.reflect.Method.invoke(Method.java:597)

           [exec]     at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

           [exec]     at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

           [exec]     at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

           [exec]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)

           [exec]     at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)

           [exec]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)

           [exec]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)

           [exec]     at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)

           [exec]     at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)

           [exec]     at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)

           [exec]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

           [exec]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

           [exec]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

           [exec]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           [exec]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           [exec]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           [exec]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           [exec]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           [exec]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)

           [exec]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)

           [exec]     at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)

           [exec]     at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)

           [exec]     at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

           [exec]     at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

           [exec]     at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

           [exec]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

           [exec]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

           [exec]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

           [exec]     at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)

           [exec]     at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

           [exec]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           [exec]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           [exec]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           [exec]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           [exec]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           [exec]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

           [exec]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

           [exec]     at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

           [exec]     at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

           [exec]     at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

           [exec]     at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

           [exec]     at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

           [exec]     at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

           [exec]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

           [exec]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

           [exec]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

           [exec]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

           [exec]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

           [exec]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

           [exec]     at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

           [exec]     at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

           [exec]     at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

           [exec]     at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

           [exec]     at org.jboss.Main.boot(Main.java:221)

           [exec]     at org.jboss.Main$1.run(Main.java:556)

           [exec]     at java.lang.Thread.run(Thread.java:662)

           [exec] Caused by: javax.management.InstanceNotFoundException: jboss.jca:service=RARDeployment,name='hornetq-ra.rar' is not registered.

           [exec]     at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:526)

           [exec]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:662)

           [exec]     at org.jboss.ejb3.JmxClientKernelAbstraction.invoke(JmxClientKernelAbstraction.java:58)

           [exec]     at org.jboss.ejb3.mdb.inflow.JBossMessageEndpointFactory.createActivationSpec(JBossMessageEndpointFactory.java:320)

           [exec]     ... 64 more

           [exec] 12:40:50,150 INFO  [TomcatDeployment] deploy, ctxPath=/hornetq

           [exec] 12:40:50,212 WARNING [config] Unable to process deployment descriptor for context '/hornetq'

           [exec] 12:40:50,212 INFO  [config] Initializing Mojarra (1.2_12-b01-FCS) for context '/hornetq'

           [exec] 12:40:50,274 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

           [exec]

           [exec] DEPLOYMENTS IN ERROR:

           [exec]   Deployment "jboss.j2ee:ear=mdb-tx-send-example.ear,jar=mdb-tx-send-example.jar,name=MDBMessageSendTxExample,service=EJB3" is in error due to the following reason(s):

      javax.management.InstanceNotFoundException: jboss.jca:service=RARDeployment,name='hornetq-ra.rar' is not registered.

           [exec]

           [exec] 12:40:50,290 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080

           [exec] 12:40:50,290 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009

           [exec] 12:40:50,306 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)] Started in 47s:394ms

       

       

      Kindly help on the same.

       

      Thank you.