You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by lung12 <lu...@yahoo.com> on 2011/08/30 23:39:59 UTC

Update activemq-broker.xml but encountered errors

I installed ServivceMix 4.3 under Windows XP. Start up ServiceMix OK.  
To use activemq web cosole, I add system properties to system.properties
webconsole.type=properties
webconsole.jms.url=tcp://localhost:61616
webconsole.jmx.url=service:jmx:rmi:///jndi/rmi://localhost:1077/karaf-root
webconsole.jmx.user=smx
webconsole.jmx.password=smx

Then I install active-web-consoles with the following steps, 
karaf@root> features:install war
karaf@root> features:install activemq-web-console
karaf@root> la |grep active
[  43] [Active     ] [Created     ] [       ] [   60] activemq-core (5.4.2)
[  45] [Active     ] [            ] [       ] [   60] activemq-console
(5.4.2)
[  46] [Active     ] [            ] [       ] [   60] activemq-ra (5.4.2)
[  47] [Active     ] [            ] [       ] [   60] activemq-pool (5.4.2)
[  48] [Active     ] [Created     ] [       ] [   60] activemq-karaf (5.4.2)
[  53] [Resolved   ] [            ] [       ] [   60] activemq-blueprint
(5.4.2)
[  54] [Active     ] [Created     ] [       ] [   60] activemq-broker.xml
(0.0.0)
[  79] [Active     ] [            ] [       ] [   60] activemq-camel (5.4.2)
[ 202] [Active     ] [            ] [       ] [   60] activemq-web-console
(5.4.2)

Visit http://localhost:8181/activemqweb/queues.jsp   OK!

I edit activemq-broker.xml even without changes but encountered errors by
the following commands:
karaf@root> update 54
54 is the id for activemq-broker.xml 

The errors as below:
karaf@root> ERROR: Bundle org.apache.servicemix.jbi.osgi [123]
EventDispatcher: Error during dispatch. (org.apache.ser
cemix.nmr.api.ServiceMixException: Unable to register service
servicemix-wsn2005 with properties {NAME=servicemix-wsn2
5, objectClass=[Ljava.lang.String;@453182, service.id=343,
TYPE=service-engine}. Reason: javax.jbi.JBIException: Error
alling init)
org.apache.servicemix.nmr.api.ServiceMixException: Unable to register
service servicemix-wsn2005 with properties {NAME
ervicemix-wsn2005, objectClass=[Ljava.lang.String;@453182, service.id=343,
TYPE=service-engine}. Reason: javax.jbi.JBI
ception: Error calling init
        at
org.apache.servicemix.nmr.core.ServiceRegistryImpl.register(ServiceRegistryImpl.java:52)
        at
org.apache.servicemix.nmr.osgi.OsgiServiceRegistryTracker.addingService(OsgiServiceRegistryTracker.java:78)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:896)
        at
org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:261)
        at
org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:233)
        at
org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:840)
        at
org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:871)
        at
org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:733)
        at
org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
        at
org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3772)
.....
.....
Caused by: javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61616. Reason: java.net.ConnectExcep
tion: Connection refused: connect
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:286)
        at
org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
        at
org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:178)
        at
org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:137)
        at
org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:121)
        at
org.apache.activemq.pool.PooledConnectionFactory.createConnection(PooledConnectionFactory.java:92)
        at
$javax.jms.ConnectionFactory$$EnhancerByCGLIB$$b029e2a2.createConnection(<generated>)



--
View this message in context: http://servicemix.396122.n5.nabble.com/Update-activemq-broker-xml-but-encountered-errors-tp4751907p4751907.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: Update activemq-broker.xml but encountered errors

Posted by lung12 <lu...@yahoo.com>.
Did anyone encountered the same issue or reproduce the same issue?
Any idea why?

--
View this message in context: http://servicemix.396122.n5.nabble.com/Update-activemq-broker-xml-but-encountered-errors-tp4751907p4763165.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.