|
Hello everyone,
I am having problems with upgrading from Servicemix 3.3.2 to 3.4.0, namely with ActiveMQ 5.5.1. I'm using the following transport connectors configuration in the activemq.xml file:
<amq:transportConnectors>
<amq:transportConnector uri="tcp://localhost:61616"/>
<amq:transportConnector uri="http://localhost:61617"/>
</amq:transportConnectors>
For JMS over HTTP activemq-optional package is required, and I added it to Servicemix lib folder (activemq-optional-5.5.1.jar). However the http connector definition is giving me the following error when starting up Servicemix:
3505 [main] ERROR org.apache.activemq.broker.BrokerService - Failed to start ActiveMQ JMS Message Broker. Reason: java.io.IOException: Transport Connector could not be registered in JMX: org/eclipse/jetty/server/Connector
java.io.IOException: Transport Connector could not be registered in JMX: org/eclipse/jetty/server/Connector
at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27)
at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1670)
at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2159)
at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2073)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:519)
at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.apache.servicemix.Main.main(Main.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:353)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:264)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Connector
at org.apache.activemq.transport.http.HttpTransportFactory.doBind(HttpTransportFactory.java:52)
at org.apache.activemq.transport.TransportFactory.bind(TransportFactory.java:131)
at org.apache.activemq.broker.TransportConnector.createTransportServer(TransportConnector.java:319)
at org.apache.activemq.broker.TransportConnector.getServer(TransportConnector.java:147)
at org.apache.activemq.broker.TransportConnector.asManagedConnector(TransportConnector.java:105)
at org.apache.activemq.broker.BrokerService.registerConnectorMBean(BrokerService.java:1665)
... 33 more
Caused by: java.lang.ClassNotFoundException: org.eclipse.jetty.server.Connector
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 39 more
I tried adding the jetty jars (version 8.1.0.RC4) that were reported missing to the Servicemix lib folder, but in the end it failed with:
6225 [main] INFO org.apache.activemq.broker.BrokerService - ActiveMQ JMS Message Broker (localhost, null) stopped
Caught: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is MultiException[java.lang.ClassCastException: org.eclipse.jetty.server.handler.ContextHandler cannot be cast to org.eclipse.jetty.servlet.ServletContextHandler, java.lang.IllegalStateException: !accepting]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'broker' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is MultiException[java.lang.ClassCastException: org.eclipse.jetty.server.handler.ContextHandler cannot be cast to org.eclipse.jetty.servlet.ServletContextHandler, java.lang.IllegalStateException: !accepting]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:283)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.apache.servicemix.Main.main(Main.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.classworlds.Launcher.launchStandard(Launcher.java:353)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:264)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: MultiException[java.lang.ClassCastException: org.eclipse.jetty.server.handler.ContextHandler cannot be cast to org.eclipse.jetty.servlet.ServletContextHandler, java.lang.IllegalStateException: !accepting]
at org.eclipse.jetty.server.Server.doStart(Server.java:256)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59)
at org.apache.activemq.transport.http.HttpTransportServer.doStart(HttpTransportServer.java:119)
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:53)
at org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:246)
at org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2162)
at org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2073)
at org.apache.activemq.broker.BrokerService.start(BrokerService.java:519)
at org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)
... 22 more
It seems to be a dependency issue. If I replace the activemq-optional-5.5.1 jar with activemq-optional-5.3.0 everything works just fine and no jetty jars are required at all. I would just like to use the newer 5.5.1 version of ActiveMQ since the main reason for migration to Servicemix 3.4.0 were problems with ActiveMQ 5.3.0 that we had on Servicemix 3.3.2. Any info would be appreciated. |
|
Administrator
|
L.S.,
Could you try using the JARs for Jetty 7.1.6.v20100715 instead of 8.1.0.RC4 ? That was the version that was used when building ActiveMQ 5.5.1, so I just want to make sure that there were no API changes between 7.1.x and 8.1.x that are causing your problems. Regards, Gert Vanthienen ------------------------ FuseSource Web: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ On Mon, Jan 30, 2012 at 11:35 AM, Fibonacci <[hidden email]>wrote: > Hello everyone, > > I am having problems with upgrading from Servicemix 3.3.2 to 3.4.0, namely > with ActiveMQ 5.5.1. I'm using the following transport connectors > configuration in the activemq.xml file: > > > > For JMS over HTTP activemq-optional package is required, and I added it to > Servicemix lib folder (activemq-optional-5.5.1.jar). However the http > connector definition is giving me the following error when starting up > Servicemix: > > > > I tried adding the jetty jars (version 8.1.0.RC4) that were reported > missing > to the Servicemix lib folder, but in the end it failed with: > > > > It seems to be a dependency issue. If I replace the activemq-optional-5.5.1 > jar with activemq-optional-5.3.0 everything works just fine and no jetty > jars are required at all. I would just like to use the newer 5.5.1 version > of ActiveMQ since the main reason for migration to Servicemix 3.4.0 were > problems with ActiveMQ 5.3.0 that we had on Servicemix 3.3.2. > > Any info would be appreciated. > > -- > View this message in context: > http://servicemix.396122.n5.nabble.com/Servicemix-3-4-0-problems-with-ActiveMQ-5-5-1-tp5441023p5441023.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. >
Regards,
Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ |
|
actually there have been changes between jetty 7 and 8
so this can likely be an issue :) regards, Achim 2012/1/30 Gert Vanthienen <[hidden email]> > L.S., > > Could you try using the JARs for Jetty 7.1.6.v20100715 instead of 8.1.0.RC4 > ? That was the version that was used when building ActiveMQ 5.5.1, so I > just want to make sure that there were no API changes between 7.1.x and > 8.1.x that are causing your problems. > > Regards, > > Gert Vanthienen > ------------------------ > FuseSource > Web: http://fusesource.com > Blog: http://gertvanthienen.blogspot.com/ > > > On Mon, Jan 30, 2012 at 11:35 AM, Fibonacci <[hidden email] > >wrote: > > > Hello everyone, > > > > I am having problems with upgrading from Servicemix 3.3.2 to 3.4.0, > namely > > with ActiveMQ 5.5.1. I'm using the following transport connectors > > configuration in the activemq.xml file: > > > > > > > > For JMS over HTTP activemq-optional package is required, and I added it > to > > Servicemix lib folder (activemq-optional-5.5.1.jar). However the http > > connector definition is giving me the following error when starting up > > Servicemix: > > > > > > > > I tried adding the jetty jars (version 8.1.0.RC4) that were reported > > missing > > to the Servicemix lib folder, but in the end it failed with: > > > > > > > > It seems to be a dependency issue. If I replace the > activemq-optional-5.5.1 > > jar with activemq-optional-5.3.0 everything works just fine and no jetty > > jars are required at all. I would just like to use the newer 5.5.1 > version > > of ActiveMQ since the main reason for migration to Servicemix 3.4.0 were > > problems with ActiveMQ 5.3.0 that we had on Servicemix 3.3.2. > > > > Any info would be appreciated. > > > > -- > > View this message in context: > > > http://servicemix.396122.n5.nabble.com/Servicemix-3-4-0-problems-with-ActiveMQ-5-5-1-tp5441023p5441023.html > > Sent from the ServiceMix - User mailing list archive at Nabble.com. > > > -- Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> |
|
Hi,
switching to Jetty 7.1.6.v20100715 fixed the problem. Thanks for the prompt replies! |
|
In reply to this post by Fibonacci
Hi,
We are facing the below issue in servicemix upgrade from 3.3.2 to 3.4. "premaure end of file" Note: 1) Log4j Enabled in Debug mode only. 2) AuditLog features also disabled. Kindly provide your inputs. Regards, Kabali Sivan |
| Powered by Nabble | Edit this page |
