1 2 Previous Next 18 Replies Latest reply: Nov 16, 2010 9:51 AM by Emre He RSS

    how to migrate jbossmq queue/topic configuration to jboss 5.1

    Emre He Newbie
      As you know, jboss5.1 has already use messaging, not jbossmq, but we are facing a migration from jboss4.0.3 to jboss5.1, and there are many code dependency with jbossmq, could i setup jbossmq on jboss5.1 only with configuration change?
      actually there are no jbossmq.jar in jboss5.1 release, i copied it from jboss4.0.3.
      i used old jbossmq queue configuration, for example:
            <mbean code="org.jboss.mq.sm.jdbc.JDBCStateManager"
                        name="jboss.mq:service=StateManager">
              <depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=myDS</depends>
              <attribute name="SqlProperties">
                CREATE_TABLES_ON_STARTUP = TRUE
      but i meet the ERROR:
          2010-11-09 10:33:42,894 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.mq:service=StateManager state=Create mode=Manual requiredState=Installed
          java.lang.NoClassDefFoundError: org/jboss/tm/TransactionManagerService
               at org.jboss.mq.sm.jdbc.JDBCStateManager.startService(JDBCStateManager.java:392)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)
      and i copied jboss-transaction.jar from jboss4.0.3 to jboss5.1 lib path, but here we come to new ERROR:
          2010-11-09 13:06:08,369 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Instantiated: name=DefaultUserTransactionprovider state=Described
          java.lang.NoSuchMethodError: org.jboss.tm.TransactionManagerLocator.locateTransactionManager(Z)Ljavax/transaction/TransactionManager;
               at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.<init>(ServerVMClientUserTransaction.java:93)
               at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.<clinit>(ServerVMClientUserTransaction.java:60)
      looks like it is another issue because of the lib issues between jboss4.0.3 and jboss5.1.
      anyway, is it the correct way i use jboss4.0.3 lib for jboss5.1 to setup jbossmq, how could i migrate the jbossmq from jboss4.0.3 to jboss5.1?

      As you know, jboss5.1 has already use messaging, not jbossmq, but we are facing a migration from jboss4.0.3 to jboss5.1, and there are many code dependency with jbossmq, could i setup jbossmq on jboss5.1 only with configuration change?

      actually there are no jbossmq.jar in jboss5.1 release, i copied it from jboss4.0.3.

       

      i used old jbossmq queue configuration, for example:

       

            <mbean code="org.jboss.mq.sm.jdbc.JDBCStateManager"
                        name="jboss.mq:service=StateManager">
              <depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=myDS</depends>
              <attribute name="SqlProperties">
                CREATE_TABLES_ON_STARTUP = TRUE

       

       

       

      but i meet the ERROR:

       

          2010-11-09 10:33:42,894 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=jboss.mq:service=StateManager state=Create mode=Manual requiredState=Installed
          java.lang.NoClassDefFoundError: org/jboss/tm/TransactionManagerService
           at org.jboss.mq.sm.jdbc.JDBCStateManager.startService(JDBCStateManager.java:392)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:322)

       

       

      and i copied jboss-transaction.jar from jboss4.0.3 to jboss5.1 lib path, but here we come to new ERROR:

       

          2010-11-09 13:06:08,369 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Instantiated: name=DefaultUserTransactionprovider state=Described
          java.lang.NoSuchMethodError: org.jboss.tm.TransactionManagerLocator.locateTransactionManager(Z)Ljavax/transaction/TransactionManager;
           at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.<init>(ServerVMClientUserTransaction.java:93)
           at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.<clinit>(ServerVMClientUserTransaction.java:60)

       

       

      looks like it is another issue because of the lib issues between jboss4.0.3 and jboss5.1.

       

      and i always has the error:

      Failed to register as listener of: jboss.mq:service=PersistenceManager javax.management.InstanceNotFoundException: jboss.mq:service=PersistenceManager is not registered.

       

       

       

      2010-11-10 22:55:17,956 DEBUG [org.jboss.management.j2ee.MBean] (main) {color:red}Failed to register as listener of: jboss.mq:service=PersistenceManager
      javax.management.InstanceNotFoundException: jboss.mq:service=PersistenceManager is not registered.{color}
           at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:526)
           at org.jboss.mx.server.MBeanServerImpl.isInstanceOf(MBeanServerImpl.java:974)
           at org.jboss.management.j2ee.MBean.postCreation(MBean.java:151)
           at org.jboss.management.j2ee.J2EEManagedObject.postRegister(J2EEManagedObject.java:314)
           at org.jboss.mx.server.AbstractMBeanInvoker.invokePostRegister(AbstractMBeanInvoker.java:974)
           at org.jboss.mx.server.AbstractMBeanInvoker.postRegister(AbstractMBeanInvoker.java:681)
           at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:335)
           at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
           at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
           at java.security.AccessController.doPrivileged(Native Method)
           at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
           at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
           at org.jboss.management.j2ee.MBean.create(MBean.java:79)
           at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:62)
           at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:40)
           at org.jboss.management.j2ee.deployers.AbstractVFSJSR77Deployer.deployJsr77(AbstractVFSJSR77Deployer.java:46)
           at org.jboss.management.j2ee.deployers.AbstractJSR77Deployer.deploy(AbstractJSR77Deployer.java:173)
           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.install(DeployersImpl.java:1098)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
           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: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:361)
           at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
           at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
           at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
           at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
           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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
           at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
           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:595)

       

       

       

      anyway, is it the correct way i use jboss4.0.3 lib for jboss5.1 to setup jbossmq, how could i migrate the jbossmq from jboss4.0.3 to jboss5.1?

        • 1. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
          Wolf-Dieter Fink Master

          I recommend to use JBossMessaging because it will be better than MQ and for us we do not have many dependencies to JBossMQ, only handle of clustering is different.

          So what part of your code depend to JBossMQ?

          • 2. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
            Emre He Newbie

            here are some pieces from my codes:

            MyQueue.java:

                public static final String QueueName  = "jboss.mq.destination:name=myQueue,service=Queue";

             

                private TicketQueue()
                {
                     log.info("Creating TicketQueue instance");
                     setName("queue/ticketQueue");
                     // AgentToolkit : check if queue is deployed
                     setLocal(false);
                     try {
                             log.debug("Try local lookup of queue");
                          if ( ServiceLocator.getInstance().localObjectLookup(Name) != null )

                private MyQueue()

                {

                log.info("Creating MyQueue instance");

                setName("queue/myQueue");

                setLocal(false);

             

            if i change it to jboss messaging, i think i need to change all codes with jboss.mq.destination:name=myQueue,service=Queue, is that the only place i need to change? am i right?

            • 3. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
              Emre He Newbie

              and we still have cluster environment too for this application.

              • 4. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                Wolf-Dieter Fink Master

                Where your code is from? Remote-Client or within a server application.

                 

                I have code like this in an SLSB:

                    jndiContext = new InitialContext();
                    topicConnFactory = (TopicConnectionFactory)jndiContext.lookup("java:/JmsXA");
                    topic = (Topic)jndiContext.lookup("topic/MyTopic");
                    topicConn = topicConnFactory.createTopicConnection();
                    topicSession = topicConn.createTopicSession(<transactional>, javax.jms.Session.AUTO_ACKNOWLEDGE);
                    topicPublisher = topicSession.createPublisher(topic);

                • 5. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                  Emre He Newbie

                  Thanks Wolf-Dieter,

                   

                  i think this code is from Remote-Client side and thanks for your code example.

                  actually i am not familiar with jboss architecture, i suppose the jbossmq-->jboss messaging migration steps should be:

                  1. migrate jboss 4.0.3sp1 server/myserver/deploy/jmx/*.xml to jboss 5.1 server/myserver/deploy/messaging/*.xml.

                  i understand at application server side, what we only need is one configuration file like myQueue-service.xml, then we can setup the jbossmq service:

                  jboss.mq.destination:name=myQueue,service=Queue

                  so we only need to update the target jboss messaging configuration file, maybe:

                  server/myserver/deployers/messaging-definitions-jboss-beans.xml

                  ?

                   

                  2. update Remote-Client related mq definition files:

                   

                  jboss.mq.destination:name=myQueue,service=Queue

                   

                  -->

                   

                  jboss.messaging.destination:name=myQueue,service=Queue

                   

                  no other java codes changes?

                   

                  Best regards,

                  Emre

                   


                  oss-5.1.0.GA/server/mcdp/deployers/messaging-definitions-jboss-beans.xml
                  • 6. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                    Wolf-Dieter Fink Master

                    My Remote-Client code looks like:

                      QueueConnectionFactory qcf = (QueueConnectionFactory) initialContext.lookup("ConnectionFactory");
                      QueueConnection conn = qcf.createQueueConnection();
                      Queue queA = (Queue) initialContext.lookup("queue/A");

                     

                    This looks more portable like yours because of the JNDI lookup.

                    IMHO the queue/topic name must be configurable, other stuff is javax.jms.*

                    • 7. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                      Emre He Newbie

                      till now, there are no good news, i tried to change the configuration files in server/myserver/deploy/messaging instead of server/myserver/deploy/jms, like the queue definition: myQueue-server.xml, but like cluster-service.xml, uil2-service.xml, i don't know how to migrate them...

                      i tried to use updated client to send message to new queue, no success...

                      • 8. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                        Wolf-Dieter Fink Master

                        Maybe its a good idea to start with a new 5.1 server, the configuration of MQ and JBM is different.

                         

                        Do your configuration stepwise.

                        Configure Queue:

                        Good examples how to configure a queue is docs/examples/jms/example-destinations-service.xml.

                        You should check that the queue is correct deployed (server.log).

                        Check with client programm:

                        Write a simple program to send and receive messages you will be sure that your code work.

                        Change DB:

                        Than replace the DefaultDS(HSQLDB) with your own DB

                         

                        After that you should able to integrate your application.

                        • 9. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                          Emre He Newbie

                          Wolf-Dieter,

                           

                          thanks for your valuable comments!

                          i think i only keep at Step 1: Configure Queue, from jmx-console, i can see the Queue are online, but the client does not work, i will follow your remark to try again.

                           

                          i always have the "not registered" DEBUG info in server.log, i checked some internet pages, someone said it is the wrong report in the log, is that correct?

                          for example the "not registered" DEBUG in server.log:

                           

                          2010-11-13 23:34:56,938 DEBUG [org.jboss.management.j2ee.MBean] (main) Failed to register as listener of: jboss.messaging.connectionfactory:service=ConnectionFactory
                          javax.management.InstanceNotFoundException: jboss.messaging.connectionfactory:service=ConnectionFactory is not registered.
                          at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:526)
                          at org.jboss.mx.server.MBeanServerImpl.isInstanceOf(MBeanServerImpl.java:974)
                          at org.jboss.management.j2ee.MBean.postCreation(MBean.java:151)
                          at org.jboss.management.j2ee.J2EEManagedObject.postRegister(J2EEManagedObject.java:314)
                          at org.jboss.mx.server.AbstractMBeanInvoker.invokePostRegister(AbstractMBeanInvoker.java:974)
                          at org.jboss.mx.server.AbstractMBeanInvoker.postRegister(AbstractMBeanInvoker.java:681)
                          at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:335)
                          at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
                          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                          at java.lang.reflect.Method.invoke(Method.java:585)
                          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)
                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)
                          at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
                          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                          at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)
                          at java.security.AccessController.doPrivileged(Native Method)
                          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)
                          at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)
                          at org.jboss.management.j2ee.MBean.create(MBean.java:79)
                          at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:62)
                          at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:40)
                          at org.jboss.management.j2ee.deployers.AbstractVFSJSR77Deployer.deployJsr77(AbstractVFSJSR77Deployer.java:46)
                          at org.jboss.management.j2ee.deployers.AbstractJSR77Deployer.deploy(AbstractJSR77Deployer.java:173)
                          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.install(DeployersImpl.java:1098)
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                          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: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:361)
                          at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                          at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
                          at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                          at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
                          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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
                          at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
                          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:595)
                          2

                          2010-11-13 23:34:56,938 DEBUG [org.jboss.management.j2ee.MBean] (main) Failed to register as listener of: jboss.messaging.connectionfactory:service=ConnectionFactory

                          javax.management.InstanceNotFoundException: jboss.messaging.connectionfactory:service=ConnectionFactory is not registered.

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

                               at org.jboss.mx.server.MBeanServerImpl.isInstanceOf(MBeanServerImpl.java:974)

                               at org.jboss.management.j2ee.MBean.postCreation(MBean.java:151)

                               at org.jboss.management.j2ee.J2EEManagedObject.postRegister(J2EEManagedObject.java:314)

                               at org.jboss.mx.server.AbstractMBeanInvoker.invokePostRegister(AbstractMBeanInvoker.java:974)

                               at org.jboss.mx.server.AbstractMBeanInvoker.postRegister(AbstractMBeanInvoker.java:681)

                               at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:335)

                               at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)

                               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                               at java.lang.reflect.Method.invoke(Method.java:585)

                               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

                               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

                               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:138)

                               at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:140)

                               at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

                               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

                               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

                               at org.jboss.mx.server.MBeanServerImpl$3.run(MBeanServerImpl.java:1431)

                               at java.security.AccessController.doPrivileged(Native Method)

                               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:1426)

                               at org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:376)

                               at org.jboss.management.j2ee.MBean.create(MBean.java:79)

                               at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:62)

                               at org.jboss.management.j2ee.deployers.ServiceModuleJSR77Deployer.deployJsr77(ServiceModuleJSR77Deployer.java:40)

                               at org.jboss.management.j2ee.deployers.AbstractVFSJSR77Deployer.deployJsr77(AbstractVFSJSR77Deployer.java:46)

                               at org.jboss.management.j2ee.deployers.AbstractJSR77Deployer.deploy(AbstractJSR77Deployer.java:173)

                               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.install(DeployersImpl.java:1098)

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

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

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

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

                               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: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:361)

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

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

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

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

                               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.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

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

                               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:595)

                           

                           

                          best regards,

                          Emre

                          • 10. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                            Emre He Newbie

                            Hello Wolf-Dieter,

                             

                            Check with client programm:

                            Write a simple program to send and receive messages you will be sure that your code work.

                             

                            Could you help to share me one simple program or some guide links to check the jboss messaing send/receive?

                             

                            thanks,

                            Emre

                            • 11. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                              Wolf-Dieter Fink Master

                              Here you are ....

                               

                              A simple JUnit test and a destinations-service.xml.

                               

                              Unzip a JBoss5.1 and start default configuration. (Server should start without problems)

                              copy Wfqueue-destinations-service.xml to the deploy directory.

                              server.log ==> INFO  [QueueService] Queue[/queue/testQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000

                               

                              Start the Unit test (set classpath jbossall-client.jar)

                              Both tests run green.

                              • 12. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                                Emre He Newbie

                                Wolf-Dieter,

                                 

                                thanks for the testing scripts, i tried it and i have got the INFO log as your example, but when i run the client java codes, i met the ERROR:

                                 

                                testSendMessageToMDB Exception: java.lang.RuntimeException: Failed to download and/or install client side AOP stack
                                testGetMessage Exception: java.lang.RuntimeException: Failed to download and/or install client side AOP stack

                                testSendMessageToMDB Exception: java.lang.RuntimeException: Failed to download and/or install client side AOP stack

                                testGetMessage Exception: java.lang.RuntimeException: Failed to download and/or install client side AOP stack

                                 

                                about aop, i only can see below info in jmx-console:

                                 

                                jboss.aop

                                • service=AspectManager

                                 

                                 

                                BTW i don't use junit to run the client, i just add the main function, add the jbossall-client.jar and other referenced lib at /opt/jboss-5.1.0.GA/client.

                                 

                                thanks,

                                Emre

                                • 13. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                                  Wolf-Dieter Fink Master

                                  Sounds like that a port is blocked to transfer the invoker stack. (I'm not sure about this)

                                   

                                  Do you test on different machines or have e.g. a firewall in between?

                                  • 14. Re: how to migrate jbossmq queue/topic configuration to jboss 5.1
                                    Emre He Newbie

                                    Hello Wolf-Dieter,

                                     

                                    You are right! i tried to run the java code on the server which runs jboss 5.1, it succeed:

                                     

                                     

                                    [root@bjmrf12 test]# java -classpath .:jbossall-client.jar QueueTests
                                    Start test...
                                    log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).
                                    log4j:WARN Please initialize the log4j system properly.
                                    Message send  => Created at Sun Nov 14 20:20:38 CST 2010
                                    Receive message
                                    delegator->JBossMessage[21131054912487426]:PERSISTENT, deliveryId=0
                                    Created at Sun Nov 14 20:20:38 CST 2010
                                    End test...
                                    # java -classpath .:jbossall-client.jar QueueTests
                                    Start test...
                                    log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).
                                    log4j:WARN Please initialize the log4j system properly.
                                    Message send  => Created at Sun Nov 14 20:20:38 CST 2010
                                    Receive message
                                    delegator->JBossMessage[21131054912487426]:PERSISTENT, deliveryId=0
                                    Created at Sun Nov 14 20:20:38 CST 2010
                                    End test...

                                     

                                     

                                    i have closed firewall on my pc, but i run the test java codes from eclipse on my pc, it will show the above errors.

                                    anyway, if we succeed to send/receive the message from server local, could we can confirm the messaging setting on jboss 5.1 server is ok?

                                    if yes, i can begin to migrate my application messaging/client now.

                                     

                                    thanks,
                                    Emre
                                    1 2 Previous Next