karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: Karaf 4.2.0 running ActiveMQ with WebSocket transport
Date Sun, 12 Aug 2018 07:00:18 GMT
You can try to use bundle:dynamic* command on the ActiveMQ OSGi bundle
(packaging the activemq blueprint in a bundle won't help).

Let me move forward on 4.2.1 and I will take a look.

Regards
JB

On 12/08/2018 08:58, IODB wrote:
> So I've put the ActiveMQ blueprint file inside a bundle, and added 
> DynamicImport-Package: org.eclipse.jetty.websocket.server
> to its manifest file.
> 
> Unfortunately the error remains. What am I doing wrong?
> 
> StackTrace:
> java.lang.ClassNotFoundException:
> org.eclipse.jetty.websocket.server.WebSocketServerFactory
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:?]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:?]
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349) ~[?:?]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:?]
> 	at java.lang.Class.forName0(Native Method) ~[?:?]
> 	at java.lang.Class.forName(Class.java:348) ~[?:?]
> 	at
> org.eclipse.jetty.websocket.servlet.WebSocketServletFactory$Loader.load(WebSocketServletFactory.java:47)
> ~[?:?]
> 	at
> org.eclipse.jetty.websocket.servlet.WebSocketServlet.init(WebSocketServlet.java:138)
> ~[?:?]
> 	at
> org.apache.activemq.transport.ws.jetty9.WSServlet.init(WSServlet.java:79)
> ~[?:?]
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:244) ~[?:?]
> 	at
> org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:637)
> ~[?:?]
> 	at
> org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:421)
> ~[?:?]
> 	at
> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:760)
> ~[?:?]
> 	at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:348)
> ~[?:?]
> 	at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:785)
> ~[?:?]
> 	at
> org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:261)
> ~[?:?]
> 	at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[?:?]
> 	at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:131)
> ~[?:?]
> 	at org.eclipse.jetty.server.Server.start(Server.java:452) ~[?:?]
> 	at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:105)
> ~[?:?]
> 	at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:113)
> ~[?:?]
> 	at org.eclipse.jetty.server.Server.doStart(Server.java:419) ~[?:?]
> 	at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[?:?]
> 	at
> org.apache.activemq.transport.ws.WSTransportServer.doStart(WSTransportServer.java:91)
> ~[?:?]
> 	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
> ~[?:?]
> 	at
> org.apache.activemq.broker.TransportConnector.start(TransportConnector.java:251)
> ~[?:?]
> 	at
> org.apache.activemq.broker.BrokerService.startTransportConnector(BrokerService.java:2747)
> ~[?:?]
> 	at
> org.apache.activemq.broker.BrokerService.startAllConnectors(BrokerService.java:2640)
> ~[?:?]
> 	at
> org.apache.activemq.broker.BrokerService.doStartBroker(BrokerService.java:771)
> ~[?:?]
> 	at
> org.apache.activemq.broker.BrokerService.startBroker(BrokerService.java:733)
> ~[?:?]
> 	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:636)
> ~[?:?]
> 	at
> org.apache.activemq.xbean.XBeanBrokerService.afterPropertiesSet(XBeanBrokerService.java:73)
> ~[?:?]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:?]
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:?]
> 	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:?]
> 	at
> org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:331)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:838)
> ~[?:?]
> 	at
> org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:591)
> ~[?:?]
> 	... 27 more
> 
> 
> 
> 
> --
> Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html
> 

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message