10 Replies Latest reply on Mar 6, 2009 5:43 AM by venkata sathuluri

    Problem in MDB (Topic) when moving from Jboss 4.2 to jboss 5

    venkata sathuluri Newbie

      Hi,
      I am using topic mdb for publishing in our application, It was working fine with Jboss 4.2 but when am moved to Jboss 5.0 it is is giving problem.
      I understood JbossMQ has been removed in 5.0 but the support to downward version must be i feel.

      Please help me in understanding the necessary changes to be made..

      i am using like this instead of configuration files..

      @MessageDriven(activationConfig = {@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
      @ActivationConfigProperty(propertyName = "destination", propertyValue = "topic/events")})
      @Depends({"com.barco.event.emitters:service=BarcoBroadcastService", "jboss:service=Naming"})

      here is my exception in consloe

      13:08:21,296 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      13:08:21,296 INFO [JBossASKernel] jndi:EventLoaderImpl/local-com.barco.cms.openapi.EventLoader
      13:08:21,296 INFO [JBossASKernel] jndi:LicenseManagerServiceImpl/remote-com.barco.cms.licensing.LicenseManagerService
      13:08:21,311 INFO [JBossASKernel] and supplies:
      13:08:21,311 INFO [JBossASKernel] jndi:PerspectiveMgtAPIImpl/local-com.barco.cms.openapi.PerspectiveMgtAPILocal
      13:08:21,311 INFO [JBossASKernel] Class:com.barco.cms.openapi.PerspectiveMgtAPI
      13:08:21,311 INFO [JBossASKernel] Class:com.barco.cms.openapi.PerspectiveMgtAPILocal
      13:08:21,311 INFO [JBossASKernel] jndi:PerspectiveMgtAPIImpl/remote
      13:08:21,327 INFO [JBossASKernel] jndi:PerspectiveMgtAPIImpl/remote-com.barco.cms.openapi.PerspectiveMgtAPI
      13:08:21,327 INFO [JBossASKernel] jndi:PerspectiveMgtAPIImpl/local
      13:08:21,327 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=PerspectiveManagement.ejb3,name=PerspectiveMgtAPIImpl,service=EJB3) to KernelDeployment of: PerspectiveManagement.ejb3
      13:08:21,327 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=PerspectiveManagement.ejb3,name=BarcoBroadcastMDB,service=EJB3
      13:08:21,327 INFO [JBossASKernel] with dependencies:
      13:08:21,327 INFO [JBossASKernel] and demands:
      13:08:21,342 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
      13:08:21,342 INFO [JBossASKernel] and supplies:
      13:08:21,342 INFO [JBossASKernel] jndi:null
      13:08:21,342 INFO [JBossASKernel] Class:javax.jms.MessageListener
      13:08:21,342 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=PerspectiveManagement.ejb3,name=BarcoBroadcastMDB,service=EJB3) to KernelDeployment of: PerspectiveManagement.ejb3
      13:08:21,514 INFO [EJBContainer] STARTED EJB: com.barco.event.emitters.BarcoBroadcastMDB ejbName: BarcoBroadcastMDB
      13:08:21,592 INFO [ClientENCInjectionContainer] STARTED CLIENT ENC CONTAINER: JavaBLM
      13:08:21,905 INFO [DefaultEndpointRegistry] register: jboss.ws:context=cms,endpoint=PerspectiveMgtAPIImpl
      13:08:22,077 INFO [TomcatDeployment] deploy, ctxPath=/cms, vfsUrl=PerspectiveManagement.ejb3
      13:08:22,139 WARN [config] Unable to process deployment descriptor for context '/cms'
      13:08:22,374 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@b25884(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@19f369d destination=topic/events destinationType=javax.jms.Topic tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      javax.naming.NameNotFoundException: events not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.util.naming.Util.lookup(Util.java:222)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)
      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      13:08:26,249 INFO [WSDLFilePublisher] WSDL published to: file:/C:/Lang/JBoss/jboss-5.0.0.GA/server/default/data/wsdl/PerspectiveManagement.ejb3/PerspectiveMgtAPI2915872475284614861.wsdl
      13:08:26,390 ERROR [AbstractKernelController] Error installing to Configured: name=com.barco.event:name=events,service=Topic state=Instantiated mode=Manual requiredState=Configured
      java.lang.RuntimeException: No Attribute found with name: InMemory for com.barco.event:service=Topic,name=events, attributes: [Instance, AllMessageCount, MessageCounterHistoryDayLimit, DownCacheSize, DLQ, ServerPeer, PageSize, AllSubscriptionsCount, RedeliveryDelay, MaxSize, Clustered, MessageCounters, SecurityConfig, DurableMessageCount, FullSize, DurableSubscriptionsCount, Name, ExpiryQueue, NonDurableSubscriptionsCount, MaxDeliveryAttempts, CreatedProgrammatically, JNDIName, NonDurableMessageCount]
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
      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:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      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:95)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
      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:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:619)
      13:08:26,515 INFO [TomcatDeployment] undeploy, ctxPath=/cms, vfsUrl=PerspectiveManagement.ejb3
      13:08:26,593 INFO [DefaultEndpointRegistry] remove: jboss.ws:context=cms,endpoint=PerspectiveMgtAPIImpl
      13:08:26,593 INFO [ClientENCInjectionContainer] STOPPED CLIENT ENC CONTAINER: JavaBLM
      13:08:26,625 INFO [EJBContainer] STOPPED EJB: com.barco.event.emitters.BarcoBroadcastMDB ejbName: BarcoBroadcastMDB
      13:08:26,687 ERROR [AbstractKernelController] Error installing to Real: name=vfsfile:/C:/Lang/JBoss/jboss-5.0.0.GA/server/default/deploy/PerspectiveManagement.ejb3/ state=PreReal mode=Manual requiredState=Real
      org.jboss.deployers.spi.DeploymentException: Error deploying: com.barco.event:service=Topic,name=events
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:123)
      at org.jboss.system.deployers.ServiceDeployer.deploy(ServiceDeployer.java:45)
      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:1439)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
      at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
      at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
      at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
      at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
      at org.jboss.Main.boot(Main.java:209)
      at org.jboss.Main$1.run(Main.java:547)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: No Attribute found with name: InMemory for com.barco.event:service=Topic,name=events, attributes: [Instance, AllMessageCount, MessageCounterHistoryDayLimit, DownCacheSize, DLQ, ServerPeer, PageSize, AllSubscriptionsCount, RedeliveryDelay, MaxSize, Clustered, MessageCounters, SecurityConfig, DurableMessageCount, FullSize, DurableSubscriptionsCount, Name, ExpiryQueue, NonDurableSubscriptionsCount, MaxDeliveryAttempts, CreatedProgrammatically, JNDIName, NonDurableMessageCount]
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:142)
      at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:114)
      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:58)
      at org.jboss.system.microcontainer.ConfigureAction.installAction(ConfigureAction.java:42)
      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:286)
      at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
      at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
      at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
      at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
      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:95)
      ... 24 more
      13:08:26,828 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
      13:08:26,890 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
      13:08:26,937 INFO [Log4jZeroconf] Starting Log4jzeroconf serivce...
      13:08:26,937 INFO [Log4jZeroconf] Log4jzeroconf service started.
      13:08:26,953 ERROR [STDERR] Exception in thread "Timer-3"
      13:08:26,953 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/jmdns/JmDNS
      13:08:26,953 ERROR [STDERR] at com.barco.cms.log4j.zeroconf.Log4jZeroconf.getJmDNS(Unknown Source)
      13:08:26,953 ERROR [STDERR] at com.barco.cms.log4j.zeroconf.Log4jZeroconf.checkAppenders(Unknown Source)
      13:08:26,968 ERROR [STDERR] at com.barco.cms.log4j.zeroconf.Log4jZeroconf$Updater.run(Unknown Source)
      13:08:26,968 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)
      13:08:26,968 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
      13:08:26,968 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: javax.jmdns.JmDNS from BaseClassLoader@aee53f{VFSClassLoaderPolicy@4cbcaf{name=vfszip:/C:/Lang/JBoss/jboss-5.0.0.GA/server/default/deploy/Log4jZeroconf.jar domain=ClassLoaderDomain@1d686c1{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader@19dfbff} roots=[MemoryContextHandler@33014755[path= context=vfsmemory://464e213r-rvtw16-frlp2c80-1-frlp2ma1-21 real=vfsmemory://464e213r-rvtw16-frlp2c80-1-frlp2ma1-21], DelegatingHandler@22908657[path=Log4jZeroconf.jar context=file:/C:/Lang/JBoss/jboss-5.0.0.GA/server/default/deploy/ real=file:/C:/Lang/JBoss/jboss-5.0.0.GA/server/default/deploy/Log4jZeroconf.jar]] delegates=null exported=[com.barco.cms.log4j.zeroconf, , lib.jmdns.jar.META-INF, lib.jmdns.jar.com.strangeberry.jmdns.tools, lib.jmdns.jar.javax.jmdns, META-INF] <IMPORT-ALL>NON_EMPTY}}
      13:08:26,968 ERROR [STDERR] at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:385)
      13:08:26,984 ERROR [STDERR] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      13:08:26,984 ERROR [STDERR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      13:08:26,984 ERROR [STDERR] ... 5 more
      13:08:27,000 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

      *** CONTEXTS IN ERROR: Name -> Error

      vfsfile:/C:/Lang/JBoss/jboss-5.0.0.GA/server/default/deploy/PerspectiveManagement.ejb3/ -> java.lang.RuntimeException: No Attribute found with name: InMemory for com.barco.event:service=Topic,name=events, attributes: [Instance, AllMessageCount, MessageCounterHistoryDayLimit, DownCacheSize, DLQ, ServerPeer, PageSize, AllSubscriptionsCount, RedeliveryDelay, MaxSize, Clustered, MessageCounters, SecurityConfig, DurableMessageCount, FullSize, DurableSubscriptionsCount, Name, ExpiryQueue, NonDurableSubscriptionsCount, MaxDeliveryAttempts, CreatedProgrammatically, JNDIName, NonDurableMessageCount]


      13:08:27,015 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-NOICLT13298%2F150.158.73.135-8080
      13:08:27,046 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-NOICLT13298%2F150.158.73.135-8009
      13:08:27,046 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 33s:583ms
      13:08:32,579 INFO [JmsActivation] Attempting to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@b25884(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@19f369d destination=topic/events destinationType=javax.jms.Topic tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      13:08:32,594 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@b25884(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@19f369d destination=topic/events destinationType=javax.jms.Topic tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
      javax.naming.NameNotFoundException: events not bound
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
      at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
      at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
      at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
      at javax.naming.InitialContext.lookup(InitialContext.java:392)
      at org.jboss.util.naming.Util.lookup(Util.java:222)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:292)
      at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:733)
      at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
      at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)


      Thanks in Advance,
      any help is appreciated,
      Subramanyam