Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-4567

Sportsclub example on EWP deploys messaging descriptor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • WFK 1.2.0
    • WFK 1.1.0
    • Spring, WFK
    • None
    • EWP
      WFK 1.1

    • Release Notes
    • Workaround Exists
    • Hide

      Avoid copying sportsclub-destinations-service.xml to the JBoss AS deploy directory.

      Show
      Avoid copying sportsclub-destinations-service.xml to the JBoss AS deploy directory.
    • Hide
      The Snowdrop Sportsclub example was intended to be compatible with both JBoss Enterprise Application Platform and JBoss Enterprise Web Platform. Since JBoss Messaging is not included in JBoss Enterprise Web Platform, the application server throws the following error:

      ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]
        (main) Error installing to Instantiated:
          name=jboss.messaging.destination:name=sportsclub,service=Queue
          state=Described mode=Manual requiredState=Configured
        java.lang.ClassNotFoundException: org.jboss.jms.server.destination.QueueService

      This issue can be corrected by removing the offending file from <filename>$JBOSS_HOME/server/default/deploy/messaging/sportsclub-destination-service.xml</filename> when running on JBoss Enterprise Web Platform.
      Show
      The Snowdrop Sportsclub example was intended to be compatible with both JBoss Enterprise Application Platform and JBoss Enterprise Web Platform. Since JBoss Messaging is not included in JBoss Enterprise Web Platform, the application server throws the following error: ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController]   (main) Error installing to Instantiated:     name=jboss.messaging.destination:name=sportsclub,service=Queue     state=Described mode=Manual requiredState=Configured   java.lang.ClassNotFoundException: org.jboss.jms.server.destination.QueueService This issue can be corrected by removing the offending file from <filename>$JBOSS_HOME/server/default/deploy/messaging/sportsclub-destination-service.xml</filename> when running on JBoss Enterprise Web Platform.
    • Documented as Known Issue

      Sportsclub example was modified to be able to run on EAP as well on EWP. However, Java Messaging is not included within EWP, so JBoss AS complains it is not able to deploy its descriptor [1].

      The error is not influencing the Sportsclub functionality, all test cases passed.

      My proposal is to split the setup profile in jbossconf/pom.xml into eap-setup and ewp-setup, the latter one will not copy file "sportsclub-destinations-service.xml" into ${deploy.dir}/messaging

      [1] JBoss AS output:

      2010-07-07 15:40:07,361 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Instantiated: name=jboss.messaging.destination:name=sportsclub,service=Queue state=Described mode=Manual requiredState=Configured
      java.lang.ClassNotFoundException: org.jboss.jms.server.destination.QueueService from BaseClassLoader@625e4591{VFSClassLoaderPolicy@1b29650b{name=vfsfile:/home/kpiwko/devel/wfk/jboss-ewp-5.0/jboss-as-web/server/default/deploy/messaging/sportsclub-destinations-service.xml domain=ClassLoaderDomain@7f629e71

      {name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@12276af2} roots=[MemoryContextHandler@984138523[path= context=vfsmemory://3j001-bqhkov-gbc7u4qn-1-gbc7ufmo-z real=vfsmemory://3j001-bqhkov-gbc7u4qn-1-gbc7ufmo-z]] delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1213)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.system.ServiceCreator.installExternalXMBean(ServiceCreator.java:278)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:137)
      at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
      at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.install(ServiceController.java:274)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:619)
      2010-07-07 15:40:07,370 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Real: name=vfsfile:/home/kpiwko/devel/wfk/jboss-ewp-5.0/jboss-as-web/server/default/deploy/messaging/sportsclub-destinations-service.xml state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying: jboss.messaging.destination:service=Queue,name=sportsclub
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:118)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:46)
      at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1440)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1158)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1179)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1099)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:782)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
      at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
      at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:403)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:775)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
      at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
      at org.jboss.Main.boot(Main.java:221)
      at org.jboss.Main$1.run(Main.java:556)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.ClassNotFoundException: org.jboss.jms.server.destination.QueueService from BaseClassLoader@625e4591{VFSClassLoaderPolicy@1b29650b{name=vfsfile:/home/kpiwko/devel/wfk/jboss-ewp-5.0/jboss-as-web/server/default/deploy/messaging/sportsclub-destinations-service.xml domain=ClassLoaderDomain@7f629e71{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.bootstrap.NoAnnotationURLClassLoader@12276af2}

      roots=[MemoryContextHandler@984138523[path= context=vfsmemory://3j001-bqhkov-gbc7u4qn-1-gbc7ufmo-z real=vfsmemory://3j001-bqhkov-gbc7u4qn-1-gbc7ufmo-z]] delegates=null exported=[] <IMPORT-ALL>NON_EMPTY}}
      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1213)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
      at org.jboss.system.ServiceCreator.installExternalXMBean(ServiceCreator.java:278)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:137)
      at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:45)
      at org.jboss.system.microcontainer.InstantiateAction.installAction(InstantiateAction.java:37)
      at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
      at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
      at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:297)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1633)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:935)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1083)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:985)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:823)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.system.ServiceController.doChange(ServiceController.java:688)
      at org.jboss.system.ServiceController.install(ServiceController.java:274)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:90)
      ... 34 more

              marius.bogoevici Marius Bogoevici (Inactive)
              kpiwko Karel Piwko
              Rebecca Newton Rebecca Newton (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: