[
https://issues.jboss.org/browse/WFLY-7879?page=com.atlassian.jira.plugin....
]
Jeff Mesnil moved JBEAP-8230 to WFLY-7879:
------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-7879 (was: JBEAP-8230)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: JMS
(was: JMS)
Affects Version/s: (was: 7.1.0.DR8)
(was: 7.1.0.DR10)
Affects Testing: (was: Regression)
JMS bridge not able to lookup remote destination
------------------------------------------------
Key: WFLY-7879
URL:
https://issues.jboss.org/browse/WFLY-7879
Project: WildFly
Issue Type: Bug
Components: JMS
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
Priority: Blocker
There is regression in EAP 7.1.0.DR8. JMS bridge is not able to lookup queue or
connection factory from remote EAP 7.1.0.DR8 server.
If server with JMS bridge is started then following warning is logged in server.log:
{code}
13:30:14,006 WARN [org.apache.activemq.artemis.jms.bridge] (Thread-102) AMQ342010:
Failed to connect JMS Bridge N/A: javax.naming.NamingException: Failed to create remoting
connection [Root exception is java.lang.NoClassDefFoundError:
org/jboss/remoting3/Remoting]
at org.jboss.naming.remote.client.ClientUtil.namingException(ClientUtil.java:51)
[jboss-remote-naming-2.0.4.Final-redhat-1.jar:2.0.4.Final-redhat-1]
at
org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:152)
[jboss-remote-naming-2.0.4.Final-redhat-1.jar:2.0.4.Final-redhat-1]
at org.jboss.as.naming.InitialContext.getDefaultInitCtx(InitialContext.java:114)
at org.jboss.as.naming.InitialContext.init(InitialContext.java:99)
at javax.naming.ldap.InitialLdapContext.<init>(InitialLdapContext.java:154)
[rt.jar:1.8.0_71]
at org.jboss.as.naming.InitialContext.<init>(InitialContext.java:89)
at
org.jboss.as.naming.InitialContextFactory.getInitialContext(InitialContextFactory.java:43)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:684)
[rt.jar:1.8.0_71]
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:313)
[rt.jar:1.8.0_71]
at javax.naming.InitialContext.init(InitialContext.java:244) [rt.jar:1.8.0_71]
at javax.naming.InitialContext.<init>(InitialContext.java:216) [rt.jar:1.8.0_71]
at
org.apache.activemq.artemis.jms.bridge.impl.JNDIFactorySupport.createObject(JNDIFactorySupport.java:43)
[artemis-jms-server-1.5.0.redhat-1.jar:1.5.0.redhat-1]
at
org.apache.activemq.artemis.jms.bridge.impl.JNDIDestinationFactory.createDestination(JNDIDestinationFactory.java:32)
[artemis-jms-server-1.5.0.redhat-1.jar:1.5.0.redhat-1]
at
org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.setupJMSObjects(JMSBridgeImpl.java:1072)
[artemis-jms-server-1.5.0.redhat-1.jar:1.5.0.redhat-1]
at
org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.setupJMSObjectsWithRetry(JMSBridgeImpl.java:1247)
[artemis-jms-server-1.5.0.redhat-1.jar:1.5.0.redhat-1]
at
org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl.access$2600(JMSBridgeImpl.java:75)
[artemis-jms-server-1.5.0.redhat-1.jar:1.5.0.redhat-1]
at
org.apache.activemq.artemis.jms.bridge.impl.JMSBridgeImpl$FailureHandler.run(JMSBridgeImpl.java:1747)
[artemis-jms-server-1.5.0.redhat-1.jar:1.5.0.redhat-1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[rt.jar:1.8.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[rt.jar:1.8.0_71]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_71]
Caused by: java.lang.NoClassDefFoundError: org/jboss/remoting3/Remoting
at org.jboss.naming.remote.client.EndpointCache.get(EndpointCache.java:47)
[jboss-remote-naming-2.0.4.Final-redhat-1.jar:2.0.4.Final-redhat-1]
at
org.jboss.naming.remote.client.InitialContextFactory.createEndpoint(InitialContextFactory.java:226)
[jboss-remote-naming-2.0.4.Final-redhat-1.jar:2.0.4.Final-redhat-1]
at
org.jboss.naming.remote.client.InitialContextFactory.getOrCreateEndpoint(InitialContextFactory.java:207)
[jboss-remote-naming-2.0.4.Final-redhat-1.jar:2.0.4.Final-redhat-1]
at
org.jboss.naming.remote.client.InitialContextFactory.getOrCreateNamingStore(InitialContextFactory.java:170)
[jboss-remote-naming-2.0.4.Final-redhat-1.jar:2.0.4.Final-redhat-1]
at
org.jboss.naming.remote.client.InitialContextFactory.getInitialContext(InitialContextFactory.java:146)
[jboss-remote-naming-2.0.4.Final-redhat-1.jar:2.0.4.Final-redhat-1]
... 18 more
{code}
This seems to be related to upgrade remote-naming -> wildfly-naming. As JMS bridge is
using "artemis" module the dependency for wildfly-naming should be updated.
Configuration of JMS bridge:
{code}
<jms-bridge name="myBridge" module="org.apache.activemq.artemis"
quality-of-service="ONCE_AND_ONLY_ONCE" failure-retry-interval="1000"
max-retries="-1" max-batch-size="10" max-batch-time="100"
add-messageID-in-header="true">
<source connection-factory="java:/ConnectionFactory"
destination="jms/queue/InQueue"/>
<target connection-factory="jms/RemoteConnectionFactory"
destination="jms/queue/OutQueue">
<target-context>
<property name="java.naming.factory.initial"
value="org.jboss.naming.remote.client.InitialContextFactory"/>
<property name="java.naming.provider.url"
value="http-remoting://127.0.0.1:10080"/>
</target-context>
</target>
</jms-bridge>
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)