1 Reply Latest reply on Sep 18, 2007 11:03 PM by Rob Di Marco

    JMS - standalone-mdb tutorial example not working

    M Larsen Newbie

      Hi,

      I'm having trouble with getting JMS to work under embedded jboss. After some debugging I tried to run the example tutorials from the site, and unfortunately, the same error persists:


      rq@ant ~/Desktop/jboss/jboss-EJB-3.0_Embeddable_ALPHA_9/mdb-standalone $ ant run
      Buildfile: build.xml

      prepare:

      compile:

      ejbjar:

      run:
      [java] WARN 18-09 18:38:59,832 (BeanSchemaBinding.java:init:233) -You should use the 2.0 version of the Microcontainer xml. xmlns='urn:jboss:bean-deployer:2.0'
      [java] ERROR 18-09 18:39:00,820 (AbstractController.java:incrementState:440) -Error installing to Instantiated: name=jms-rar-DeploymentInfo state=Described
      [java] java.lang.NullPointerException
      [java] at org.jboss.deployment.DeploymentInfo.<init>(DeploymentInfo.java:201)
      [java] at org.jboss.ejb3.embedded.resource.Ejb3DeploymentInfo.<init>(Ejb3DeploymentInfo.java:53)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      [java] at org.jboss.reflect.plugins.introspection.ReflectionUtils.newInstance(ReflectionUtils.java:136)
      [java] at org.jboss.reflect.plugins.introspection.ReflectConstructorInfoImpl.newInstance(ReflectConstructorInfoImpl.java:103)
      [java] at org.jboss.joinpoint.plugins.BasicConstructorJoinPoint.dispatch(BasicConstructorJoinPoint.java:80)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:75)
      [java] at org.jboss.kernel.plugins.dependency.InstantiateAction.installAction(InstantiateAction.java:52)
      [java] at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.install(KernelControllerContextAction.java:100)
      [java] at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      [java] at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:226)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:709)
      [java] at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:429)
      [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:538)
      [java] at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:472)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:274)
      [java] at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:177)
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:291)
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:261)
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:117)
      [java] at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:95)
      [java] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:97)
      [java] at org.jboss.tutorial.mdbstandalone.Main.main(Main.java:51)
      [java] Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalStateException: Incompletely deployed:
      [java]
      [java] *** DEPLOYMENTS IN ERROR: Name -> Error
      [java] jms-rar-DeploymentInfo -> java.lang.NullPointerException
      [java]
      [java] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      [java] jboss.jca:name='jms-ra.rar',service=RARDeployment -> jms-rar-DeploymentInfo{Instantiated:**ERROR**}, jms-rar-WorkManager{Configured:Installed}
      [java]
      [java] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:103)
      [java] at org.jboss.tutorial.mdbstandalone.Main.main(Main.java:51)
      [java] Caused by: java.lang.IllegalStateException: Incompletely deployed:
      [java]
      [java] *** DEPLOYMENTS IN ERROR: Name -> Error
      [java] jms-rar-DeploymentInfo -> java.lang.NullPointerException
      [java]
      [java] *** DEPLOYMENTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
      [java] jboss.jca:name='jms-ra.rar',service=RARDeployment -> jms-rar-DeploymentInfo{Instantiated:**ERROR**}, jms-rar-WorkManager{Configured:Installed}
      [java]
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.internalValidate(AbstractKernelDeployer.java:241)
      [java] at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.validate(AbstractKernelDeployer.java:161)
      [java] at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.deployXmlResource(EJB3StandaloneBootstrap.java:99)
      [java] ... 1 more
      [java] Java Result: 1

      BUILD SUCCESSFUL
      Total time: 2 seconds
      rq@ant ~/Desktop/jboss/jboss-EJB-3.0_Embeddable_ALPHA_9/mdb-standalone $


      It seems that there are some problems with .rar deployments - note, that jms-ra.rar is in the classpath

      - Does anyone have any suggestions ?