[jboss-user] DuplicateServiceException on JBoss 7 with ActiveMQ

Steven redalert.commander at gmail.com
Tue Jan 17 16:53:27 EST 2012


Hi list,

I'm trying to run a MessageDrivenBean on JBoss, connecting to an
ActiveMQ broker outside of JBoss.
However when starting JBoss I get the following error as the cause of a
larger stacktrace:

org.jboss.msc.service.DuplicateServiceException: Service
jboss.connector.connection-factory.java:jboss/activemq/ConnectionFactory
is already registered

It appears I'm hitting this bug:
https://issues.jboss.org/browse/JBJCA-641
Unfortunately the workaround doesn't seem to work, or I'm missing
something. Also, the bug is marked closed as of agust 5th 2011 and no
comments were ever added to it.

Has anyone successfully connected JBoss 7 to an ActiveMQ broker already?
I've seen several forum posts about it, but none of them were ever
solved.

I'm running JBoss 7.1.0.CR1b and trying to use a resource adapter from
ActiveMQ 5.5.1. The configuration is pretty default, no changes were
made to the ra.xml inside the activemq-rar-5.5.1.rar file (dropped in
standalone/deployments), the standalone.xml was modified to use ActiveMQ
for mdb's instead of hornetQ and to include a resource-adapter subsystem
definition with connection-definitions like this:

<connection-definition
class-name="org.apache.activemq.ra.ActiveMQManagedConnectionFactory"
jndi-name="java:jboss/activemq/TopicConnectionFactory"

currently 3 exist.

Any suggestions?

Kind regards,
Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url : http://lists.jboss.org/pipermail/jboss-user/attachments/20120117/ba5032a8/attachment.bin 


More information about the jboss-user mailing list