Hi
I installed the simple chat demo on a tomcat machine and I cannot get it to work when trying to connect to activemq. I was wondering if you can tell me what am I doing wrong.
Here is my context.xml entry for tomcat
<Resource auth="Container" brokerName="DefaultActiveMQBroker" brokerURL="tcp://0.0.0.0:61616"
clientID="gwtUIFromTOmcat" description="JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory"
name="jms/guiConnectionFactory" password="manager"
type="org.apache.activemq.ActiveMQConnectionFactory"
useEmbeddedBroker="false" userName="system"/>
This is the entry from my server.properties
# jms configuration - for JMSMessageDispatcher only
messaging.dispatcherImplementer: com.isomorphic.messaging.JMSMessageDispatcher
messaging.jms.context: _container_
messaging.jms.jndiPrefix: jms
messaging.jms.topicConnectionFactory: guiConnectionFactory
This is the error that I get
= 2012-02-28 16:29:47,384 [5-15] ERROR MessagingServlet - MessagingServlet top
-level exception
javax.jms.InvalidClientIDException: Broker: DefaultActiveMQBroker - Client: gwtU
IFromTOmcat already connected from /10.1.255.20:62395
at org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBr
oker.java:242)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBro
ker.java:78)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableB
rokerFilter.java:91)
at org.apache.activemq.broker.TransportConnection.processAddConnection(T
ransportConnection.java:694)
at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddC
onnection(ManagedTransportConnection.java:83)
at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:
137)
at org.apache.activemq.broker.TransportConnection.service(TransportConne
ction.java:309)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportC
onnection.java:185)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilt
er.java:69)
at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireForm
atNegotiator.java:113)
at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityM
onitor.java:228)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSup
port.java:83)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.jav
a:219)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
201)
at java.lang.Thread.run(Thread.java:662)
=== 2012-02-28 16:29:50,028 [5-15] INFO RequestContext - URL: '/simplechat/simp
lechat/sc/messaging', User-Agent: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT
6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .N
ET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)': MSIE wi
th Accept-Encoding header, ready for compressed JS
=== 2012-02-28 16:29:50,031 [5-15] DEBUG JNDI - No configuration for JNDI contex
t '_container_' - assuming default initialContext
=== 2012-02-28 16:29:50,032 [5-15] DEBUG JNDI - Detected container context, usin
g new InitialContext(env) lookup method
=== 2012-02-28 16:29:50,047 [5-15] ERROR MessagingServlet - MessagingServlet top
-level exception
javax.jms.InvalidClientIDException: Broker: DefaultActiveMQBroker - Client: gwtU
IFromTOmcat already connected from /10.1.255.20:62395
at org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBr
oker.java:242)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBro
ker.java:78)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableB
rokerFilter.java:91)
at org.apache.activemq.broker.TransportConnection.processAddConnection(T
ransportConnection.java:694)
at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddC
onnection(ManagedTransportConnection.java:83)
at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:
137)
at org.apache.activemq.broker.TransportConnection.service(TransportConne
ction.java:309)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportC
onnection.java:185)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilt
er.java:69)
at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireForm
atNegotiator.java:113)
at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityM
onitor.java:228)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSup
port.java:83)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.jav
a:219)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
201)
It appears its trying to connect over and over again but ActiveMQ will not let it. I was wondering do I have it set up correctly.
Thanks
I installed the simple chat demo on a tomcat machine and I cannot get it to work when trying to connect to activemq. I was wondering if you can tell me what am I doing wrong.
Here is my context.xml entry for tomcat
<Resource auth="Container" brokerName="DefaultActiveMQBroker" brokerURL="tcp://0.0.0.0:61616"
clientID="gwtUIFromTOmcat" description="JMS Connection Factory" factory="org.apache.activemq.jndi.JNDIReferenceFactory"
name="jms/guiConnectionFactory" password="manager"
type="org.apache.activemq.ActiveMQConnectionFactory"
useEmbeddedBroker="false" userName="system"/>
This is the entry from my server.properties
# jms configuration - for JMSMessageDispatcher only
messaging.dispatcherImplementer: com.isomorphic.messaging.JMSMessageDispatcher
messaging.jms.context: _container_
messaging.jms.jndiPrefix: jms
messaging.jms.topicConnectionFactory: guiConnectionFactory
This is the error that I get
= 2012-02-28 16:29:47,384 [5-15] ERROR MessagingServlet - MessagingServlet top
-level exception
javax.jms.InvalidClientIDException: Broker: DefaultActiveMQBroker - Client: gwtU
IFromTOmcat already connected from /10.1.255.20:62395
at org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBr
oker.java:242)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBro
ker.java:78)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableB
rokerFilter.java:91)
at org.apache.activemq.broker.TransportConnection.processAddConnection(T
ransportConnection.java:694)
at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddC
onnection(ManagedTransportConnection.java:83)
at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:
137)
at org.apache.activemq.broker.TransportConnection.service(TransportConne
ction.java:309)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportC
onnection.java:185)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilt
er.java:69)
at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireForm
atNegotiator.java:113)
at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityM
onitor.java:228)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSup
port.java:83)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.jav
a:219)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
201)
at java.lang.Thread.run(Thread.java:662)
=== 2012-02-28 16:29:50,028 [5-15] INFO RequestContext - URL: '/simplechat/simp
lechat/sc/messaging', User-Agent: 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT
6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .N
ET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; InfoPath.3)': MSIE wi
th Accept-Encoding header, ready for compressed JS
=== 2012-02-28 16:29:50,031 [5-15] DEBUG JNDI - No configuration for JNDI contex
t '_container_' - assuming default initialContext
=== 2012-02-28 16:29:50,032 [5-15] DEBUG JNDI - Detected container context, usin
g new InitialContext(env) lookup method
=== 2012-02-28 16:29:50,047 [5-15] ERROR MessagingServlet - MessagingServlet top
-level exception
javax.jms.InvalidClientIDException: Broker: DefaultActiveMQBroker - Client: gwtU
IFromTOmcat already connected from /10.1.255.20:62395
at org.apache.activemq.broker.region.RegionBroker.addConnection(RegionBr
oker.java:242)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.advisory.AdvisoryBroker.addConnection(AdvisoryBro
ker.java:78)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.BrokerFilter.addConnection(BrokerFilter.ja
va:85)
at org.apache.activemq.broker.MutableBrokerFilter.addConnection(MutableB
rokerFilter.java:91)
at org.apache.activemq.broker.TransportConnection.processAddConnection(T
ransportConnection.java:694)
at org.apache.activemq.broker.jmx.ManagedTransportConnection.processAddC
onnection(ManagedTransportConnection.java:83)
at org.apache.activemq.command.ConnectionInfo.visit(ConnectionInfo.java:
137)
at org.apache.activemq.broker.TransportConnection.service(TransportConne
ction.java:309)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportC
onnection.java:185)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilt
er.java:69)
at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireForm
atNegotiator.java:113)
at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityM
onitor.java:228)
at org.apache.activemq.transport.TransportSupport.doConsume(TransportSup
port.java:83)
at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.jav
a:219)
at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:
201)
It appears its trying to connect over and over again but ActiveMQ will not let it. I was wondering do I have it set up correctly.
Thanks
Comment