activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akornev (JIRA)" <>
Subject [jira] Commented: (AMQ-585) InstanceAlreadyExistsException on .war redeploy (if useJmx="true)
Date Thu, 25 Mar 2010 15:57:08 GMT


Akornev commented on AMQ-585:

I use ActiveMq 5.2.0.
In web.xml spring context get by org.springframework.web.context.ContextLoaderListener
Persistent = false

And I have exception:
javax.jms.JMSException: Could not create Transport. Reason:
        at org.apache.activemq.util.JMSExceptionSupport.create(
        at org.apache.activemq.ActiveMQConnectionFactory.createTransport(
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(
        at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(
        at org.apache.activemq.ActiveMQConnectionFactory.createConnection(

Could you please help me with my problem.


> InstanceAlreadyExistsException on .war redeploy (if useJmx="true)
> -----------------------------------------------------------------
>                 Key: AMQ-585
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 4.0 M4
>         Environment: SuSe Linux 9.1, Sun JDK 1.4.2_08, Tomcat 5.0.28
>            Reporter: Mass Dosage
>            Priority: Minor
>             Fix For: 4.0 RC2
> I am using ActiveMQ as part of a web-app deployed to Tomcat. Active MQ is configured
via spring and follows the spring examples that you ship with the source in M4. If I configure
the broker to use JMX (  <broker useJmx="true"> ) and deploy the app to tomcat, everything
goes fine. However, when I deploy a newer version of the app (hot deploy) I get the following
error when the JMS consumer is created from spring:
> 006-02-20 15:16:17,378 ERROR org.springframework.web.context.ContextLoader.initWebApplicationContext(
Context initialization failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smsResponseConsumer' defined in ServletContext resource [/WEB-INF/applicationContext-messaging.xml]:
Initialization of bean failed; nested exception is javax.jms.JMSException: org.apache.activemq:Type=Topic,Destination=ActiveMQ.Advisory.Connection,BrokerName=localhost
> javax.jms.JMSException: org.apache.activemq:Type=Topic,Destination=ActiveMQ.Advisory.Connection,BrokerName=localhost
> And the root cause of this exception is:
> Caused by: org.apache.activemq:Type=Topic,Destination=ActiveMQ.Advisory.Connection,BrokerName=localhost
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
> 	at java.lang.reflect.Constructor.newInstance(
> 	at org.apache.activemq.openwire.DataStreamMarshaller.createThrowable(
> 	at org.apache.activemq.openwire.DataStreamMarshaller.unmarsalThrowable(
> 	at org.apache.activemq.openwire.v1.ExceptionResponseMarshaller.unmarshal(
> 	at org.apache.activemq.openwire.OpenWireFormat.doUnmarshal(
> 	at org.apache.activemq.openwire.OpenWireFormat.unmarshal(
> 	at
> 	... 1 more
> So it appears as if the JMX entry isn't "unbound" when the applicaiton restarts on a
> If I set JMX to false then I can redeploy the application without any errors. 

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message