<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Failed to migrate HA EJB Messaging from JBoss 4.4.2 to 5.1
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/topizio">Maurizio Moscatelli</a> in <i>JNDI and Naming</i> - <a href="http://community.jboss.org/message/587525#587525">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p><span style="font-family: arial,helvetica,sans-serif;">Hy guys,</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial,helvetica,sans-serif;">   I developed an clustered application in JBoss4.2 with two MQ queue in HA. Here all stuff goes well and every node was able to send message to both queues using HA-JNDI lockup.</span></p><p><span style="font-family: arial,helvetica,sans-serif;">I’ve recently tried to migrate from 4.2.2 GA to JBoss 5.1 GA. I’ve successfully setting up the application for single instance, but when I start the second note also start the problems.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This is the server.log taken from the master node:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: courier new,courier;">....</span></p><p><span style="font-family: courier new,courier;">2011-02-14 15:59:15,816 INFO  [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (main) Encountered deployment AbstractVFSDeploymentContext@888554920{vfszip:/usr/jboss/jboss-5.1.0.GA/server/all/farm/ServicelandEAR.ear/ServiceHandlerMsgReceiverEJB.jar/}</span></p><p><span style="font-family: courier new,courier;">2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main) installing bean: ejb/EngineMsgReceiverEJB.jar#Engine,uid2106924599</span></p><p><span style="font-family: courier new,courier;">2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main)   with dependencies:</span></p><p><span style="font-family: courier new,courier;">2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main)   and supplies:</span></p><p><span style="font-family: courier new,courier;">2011-02-14 15:59:15,868 INFO  [org.jboss.ejb.deployers.EjbDeployer] (main)     <strong>jndi:null</strong></span></p><p><span style="font-family: courier new,courier;">...</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: arial,helvetica,sans-serif;">After, when I start the second node it cannot see the queues at the startup time and in server.log I see the message:</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong style="font-family: courier new,courier;">2011-02-14 15:59:18,072 ERROR [org.jboss.messaging.util.ExceptionUtil] (WorkManager(2)-2) SessionEndpoint[fc-gygfi5kg-1-02aei5kg-rk6gsk-100j3] createConsumerDelegate [gc-bzgfi5kg-1-02aei5kg-rk6gsk-100j3]</strong></p><p><strong style="font-family: courier new,courier;">javax.jms.InvalidDestinationException: No such destination: JBossQueue[Engine] has it been deployed?</strong></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegateInternal(ServerSessionEndpoint.java:1862)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.ServerSessionEndpoint.createConsumerDelegate(ServerSessionEndpoint.java:262)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$createConsumerDelegate$aop(SessionAdvised.java:94)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.advised.SessionAdvised$createConsumerDelegate_8721389917985689973.invokeTarget(SessionAdvised$createConsumerDelegate_8721389917985689973.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.container.SecurityAspect.handleCreateConsumerDelegate(SecurityAspect.java:123)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</span></p><p><span style="font-family: courier new,courier;">    at java.lang.reflect.Method.invoke(Method.java:616)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.container.ServerLogInterceptor.invoke(ServerLogInterceptor.java:105)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.advised.SessionAdvised.createConsumerDelegate(SessionAdvised.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.wireformat.SessionCreateConsumerDelegateRequest.serverInvoke(SessionCreateConsumerDelegateRequest.java:100)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.Client.invoke(Client.java:1724)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.Client.invoke(Client.java:629)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.Client.invoke(Client.java:617)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$createConsumerDelegate$aop(ClientSessionDelegate.java:267)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientSessionDelegate$createConsumerDelegate_8721389917985689973.invokeTarget(ClientSessionDelegate$createConsumerDelegate_8721389917985689973.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.StateCreationAspect.handleCreateConsumerDelegate(StateCreationAspect.java:142)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConsumerDelegate_1970827269.invoke(StateCreationAspect_z_handleCreateConsumerDelegate_1970827269.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.ConsumerAspect.handleCreateConsumerDelegate(ConsumerAspect.java:76)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.org.jboss.jms.client.container.ConsumerAspect_z_handleCreateConsumerDelegate_1970827269.invoke(ConsumerAspect_z_handleCreateConsumerDelegate_1970827269.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientSessionDelegate.createConsumerDelegate(ClientSessionDelegate.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.JBossConnectionConsumer.<init>(JBossConnectionConsumer.java:126)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.SessionAspect.handleCreateConnectionConsumer(SessionAspect.java:772)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleCreateConnectionConsumer_1970827269.invoke(SessionAspect_z_handleCreateConnectionConsumer_1970827269.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientConnectionDelegate.createConnectionConsumer(ClientConnectionDelegate.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.JBossConnection.createConnectionConsumer(JBossConnection.java:140)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.setupConsumer(JmsServerSessionPool.java:289)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.resource.adapter.jms.inflow.JmsServerSessionPool.start(JmsServerSessionPool.java:89)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupSessionPool(JmsActivation.java:656)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:359)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)</span></p><p><span style="font-family: courier new,courier;">    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)</span></p><p><span style="font-family: courier new,courier;">    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)</span></p><p><span style="font-family: courier new,courier;">    at java.lang.Thread.run(Thread.java:636)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Furthermore,when the second node try to use the stub picked up using HA-JNDI this is the output:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: courier new,courier;">2011-02-14 16:01:24,429 INFO  [serviceland] (ajp-10.0.0.1-8009-10) Trying to use HA-JNDI to resolve the queue</span></p><p><strong style="font-family: courier new,courier;">2011-02-14 16:01:24,620 ERROR [org.jboss.messaging.util.ExceptionUtil] (ajp-10.0.0.1-8009-10) SessionEndpoint[tn-oh6ii5kg-1-02aei5kg-rk6gsk-100j3] send [un-km6ii5kg-1-02aei5kg-rk6gsk-100j3]</strong></p><p><strong style="font-family: courier new,courier;">javax.jms.JMSException: Failed to route Reference[21261446096781312]:RELIABLE to Engine</strong></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.ServerConnectionEndpoint.sendMessage(ServerConnectionEndpoint.java:757)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.ServerSessionEndpoint.send(ServerSessionEndpoint.java:399)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$send$aop(SessionAdvised.java:87)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.advised.SessionAdvised$send_7280680627620114891.invokeTarget(SessionAdvised$send_7280680627620114891.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.container.SecurityAspect.handleSend(SecurityAspect.java:157)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</span></p><p><span style="font-family: courier new,courier;">    at java.lang.reflect.Method.invoke(Method.java:616)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:122)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.endpoint.advised.SessionAdvised.send(SessionAdvised.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.wireformat.SessionSendRequest.serverInvoke(SessionSendRequest.java:95)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:143)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:891)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.Client.invoke(Client.java:1724)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.Client.invoke(Client.java:629)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.remoting.Client.invoke(Client.java:617)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:189)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.DelegateSupport.doInvoke(DelegateSupport.java:160)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientSessionDelegate.org$jboss$jms$client$delegate$ClientSessionDelegate$send$aop(ClientSessionDelegate.java:499)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientSessionDelegate$send_6145266547759487588.invokeTarget(ClientSessionDelegate$send_6145266547759487588.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.SessionAspect.handleSend(SessionAspect.java:661)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.org.jboss.jms.client.container.SessionAspect_z_handleSend_1970827269.invoke(SessionAspect_z_handleSend_1970827269.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientSessionDelegate.send(ClientSessionDelegate.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.ProducerAspect.handleSend(ProducerAspect.java:269)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.org.jboss.jms.client.container.ProducerAspect_z_handleSend_1970827269.invoke(ProducerAspect_z_handleSend_1970827269.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:86)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.delegate.ClientProducerDelegate.send(ClientProducerDelegate.java)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:164)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:207)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:145)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.jms.client.JBossMessageProducer.send(JBossMessageProducer.java:136)</span></p><p><span style="font-family: courier new,courier;">    at com.serviceland.common.broker.impl.MessageBrokerImpl.sendTextMessage(MessageBrokerImpl.java:113)</span></p><p><span style="font-family: courier new,courier;">    at com.serviceland.engine.manager.impl.EngineManagerImpl.run(EngineManagerImpl.java:58)</span></p><p><span style="font-family: courier new,courier;">    at com.serviceland.engine.manager.impl.EngineManagerDelegate.run(EngineManagerDelegate.java:22)</span></p><p><span style="font-family: courier new,courier;">    at com.serviceland.json.wrapper.ExecutionHandlerJSON.startExecution(ExecutionHandlerJSON.java:135)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)</span></p><p><span style="font-family: courier new,courier;">    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</span></p><p><span style="font-family: courier new,courier;">    at java.lang.reflect.Method.invoke(Method.java:616)</span></p><p><span style="font-family: courier new,courier;">    at com.serviceland.json.wrapper.MethodInvoker.invokeMethod(MethodInvoker.java:103)</span></p><p><span style="font-family: courier new,courier;">    at com.serviceland.servlet.JSONChannelServlet.process(JSONChannelServlet.java:60)</span></p><p><span style="font-family: courier new,courier;">    at com.serviceland.servlet.JSONChannelServlet.doPost(JSONChannelServlet.java:149)</span></p><p><span style="font-family: courier new,courier;">    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)</span></p><p><span style="font-family: courier new,courier;">    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.service.session.ClusteredSessionValve.handleRequest(ClusteredSessionValve.java:135)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.service.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:94)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.service.session.LockingValve.invoke(LockingValve.java:62)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</span></p><p><span style="font-family: courier new,courier;">    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:384)</span></p><p><span style="font-family: courier new,courier;">    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)</span></p><p><span style="font-family: courier new,courier;">    at java.lang.Thread.run(Thread.java:636)</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I really cannot figure where are the problems (because sure, there is more than one). I start my server as “<span style="font-family: courier new,courier;">run.sh -c all -b 10.0.0.1</span>”.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span lang="EN-US" style="font-family: arial,helvetica,sans-serif; font-size: 10pt;">Here above I put the descriptors for the first queue (ServiceHandler), obviously there’s others descriptors for the other queue.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This is my jboss.xml :</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: courier new,courier;"><jboss></span></p><p><span style="font-family: courier new,courier;">   <enterprise-beans></span></p><p><span style="font-family: courier new,courier;">      <message-driven></span></p><p><span style="font-family: courier new,courier;">         <ejb-name>Engine</ejb-name></span></p><p><span style="font-family: courier new,courier;">         <destination-jndi-name>queue/Engine</destination-jndi-name></span></p><p><span style="font-family: courier new,courier;">         <resource-ref></span></p><p><span style="font-family: courier new,courier;">             <res-ref-name>queue/ServiceHandler</res-ref-name></span></p><p><span style="font-family: courier new,courier;">             <jndi-name>jnp://${jboss.bind.address}:1100/queue/Engine</jndi-name></span></p><p><span style="font-family: courier new,courier;">         </resource-ref></span></p><p><span style="font-family: courier new,courier;">      </message-driven></span></p><p><span style="font-family: courier new,courier;">   </enterprise-beans></span></p><p><span style="font-family: courier new,courier;">   <resource-managers></span></p><p><span style="font-family: courier new,courier;">   </resource-managers></span></p><p><span style="font-family: courier new,courier;"></jboss></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This is my ejb-jar.xml:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: courier new,courier;"><?xml version="1.0" encoding="UTF-8"?></span></p><p><span style="font-family: courier new,courier;"><span><!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "</span><a class="jive-link-external-small" href="http://java.sun.com/dtd/ejb-jar_2_0.dtd" target="_blank">http://java.sun.com/dtd/ejb-jar_2_0.dtd</a><span>"></span></span></p><p><span style="font-family: courier new,courier;"><ejb-jar ></span></p><p><span style="font-family: courier new,courier;">   <description><![CDATA[No Description.]]></description></span></p><p><span style="font-family: courier new,courier;">   <display-name>Engine</display-name></span></p><p><span style="font-family: courier new,courier;">   <enterprise-beans></span></p><p><span style="font-family: courier new,courier;">      <message-driven ></span></p><p><span style="font-family: courier new,courier;">         <description><![CDATA[Bean to access messages]]></description></span></p><p><span style="font-family: courier new,courier;">         <display-name>Engine</display-name></span></p><p><span style="font-family: courier new,courier;">         <ejb-name>Engine</ejb-name></span></p><p><span style="font-family: courier new,courier;">         <ejb-class>com.dobyweb.ejb.engine.EngineBean</ejb-class></span></p><p><span style="font-family: courier new,courier;">         <transaction-type>Bean</transaction-type></span></p><p><span style="font-family: courier new,courier;">         <acknowledge-mode>Auto-acknowledge</acknowledge-mode></span></p><p><span style="font-family: courier new,courier;">         <message-driven-destination></span></p><p><span style="font-family: courier new,courier;">            <destination-type>javax.jms.Queue</destination-type></span></p><p><span style="font-family: courier new,courier;">         </message-driven-destination></span></p><p><span style="font-family: courier new,courier;">         <resource-ref></span></p><p><span style="font-family: courier new,courier;">         <description>Message queue Engine</description></span></p><p><span style="font-family: courier new,courier;">         <res-ref-name>queue/Engine</res-ref-name></span></p><p><span style="font-family: courier new,courier;">         <res-type>javax.jms.Queue</res-type></span></p><p><span style="font-family: courier new,courier;">         <res-auth>Container</res-auth></span></p><p><span style="font-family: courier new,courier;">          <res-sharing-scope>Shareable</res-sharing-scope></span></p><p><span style="font-family: courier new,courier;">         </resource-ref></span></p><p><span style="font-family: courier new,courier;">      </message-driven></span></p><p><span style="font-family: courier new,courier;">   </enterprise-beans></span></p><p><span style="font-family: courier new,courier;">   <assembly-descriptor></span></p><p><span style="font-family: courier new,courier;">   </assembly-descriptor></span></p><p><span style="font-family: courier new,courier;"></ejb-jar></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This is my jbossmq-destination-service.xml putted in $JBOSS_HOME/server/all/deploy-hasingleton/jms:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: courier new,courier;"><?xml version="1.0" encoding="UTF-8"?></span></p><p><span style="font-family: courier new,courier;"><server></span></p><p><span style="font-family: courier new,courier;">  <mbean code="org.jboss.jms.server.destination.QueueService"</span></p><p><span style="font-family: courier new,courier;">    name="jboss.messaging.destination:service=Queue,name=Engine"</span></p><p><span style="font-family: courier new,courier;">    xmbean-dd="xmdesc/Queue-xmbean.xml"></span></p><p><span style="font-family: courier new,courier;">    <depends optional-attribute-name="ServerPeer"></span></p><p><span style="font-family: courier new,courier;">      jboss.messaging:service=ServerPeer</span></p><p><span style="font-family: courier new,courier;">    </depends></span></p><p><span style="font-family: courier new,courier;">    <depends>jboss.messaging:service=PostOffice</depends></span></p><p><span style="font-family: courier new,courier;">    <attribute name="JNDIName">queue/Engine</attribute></span></p><p><span style="font-family: courier new,courier;">    <attribute name="RedeliveryDelay">10000</attribute></span></p><p><span style="font-family: courier new,courier;">    <attribute name="MaxDeliveryAttempts">3</attribute></span></p><p><span style="font-family: courier new,courier;">  </mbean></span></p><p><span style="font-family: courier new,courier;"></server></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This is my jms-ds.xml putted into $JBOSS_HOME/server/all/deploy/messaging:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: courier new,courier;"><?xml version="1.0" encoding="UTF-8"?></span></p><p><span style="font-family: courier new,courier;"><connection-factories></span></p><p><span style="font-family: courier new,courier;">  <mbean code="org.jboss.jms.jndi.JMSProviderLoader"</span></p><p><span style="font-family: courier new,courier;">         name="jboss.messaging:service=JMSProviderLoader,name=RemoteJBossMQProvider"></span></p><p><span style="font-family: courier new,courier;">      <attribute name="ProviderName">RemoteXAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="FactoryRef">XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="QueueFactoryRef">XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="TopicFactoryRef">XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="Properties"></span></p><p><span style="font-family: courier new,courier;">        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory</span></p><p><span style="font-family: courier new,courier;">        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces</span></p><p><span style="font-family: courier new,courier;">        java.naming.provider.url=${jboss.bind.address:localhost}:1100</span></p><p><span style="font-family: courier new,courier;">        jnp.disableDiscovery=false</span></p><p><span style="font-family: courier new,courier;">        jnp.partitionName=${jboss.partition.name:DefaultPartition}</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryGroup=${jboss.partition.udpGroup:230.0.0.4}</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryPort=1102</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryTTL=16</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryTimeout=5000</span></p><p><span style="font-family: courier new,courier;">        jnp.maxRetries=1</span></p><p><span style="font-family: courier new,courier;">      </attribute></span></p><p><span style="font-family: courier new,courier;">  </mbean> </span></p><p><span style="font-family: courier new,courier;">   <mbean code="org.jboss.jms.jndi.JMSProviderLoader"</span></p><p><span style="font-family: courier new,courier;">          name="jboss.messaging:service=JMSProviderLoader,name=JMSProvider"></span></p><p><span style="font-family: courier new,courier;">      <attribute name="ProviderName">DefaultJMSProvider</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute></span></p><p><span style="font-family: courier new,courier;">      <!--attribute name="FactoryRef">java:/XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute--></span></p><p><span style="font-family: courier new,courier;">      <!-- The combined connection factory --></span></p><p><span style="font-family: courier new,courier;">      <attribute name="FactoryRef">XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <!-- The queue connection factory --></span></p><p><span style="font-family: courier new,courier;">      <attribute name="QueueFactoryRef">XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <!-- The topic factory --></span></p><p><span style="font-family: courier new,courier;">      <attribute name="TopicFactoryRef">XAConnectionFactory</attribute></span></p><p><span style="font-family: courier new,courier;">      <!-- Access JMS via HAJNDI --></span></p><p><span style="font-family: courier new,courier;">      <attribute name="Properties"></span></p><p><span style="font-family: courier new,courier;">        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory</span></p><p><span style="font-family: courier new,courier;">        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces</span></p><p><span style="font-family: courier new,courier;">        java.naming.provider.url=${jboss.bind.address:localhost}:1100</span></p><p><span style="font-family: courier new,courier;">        jnp.disableDiscovery=false</span></p><p><span style="font-family: courier new,courier;">        jnp.partitionName=${jboss.partition.name:DefaultPartition}</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryGroup=${jboss.partition.udpGroup:230.0.0.4}</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryPort=1102</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryTTL=16</span></p><p><span style="font-family: courier new,courier;">        jnp.discoveryTimeout=5000</span></p><p><span style="font-family: courier new,courier;">        jnp.maxRetries=1</span></p><p><span style="font-family: courier new,courier;">      </attribute></span></p><p><span style="font-family: courier new,courier;">   </mbean></span></p><p><span style="font-family: courier new,courier;">   <!-- JMS XA Resource adapter, use this to get transacted JMS in beans --></span></p><p><span style="font-family: courier new,courier;">   <tx-connection-factory></span></p><p><span style="font-family: courier new,courier;">      <jndi-name>JmsXA</jndi-name></span></p><p><span style="font-family: courier new,courier;">      <xa-transaction/></span></p><p><span style="font-family: courier new,courier;">      <rar-name>jms-ra.rar</rar-name></span></p><p><span style="font-family: courier new,courier;">      <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition></span></p><p><span style="font-family: courier new,courier;">      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property></span></p><p><span style="font-family: courier new,courier;">      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">DefaultJMSProvider</config-property></span></p><p><span style="font-family: courier new,courier;">      <max-pool-size>20</max-pool-size></span></p><p><span style="font-family: courier new,courier;">      <security-domain-and-application>JmsXARealm</security-domain-and-application></span></p><p><span style="font-family: courier new,courier;">      <!--depends>jboss.messaging:service=ServerPeer</depends--></span></p><p><span style="font-family: courier new,courier;">   </tx-connection-factory></span></p><p><span style="font-family: courier new,courier;"></connection-factories></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><span style="font-family: courier new,courier;">And I'm using the </span>ndb-persistence-service.xml with false Cluster attribute.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Have somebody any ideas?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thank's in advance.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Best regards,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Maurizio</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/587525#587525">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JNDI and Naming at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>