You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Bartłomiej Kruczyk <ba...@gmail.com> on 2015/10/01 13:08:04 UTC

Re: Previewing messages in ActiveMQ

I'm using ServiceMix 5.2.2 but it does not have command bundle:dynamic
-import. However, it has dev:dynamic-import command. This is the
output:

karaf@root> dev:dynamic-import 287
Enabling dynamic imports on bundle org.apache.activemq.activemq-web
-console [287]
Should not skip: ^
Should not skip: ^
Should not skip: ^
karaf@root>

But when I'm enabling dynamic import on web-console package I can't
access localhost:8181 page anymore. I'm getting 404 error page from
jetty.

Dnia 2015-09-30, śro o godzinie 18:38 +0200, Bartłomiej Kruczyk pisze:
> Oh, I get it now :) I'll try this tomorrow and then let you know how
> it
> worked. 
> 
> Dnia 2015-09-30, śro o godzinie 14:33 +0200, Jean-Baptiste Onofré
> pisze:
> > bundle:dynamic-import command.
> > 
> > I will reply to you longer asap.
> > 
> > Regards
> > JB
> > 
> > On 09/30/2015 01:20 PM, Bartłomiej Kruczyk wrote:
> > > I'm not sure if I understand correctly. There is a way to import
> > > package via ActiveMQ web console?
> > > 
> > > Or do you mean something else?
> > > 
> > > Dnia 2015-09-30, śro o godzinie 13:03 +0200, Jean-Baptiste Onofré
> > > pisze:
> > > > Hi,
> > > > 
> > > > Did you try a dynamic import in web console to the package ?
> > > > 
> > > > Regards
> > > > JB
> > > > 
> > > > On 09/30/2015 01:00 PM, Bartłomiej Kruczyk wrote:
> > > > > Hi, I'm using ActiveMQ on ServiceMix with Camel.
> > > > > Messaging works fine but I can't preview Java Object messages
> > > > > in
> > > > > ActiveMQ web console. I'm getting following error:
> > > > > 
> > > > > javax.jms.JMSException: Failed to build body from content.
> > > > > Serializable
> > > > > class not available to broker. Reason:
> > > > > java.lang.ClassNotFoundException: com.mypackage.MyMessage not
> > > > > found
> > > > > by
> > > > > org.apache.activemq.activemq-web-console [287].
> > > > > 
> > > > > What should do to make MyMessage class visible for web
> > > > > console?
> > > > > 
> > > > 
> > 

Re: Previewing messages in ActiveMQ

Posted by Bartłomiej Kruczyk <ba...@gmail.com>.
I checked localhost:8181, localhost:8181/activemqweb and
localhost:8181/activemqweb/index.jsp with no luck.

But ofcourse you're right with ServiceMix and ActiveMQ version, I
looked at wrong directory ;) I'm using ServiceMix 5.2.0 and ActiveMQ
5.10.0.

Just checked how activemq-web-console behaves on 5.2.2 and suprisingly
I had no problem enabling dynamic-import and accessing web console on
:8181/activemqweb, which is great but I'm still curious why it fails on
5.2.0.

As you suggested I looked at the logs:

> 2015-10-15 11:40:09,270 | INFO  | isherExecutor: 1 | DispatcherServlet                | ?                                   ? | 287 - org.apache.activemq.activemq-web-console - 5.10.0 | FrameworkServlet 'dispatcher': initialization started
> 2015-10-15 11:40:09,273 | WARN  | isherExecutor: 1 | AbstractLifeCycle                | ?                                   ? | 62 - org.eclipse.jetty.util - 7.6.9.v20130131 | FAILED dispatcher: java.lang.IllegalAccessError: tried to access class org.springframework.web.servlet.FrameworkServlet$ContextRefreshListener from class org.springframework.web.servlet.FrameworkServlet
> java.lang.IllegalAccessError: tried to access class org.springframework.web.servlet.FrameworkServlet$ContextRefreshListener from class org.springframework.web.servlet.FrameworkServlet
>         at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:639)[287:org.apache.activemq.activemq-web-console:5.10.0]
>         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:602)[287:org.apache.activemq.activemq-web-console:5.10.0]
>         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)[287:org.apache.activemq.activemq-web-console:5.10.0]
>         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:521)[287:org.apache.activemq.activemq-web-console:5.10.0]
>         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:462)[287:org.apache.activemq.activemq-web-console:5.10.0]
>         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)[287:org.apache.activemq.activemq-web-console:5.10.0]
>         at javax.servlet.GenericServlet.init(GenericServlet.java:215)[59:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.2]
>         at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:477)[70:org.eclipse.jetty.servlet:7.6.9.v20130131]
>         at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:293)[70:org.eclipse.jetty.servlet:7.6.9.v20130131]
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[62:org.eclipse.jetty.util:7.6.9.v20130131]
>         at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:730)[70:org.eclipse.jetty.servlet:7.6.9.v20130131]
>         at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:254)[70:org.eclipse.jetty.servlet:7.6.9.v20130131]
>         at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:689)[68:org.eclipse.jetty.server:7.6.9.v20130131]
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:107)[80:org.ops4j.pax.web.pax-web-jetty:1.1.17]
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[62:org.eclipse.jetty.util:7.6.9.v20130131]
>         at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:175)[80:org.ops4j.pax.web.pax-web-jetty:1.1.17]
>         at org.ops4j.pax.web.service.internal.HttpServiceStarted.end(HttpServiceStarted.java:762)[79:org.ops4j.pax.web.pax-web-runtime:1.1.17]
>         at org.ops4j.pax.web.service.internal.HttpServiceProxy.end(HttpServiceProxy.java:281)[79:org.ops4j.pax.web.pax-web-runtime:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.end(RegisterWebAppVisitorWC.java:348)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:642)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.register(WebAppPublisher.java:182)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:167)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:131)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService.setService(ReplaceableService.java:114)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService.access$100(ReplaceableService.java:28)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService$CollectionListener.serviceAdded(ReplaceableService.java:183)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ServiceCollection$Tracker.addingService(ServiceCollection.java:181)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[karaf.jar:2.3.9]
>         at org.ops4j.pax.swissbox.tracker.ServiceCollection.onStart(ServiceCollection.java:139)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService.onStart(ReplaceableService.java:146)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:93)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.deploy(WebXmlObserver.java:184)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebXmlObserver$1.start(WebXmlObserver.java:150)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender$1.run(AbstractExtender.java:262)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_80]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_80]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_80]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_80]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_80]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_80]
>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]
> 2015-10-15 11:40:09,290 | WARN  | isherExecutor: 1 | AbstractLifeCycle                | ?                                   ? | 62 - org.eclipse.jetty.util - 7.6.9.v20130131 | FAILED HttpServiceContext{httpContext=WebAppHttpContext{org.apache.activemq.activemq-web-console - 287}}: java.lang.IllegalAccessError: tried to access class org.springframework.web.servlet.FrameworkServlet$ContextRefreshListener from class org.springframework.web.servlet.FrameworkServlet
> java.lang.IllegalAccessError: tried to access class org.springframework.web.servlet.FrameworkServlet$ContextRefreshListener from class org.springframework.web.servlet.FrameworkServlet
>         at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:639)
>         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:602)
>         at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)
>         at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:521)
>         at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:462)
>         at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)
>         at javax.servlet.GenericServlet.init(GenericServlet.java:215)
>         at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:477)
>         at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:293)
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[62:org.eclipse.jetty.util:7.6.9.v20130131]
>         at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:730)
>         at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:254)
>         at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:689)
>         at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:107)
>         at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)[62:org.eclipse.jetty.util:7.6.9.v20130131]
>         at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:175)[80:org.ops4j.pax.web.pax-web-jetty:1.1.17]
>         at org.ops4j.pax.web.service.internal.HttpServiceStarted.end(HttpServiceStarted.java:762)[79:org.ops4j.pax.web.pax-web-runtime:1.1.17]
>         at org.ops4j.pax.web.service.internal.HttpServiceProxy.end(HttpServiceProxy.java:281)[79:org.ops4j.pax.web.pax-web-runtime:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.end(RegisterWebAppVisitorWC.java:348)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:642)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.register(WebAppPublisher.java:182)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:167)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$HttpServiceListener.serviceChanged(WebAppPublisher.java:131)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService.setService(ReplaceableService.java:114)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService.access$100(ReplaceableService.java:28)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService$CollectionListener.serviceAdded(ReplaceableService.java:183)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ServiceCollection$Tracker.addingService(ServiceCollection.java:181)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:1)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:317)[karaf.jar:2.3.9]
>         at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[karaf.jar:2.3.9]
>         at org.ops4j.pax.swissbox.tracker.ServiceCollection.onStart(ServiceCollection.java:139)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.tracker.ReplaceableService.onStart(ReplaceableService.java:146)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle$Stopped.start(AbstractLifecycle.java:121)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.swissbox.lifecycle.AbstractLifecycle.start(AbstractLifecycle.java:49)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:93)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebXmlObserver.deploy(WebXmlObserver.java:184)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.WebXmlObserver$1.start(WebXmlObserver.java:150)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender$1.run(AbstractExtender.java:262)[211:org.ops4j.pax.web.pax-web-extender-war:1.1.17]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_80]
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_80]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[:1.7.0_80]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[:1.7.0_80]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[:1.7.0_80]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[:1.7.0_80]
>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_80]

...but still no idea why it fails. Debug log in attachment.

W dniu 15.10.2015, czw o godzinie 00∶26 +0200, użytkownik Krzysztof
Sobkowiak napisał:
> I have probably found your problem. You write you get the 404 page
> from localhost:8181. I have the same result while accessing http://lo
> calhost:8181.  The ActiveMQ web console is accessible under http://lo
> calhost:8181/activemqweb
> 
> Regards
> Krzysztof
> 
> > But when I'm enabling dynamic import on web-console package I
> > > > > > > > can't
> > > > > > > > access localhost:8181 page anymore. I'm getting 404
> > > > > > > > error page
> > > > > > > > from
> > > > > > > > jetty.
> 

Re: Previewing messages in ActiveMQ

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
I have probably found your problem. You write you get the 404 page from localhost:8181. I have the same result while accessing http://localhost:8181.  The ActiveMQ web console is accessible under http://localhost:8181/activemqweb

Regards
Krzysztof

> But when I'm enabling dynamic import on web-console package I
> >>>>>> can't
> >>>>>> access localhost:8181 page anymore. I'm getting 404 error page
> >>>>>> from
> >>>>>> jetty.

-- 
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


33rd Degree 4charity (http://2015.33degree.org/)

Re: Previewing messages in ActiveMQ

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
I have tried the same with 5.2.0 which uses ActiveMQ 5.10.0 and I can set the dynamic import with no problem too. Can you find something interesting in the log file?

Regards
Krzysztof

On 15.10.2015 00:17, Krzysztof Sobkowiak wrote:
> I have just tested it with 5.2.2 and see no problem
>
> karaf@root> features:install activemq-web-console
> karaf@root> list -t 0 | grep activemq-web
> [ 193] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.2)
> karaf@root> stop 193
> You are about to access system bundle 193.  Do you wish to continue (yes/no):
> yes
> karaf@root> dynamic-import 193
> Enabling dynamic imports on bundle org.apache.activemq.activemq-web-console [193]
> Should not skip: ^
> Should not skip: ^
> Should not skip: ^
> karaf@root> start 193
> You are about to access system bundle 193.  Do you wish to continue (yes/no):
> yes
> karaf@root> list -t 0 | grep activemq-web
> [ 193] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.2)
> karaf@root>
>
> Are you sure you use 5.2.2? I see from your previous email you use ActiveMQ 5.10.0, but ServiceMix 5.2.2 uses 5.10.2.
>
> Regards
> Krzysztof
>
>
>
> On 14.10.2015 13:32, Bartłomiej Kruczyk wrote:
>> It's active:
>>
>>> karaf@root> list | grep activemq
>>> [  97] [Active     ] [Created     ] [       ] [   50] activemq-osgi (5.10.0)
>>> [  98] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.10.0)
>>> [ 134] [Active     ] [            ] [       ] [   50] activemq-camel (5.10.0)
>>> [ 287] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.0)
>>> karaf@root> stop 287
>>> You are about to access system bundle 287.  Do you wish to continue (yes/no):
>>> yes
>>> karaf@root> dynamic-import 287
>>> Enabling dynamic imports on bundle org.apache.activemq.activemq-web-console [287]
>>> Should not skip: ^
>>> Should not skip: ^
>>> Should not skip: ^
>>> karaf@root> start 287
>>> You are about to access system bundle 287.  Do you wish to continue (yes/no):
>>> yes
>>> karaf@root> list | grep activemq
>>> [  97] [Active     ] [Created     ] [       ] [   50] activemq-osgi (5.10.0)
>>> [  98] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.10.0)
>>> [ 134] [Active     ] [            ] [       ] [   50] activemq-camel (5.10.0)
>>> [ 287] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.0)
>> W dniu 14.10.2015, śro o godzinie 11∶13 +0200, użytkownik Sobkowiak
>> Krzysztof napisał:
>>> What's the status of the ActiveMQ Web Console bundle after you start
>>> it?
>>>
>>> On 14.10.2015 11:11, Bartłomiej Kruczyk wrote:
>>>> Yes, I can enable dynamic import on stopped bundle and then start
>>>> it
>>>> just fine, but I'm still getting 404 on localhost:8181/activemqweb.
>>>>
>>>> W dniu 13.10.2015, wto o godzinie 00∶12 +0200, użytkownik Krzysztof
>>>> Sobkowiak napisał:
>>>>> I'm not sure if this is the same problem I had in ServiceMix 6. I
>>>>> tried to add dynamic import to the activemq-web bundle and the
>>>>> bundle
>>>>> hang in status stopping. Could you try to stop the bundle, before
>>>>> you
>>>>> enable the dynamic import and start it again after it is enabled?
>>>>>
>>>>> Regards
>>>>> Krzysztof
>>>>>
>>>>> On 01.10.2015 13:08, Bartłomiej Kruczyk wrote:
>>>>>> I'm using ServiceMix 5.2.2 but it does not have command
>>>>>> bundle:dynamic
>>>>>> -import. However, it has dev:dynamic-import command. This is
>>>>>> the
>>>>>> output:
>>>>>>
>>>>>> karaf@root> dev:dynamic-import 287
>>>>>> Enabling dynamic imports on bundle
>>>>>> org.apache.activemq.activemq-web
>>>>>> -console [287]
>>>>>> Should not skip: ^
>>>>>> Should not skip: ^
>>>>>> Should not skip: ^
>>>>>> karaf@root>
>>>>>>
>>>>>> But when I'm enabling dynamic import on web-console package I
>>>>>> can't
>>>>>> access localhost:8181 page anymore. I'm getting 404 error page
>>>>>> from
>>>>>> jetty.
>>>>>>
>>>>>> Dnia 2015-09-30, śro o godzinie 18:38 +0200, Bartłomiej Kruczyk
>>>>>> pisze:
>>>>>>> Oh, I get it now :) I'll try this tomorrow and then let you
>>>>>>> know
>>>>>>> how
>>>>>>> it
>>>>>>> worked. 
>>>>>>>
>>>>>>> Dnia 2015-09-30, śro o godzinie 14:33 +0200, Jean-Baptiste
>>>>>>> Onofré
>>>>>>> pisze:
>>>>>>>> bundle:dynamic-import command.
>>>>>>>>
>>>>>>>> I will reply to you longer asap.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>> JB
>>>>>>>>
>>>>>>>> On 09/30/2015 01:20 PM, Bartłomiej Kruczyk wrote:
>>>>>>>>> I'm not sure if I understand correctly. There is a way to
>>>>>>>>> import
>>>>>>>>> package via ActiveMQ web console?
>>>>>>>>>
>>>>>>>>> Or do you mean something else?
>>>>>>>>>
>>>>>>>>> Dnia 2015-09-30, śro o godzinie 13:03 +0200, Jean-
>>>>>>>>> Baptiste
>>>>>>>>> Onofré
>>>>>>>>> pisze:
>>>>>>>>>> Hi,
>>>>>>>>>>
>>>>>>>>>> Did you try a dynamic import in web console to the
>>>>>>>>>> package
>>>>>>>>>> ?
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>> JB
>>>>>>>>>>
>>>>>>>>>> On 09/30/2015 01:00 PM, Bartłomiej Kruczyk wrote:
>>>>>>>>>>> Hi, I'm using ActiveMQ on ServiceMix with Camel.
>>>>>>>>>>> Messaging works fine but I can't preview Java Object
>>>>>>>>>>> messages
>>>>>>>>>>> in
>>>>>>>>>>> ActiveMQ web console. I'm getting following error:
>>>>>>>>>>>
>>>>>>>>>>> javax.jms.JMSException: Failed to build body from
>>>>>>>>>>> content.
>>>>>>>>>>> Serializable
>>>>>>>>>>> class not available to broker. Reason:
>>>>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>>>>> com.mypackage.MyMessage
>>>>>>>>>>> not
>>>>>>>>>>> found
>>>>>>>>>>> by
>>>>>>>>>>> org.apache.activemq.activemq-web-console [287].
>>>>>>>>>>>
>>>>>>>>>>> What should do to make MyMessage class visible for
>>>>>>>>>>> web
>>>>>>>>>>> console?
>>>>>>>>>>>

-- 
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


33rd Degree 4charity (http://2015.33degree.org/)

Re: Previewing messages in ActiveMQ

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
I have just tested it with 5.2.2 and see no problem

karaf@root> features:install activemq-web-console
karaf@root> list -t 0 | grep activemq-web
[ 193] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.2)
karaf@root> stop 193
You are about to access system bundle 193.  Do you wish to continue (yes/no):
yes
karaf@root> dynamic-import 193
Enabling dynamic imports on bundle org.apache.activemq.activemq-web-console [193]
Should not skip: ^
Should not skip: ^
Should not skip: ^
karaf@root> start 193
You are about to access system bundle 193.  Do you wish to continue (yes/no):
yes
karaf@root> list -t 0 | grep activemq-web
[ 193] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.2)
karaf@root>

Are you sure you use 5.2.2? I see from your previous email you use ActiveMQ 5.10.0, but ServiceMix 5.2.2 uses 5.10.2.

Regards
Krzysztof



On 14.10.2015 13:32, Bartłomiej Kruczyk wrote:
> It's active:
>
>> karaf@root> list | grep activemq
>> [  97] [Active     ] [Created     ] [       ] [   50] activemq-osgi (5.10.0)
>> [  98] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.10.0)
>> [ 134] [Active     ] [            ] [       ] [   50] activemq-camel (5.10.0)
>> [ 287] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.0)
>> karaf@root> stop 287
>> You are about to access system bundle 287.  Do you wish to continue (yes/no):
>> yes
>> karaf@root> dynamic-import 287
>> Enabling dynamic imports on bundle org.apache.activemq.activemq-web-console [287]
>> Should not skip: ^
>> Should not skip: ^
>> Should not skip: ^
>> karaf@root> start 287
>> You are about to access system bundle 287.  Do you wish to continue (yes/no):
>> yes
>> karaf@root> list | grep activemq
>> [  97] [Active     ] [Created     ] [       ] [   50] activemq-osgi (5.10.0)
>> [  98] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.10.0)
>> [ 134] [Active     ] [            ] [       ] [   50] activemq-camel (5.10.0)
>> [ 287] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.0)
> W dniu 14.10.2015, śro o godzinie 11∶13 +0200, użytkownik Sobkowiak
> Krzysztof napisał:
>> What's the status of the ActiveMQ Web Console bundle after you start
>> it?
>>
>> On 14.10.2015 11:11, Bartłomiej Kruczyk wrote:
>>> Yes, I can enable dynamic import on stopped bundle and then start
>>> it
>>> just fine, but I'm still getting 404 on localhost:8181/activemqweb.
>>>
>>> W dniu 13.10.2015, wto o godzinie 00∶12 +0200, użytkownik Krzysztof
>>> Sobkowiak napisał:
>>>> I'm not sure if this is the same problem I had in ServiceMix 6. I
>>>> tried to add dynamic import to the activemq-web bundle and the
>>>> bundle
>>>> hang in status stopping. Could you try to stop the bundle, before
>>>> you
>>>> enable the dynamic import and start it again after it is enabled?
>>>>
>>>> Regards
>>>> Krzysztof
>>>>
>>>> On 01.10.2015 13:08, Bartłomiej Kruczyk wrote:
>>>>> I'm using ServiceMix 5.2.2 but it does not have command
>>>>> bundle:dynamic
>>>>> -import. However, it has dev:dynamic-import command. This is
>>>>> the
>>>>> output:
>>>>>
>>>>> karaf@root> dev:dynamic-import 287
>>>>> Enabling dynamic imports on bundle
>>>>> org.apache.activemq.activemq-web
>>>>> -console [287]
>>>>> Should not skip: ^
>>>>> Should not skip: ^
>>>>> Should not skip: ^
>>>>> karaf@root>
>>>>>
>>>>> But when I'm enabling dynamic import on web-console package I
>>>>> can't
>>>>> access localhost:8181 page anymore. I'm getting 404 error page
>>>>> from
>>>>> jetty.
>>>>>
>>>>> Dnia 2015-09-30, śro o godzinie 18:38 +0200, Bartłomiej Kruczyk
>>>>> pisze:
>>>>>> Oh, I get it now :) I'll try this tomorrow and then let you
>>>>>> know
>>>>>> how
>>>>>> it
>>>>>> worked. 
>>>>>>
>>>>>> Dnia 2015-09-30, śro o godzinie 14:33 +0200, Jean-Baptiste
>>>>>> Onofré
>>>>>> pisze:
>>>>>>> bundle:dynamic-import command.
>>>>>>>
>>>>>>> I will reply to you longer asap.
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 09/30/2015 01:20 PM, Bartłomiej Kruczyk wrote:
>>>>>>>> I'm not sure if I understand correctly. There is a way to
>>>>>>>> import
>>>>>>>> package via ActiveMQ web console?
>>>>>>>>
>>>>>>>> Or do you mean something else?
>>>>>>>>
>>>>>>>> Dnia 2015-09-30, śro o godzinie 13:03 +0200, Jean-
>>>>>>>> Baptiste
>>>>>>>> Onofré
>>>>>>>> pisze:
>>>>>>>>> Hi,
>>>>>>>>>
>>>>>>>>> Did you try a dynamic import in web console to the
>>>>>>>>> package
>>>>>>>>> ?
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>> JB
>>>>>>>>>
>>>>>>>>> On 09/30/2015 01:00 PM, Bartłomiej Kruczyk wrote:
>>>>>>>>>> Hi, I'm using ActiveMQ on ServiceMix with Camel.
>>>>>>>>>> Messaging works fine but I can't preview Java Object
>>>>>>>>>> messages
>>>>>>>>>> in
>>>>>>>>>> ActiveMQ web console. I'm getting following error:
>>>>>>>>>>
>>>>>>>>>> javax.jms.JMSException: Failed to build body from
>>>>>>>>>> content.
>>>>>>>>>> Serializable
>>>>>>>>>> class not available to broker. Reason:
>>>>>>>>>> java.lang.ClassNotFoundException:
>>>>>>>>>> com.mypackage.MyMessage
>>>>>>>>>> not
>>>>>>>>>> found
>>>>>>>>>> by
>>>>>>>>>> org.apache.activemq.activemq-web-console [287].
>>>>>>>>>>
>>>>>>>>>> What should do to make MyMessage class visible for
>>>>>>>>>> web
>>>>>>>>>> console?
>>>>>>>>>>

-- 
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


33rd Degree 4charity (http://2015.33degree.org/)

Re: Previewing messages in ActiveMQ

Posted by Bartłomiej Kruczyk <ba...@gmail.com>.
It's active:

> karaf@root> list | grep activemq
> [  97] [Active     ] [Created     ] [       ] [   50] activemq-osgi (5.10.0)
> [  98] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.10.0)
> [ 134] [Active     ] [            ] [       ] [   50] activemq-camel (5.10.0)
> [ 287] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.0)
> karaf@root> stop 287
> You are about to access system bundle 287.  Do you wish to continue (yes/no):
> yes
> karaf@root> dynamic-import 287
> Enabling dynamic imports on bundle org.apache.activemq.activemq-web-console [287]
> Should not skip: ^
> Should not skip: ^
> Should not skip: ^
> karaf@root> start 287
> You are about to access system bundle 287.  Do you wish to continue (yes/no):
> yes
> karaf@root> list | grep activemq
> [  97] [Active     ] [Created     ] [       ] [   50] activemq-osgi (5.10.0)
> [  98] [Active     ] [Created     ] [       ] [   50] activemq-karaf (5.10.0)
> [ 134] [Active     ] [            ] [       ] [   50] activemq-camel (5.10.0)
> [ 287] [Active     ] [            ] [       ] [   50] activemq-web-console (5.10.0)

W dniu 14.10.2015, śro o godzinie 11∶13 +0200, użytkownik Sobkowiak
Krzysztof napisał:
> What's the status of the ActiveMQ Web Console bundle after you start
> it?
> 
> On 14.10.2015 11:11, Bartłomiej Kruczyk wrote:
> > Yes, I can enable dynamic import on stopped bundle and then start
> > it
> > just fine, but I'm still getting 404 on localhost:8181/activemqweb.
> > 
> > W dniu 13.10.2015, wto o godzinie 00∶12 +0200, użytkownik Krzysztof
> > Sobkowiak napisał:
> > > I'm not sure if this is the same problem I had in ServiceMix 6. I
> > > tried to add dynamic import to the activemq-web bundle and the
> > > bundle
> > > hang in status stopping. Could you try to stop the bundle, before
> > > you
> > > enable the dynamic import and start it again after it is enabled?
> > > 
> > > Regards
> > > Krzysztof
> > > 
> > > On 01.10.2015 13:08, Bartłomiej Kruczyk wrote:
> > > > I'm using ServiceMix 5.2.2 but it does not have command
> > > > bundle:dynamic
> > > > -import. However, it has dev:dynamic-import command. This is
> > > > the
> > > > output:
> > > > 
> > > > karaf@root> dev:dynamic-import 287
> > > > Enabling dynamic imports on bundle
> > > > org.apache.activemq.activemq-web
> > > > -console [287]
> > > > Should not skip: ^
> > > > Should not skip: ^
> > > > Should not skip: ^
> > > > karaf@root>
> > > > 
> > > > But when I'm enabling dynamic import on web-console package I
> > > > can't
> > > > access localhost:8181 page anymore. I'm getting 404 error page
> > > > from
> > > > jetty.
> > > > 
> > > > Dnia 2015-09-30, śro o godzinie 18:38 +0200, Bartłomiej Kruczyk
> > > > pisze:
> > > > > Oh, I get it now :) I'll try this tomorrow and then let you
> > > > > know
> > > > > how
> > > > > it
> > > > > worked. 
> > > > > 
> > > > > Dnia 2015-09-30, śro o godzinie 14:33 +0200, Jean-Baptiste
> > > > > Onofré
> > > > > pisze:
> > > > > > bundle:dynamic-import command.
> > > > > > 
> > > > > > I will reply to you longer asap.
> > > > > > 
> > > > > > Regards
> > > > > > JB
> > > > > > 
> > > > > > On 09/30/2015 01:20 PM, Bartłomiej Kruczyk wrote:
> > > > > > > I'm not sure if I understand correctly. There is a way to
> > > > > > > import
> > > > > > > package via ActiveMQ web console?
> > > > > > > 
> > > > > > > Or do you mean something else?
> > > > > > > 
> > > > > > > Dnia 2015-09-30, śro o godzinie 13:03 +0200, Jean-
> > > > > > > Baptiste
> > > > > > > Onofré
> > > > > > > pisze:
> > > > > > > > Hi,
> > > > > > > > 
> > > > > > > > Did you try a dynamic import in web console to the
> > > > > > > > package
> > > > > > > > ?
> > > > > > > > 
> > > > > > > > Regards
> > > > > > > > JB
> > > > > > > > 
> > > > > > > > On 09/30/2015 01:00 PM, Bartłomiej Kruczyk wrote:
> > > > > > > > > Hi, I'm using ActiveMQ on ServiceMix with Camel.
> > > > > > > > > Messaging works fine but I can't preview Java Object
> > > > > > > > > messages
> > > > > > > > > in
> > > > > > > > > ActiveMQ web console. I'm getting following error:
> > > > > > > > > 
> > > > > > > > > javax.jms.JMSException: Failed to build body from
> > > > > > > > > content.
> > > > > > > > > Serializable
> > > > > > > > > class not available to broker. Reason:
> > > > > > > > > java.lang.ClassNotFoundException:
> > > > > > > > > com.mypackage.MyMessage
> > > > > > > > > not
> > > > > > > > > found
> > > > > > > > > by
> > > > > > > > > org.apache.activemq.activemq-web-console [287].
> > > > > > > > > 
> > > > > > > > > What should do to make MyMessage class visible for
> > > > > > > > > web
> > > > > > > > > console?
> > > > > > > > > 
> 

Re: Previewing messages in ActiveMQ

Posted by Sobkowiak Krzysztof <kr...@gmail.com>.
What's the status of the ActiveMQ Web Console bundle after you start it?

On 14.10.2015 11:11, Bartłomiej Kruczyk wrote:
> Yes, I can enable dynamic import on stopped bundle and then start it
> just fine, but I'm still getting 404 on localhost:8181/activemqweb.
>
> W dniu 13.10.2015, wto o godzinie 00∶12 +0200, użytkownik Krzysztof
> Sobkowiak napisał:
>> I'm not sure if this is the same problem I had in ServiceMix 6. I
>> tried to add dynamic import to the activemq-web bundle and the bundle
>> hang in status stopping. Could you try to stop the bundle, before you
>> enable the dynamic import and start it again after it is enabled?
>>
>> Regards
>> Krzysztof
>>
>> On 01.10.2015 13:08, Bartłomiej Kruczyk wrote:
>>> I'm using ServiceMix 5.2.2 but it does not have command
>>> bundle:dynamic
>>> -import. However, it has dev:dynamic-import command. This is the
>>> output:
>>>
>>> karaf@root> dev:dynamic-import 287
>>> Enabling dynamic imports on bundle org.apache.activemq.activemq-web
>>> -console [287]
>>> Should not skip: ^
>>> Should not skip: ^
>>> Should not skip: ^
>>> karaf@root>
>>>
>>> But when I'm enabling dynamic import on web-console package I can't
>>> access localhost:8181 page anymore. I'm getting 404 error page from
>>> jetty.
>>>
>>> Dnia 2015-09-30, śro o godzinie 18:38 +0200, Bartłomiej Kruczyk
>>> pisze:
>>>> Oh, I get it now :) I'll try this tomorrow and then let you know
>>>> how
>>>> it
>>>> worked. 
>>>>
>>>> Dnia 2015-09-30, śro o godzinie 14:33 +0200, Jean-Baptiste Onofré
>>>> pisze:
>>>>> bundle:dynamic-import command.
>>>>>
>>>>> I will reply to you longer asap.
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 09/30/2015 01:20 PM, Bartłomiej Kruczyk wrote:
>>>>>> I'm not sure if I understand correctly. There is a way to
>>>>>> import
>>>>>> package via ActiveMQ web console?
>>>>>>
>>>>>> Or do you mean something else?
>>>>>>
>>>>>> Dnia 2015-09-30, śro o godzinie 13:03 +0200, Jean-Baptiste
>>>>>> Onofré
>>>>>> pisze:
>>>>>>> Hi,
>>>>>>>
>>>>>>> Did you try a dynamic import in web console to the package
>>>>>>> ?
>>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 09/30/2015 01:00 PM, Bartłomiej Kruczyk wrote:
>>>>>>>> Hi, I'm using ActiveMQ on ServiceMix with Camel.
>>>>>>>> Messaging works fine but I can't preview Java Object
>>>>>>>> messages
>>>>>>>> in
>>>>>>>> ActiveMQ web console. I'm getting following error:
>>>>>>>>
>>>>>>>> javax.jms.JMSException: Failed to build body from
>>>>>>>> content.
>>>>>>>> Serializable
>>>>>>>> class not available to broker. Reason:
>>>>>>>> java.lang.ClassNotFoundException: com.mypackage.MyMessage
>>>>>>>> not
>>>>>>>> found
>>>>>>>> by
>>>>>>>> org.apache.activemq.activemq-web-console [287].
>>>>>>>>
>>>>>>>> What should do to make MyMessage class visible for web
>>>>>>>> console?
>>>>>>>>

-- 
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)


33rd Degree 4charity (http://2015.33degree.org/)

Re: Previewing messages in ActiveMQ

Posted by Bartłomiej Kruczyk <ba...@gmail.com>.
Yes, I can enable dynamic import on stopped bundle and then start it
just fine, but I'm still getting 404 on localhost:8181/activemqweb.

W dniu 13.10.2015, wto o godzinie 00∶12 +0200, użytkownik Krzysztof
Sobkowiak napisał:
> I'm not sure if this is the same problem I had in ServiceMix 6. I
> tried to add dynamic import to the activemq-web bundle and the bundle
> hang in status stopping. Could you try to stop the bundle, before you
> enable the dynamic import and start it again after it is enabled?
> 
> Regards
> Krzysztof
> 
> On 01.10.2015 13:08, Bartłomiej Kruczyk wrote:
> > I'm using ServiceMix 5.2.2 but it does not have command
> > bundle:dynamic
> > -import. However, it has dev:dynamic-import command. This is the
> > output:
> > 
> > karaf@root> dev:dynamic-import 287
> > Enabling dynamic imports on bundle org.apache.activemq.activemq-web
> > -console [287]
> > Should not skip: ^
> > Should not skip: ^
> > Should not skip: ^
> > karaf@root>
> > 
> > But when I'm enabling dynamic import on web-console package I can't
> > access localhost:8181 page anymore. I'm getting 404 error page from
> > jetty.
> > 
> > Dnia 2015-09-30, śro o godzinie 18:38 +0200, Bartłomiej Kruczyk
> > pisze:
> > > Oh, I get it now :) I'll try this tomorrow and then let you know
> > > how
> > > it
> > > worked. 
> > > 
> > > Dnia 2015-09-30, śro o godzinie 14:33 +0200, Jean-Baptiste Onofré
> > > pisze:
> > > > bundle:dynamic-import command.
> > > > 
> > > > I will reply to you longer asap.
> > > > 
> > > > Regards
> > > > JB
> > > > 
> > > > On 09/30/2015 01:20 PM, Bartłomiej Kruczyk wrote:
> > > > > I'm not sure if I understand correctly. There is a way to
> > > > > import
> > > > > package via ActiveMQ web console?
> > > > > 
> > > > > Or do you mean something else?
> > > > > 
> > > > > Dnia 2015-09-30, śro o godzinie 13:03 +0200, Jean-Baptiste
> > > > > Onofré
> > > > > pisze:
> > > > > > Hi,
> > > > > > 
> > > > > > Did you try a dynamic import in web console to the package
> > > > > > ?
> > > > > > 
> > > > > > Regards
> > > > > > JB
> > > > > > 
> > > > > > On 09/30/2015 01:00 PM, Bartłomiej Kruczyk wrote:
> > > > > > > Hi, I'm using ActiveMQ on ServiceMix with Camel.
> > > > > > > Messaging works fine but I can't preview Java Object
> > > > > > > messages
> > > > > > > in
> > > > > > > ActiveMQ web console. I'm getting following error:
> > > > > > > 
> > > > > > > javax.jms.JMSException: Failed to build body from
> > > > > > > content.
> > > > > > > Serializable
> > > > > > > class not available to broker. Reason:
> > > > > > > java.lang.ClassNotFoundException: com.mypackage.MyMessage
> > > > > > > not
> > > > > > > found
> > > > > > > by
> > > > > > > org.apache.activemq.activemq-web-console [287].
> > > > > > > 
> > > > > > > What should do to make MyMessage class visible for web
> > > > > > > console?
> > > > > > > 
> 

Re: Previewing messages in ActiveMQ

Posted by Krzysztof Sobkowiak <kr...@gmail.com>.
I'm not sure if this is the same problem I had in ServiceMix 6. I tried to add dynamic import to the activemq-web bundle and the bundle hang in status stopping. Could you try to stop the bundle, before you enable the dynamic import and start it again after it is enabled?

Regards
Krzysztof

On 01.10.2015 13:08, Bartłomiej Kruczyk wrote:
> I'm using ServiceMix 5.2.2 but it does not have command bundle:dynamic
> -import. However, it has dev:dynamic-import command. This is the
> output:
>
> karaf@root> dev:dynamic-import 287
> Enabling dynamic imports on bundle org.apache.activemq.activemq-web
> -console [287]
> Should not skip: ^
> Should not skip: ^
> Should not skip: ^
> karaf@root>
>
> But when I'm enabling dynamic import on web-console package I can't
> access localhost:8181 page anymore. I'm getting 404 error page from
> jetty.
>
> Dnia 2015-09-30, śro o godzinie 18:38 +0200, Bartłomiej Kruczyk pisze:
>> Oh, I get it now :) I'll try this tomorrow and then let you know how
>> it
>> worked. 
>>
>> Dnia 2015-09-30, śro o godzinie 14:33 +0200, Jean-Baptiste Onofré
>> pisze:
>>> bundle:dynamic-import command.
>>>
>>> I will reply to you longer asap.
>>>
>>> Regards
>>> JB
>>>
>>> On 09/30/2015 01:20 PM, Bartłomiej Kruczyk wrote:
>>>> I'm not sure if I understand correctly. There is a way to import
>>>> package via ActiveMQ web console?
>>>>
>>>> Or do you mean something else?
>>>>
>>>> Dnia 2015-09-30, śro o godzinie 13:03 +0200, Jean-Baptiste Onofré
>>>> pisze:
>>>>> Hi,
>>>>>
>>>>> Did you try a dynamic import in web console to the package ?
>>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 09/30/2015 01:00 PM, Bartłomiej Kruczyk wrote:
>>>>>> Hi, I'm using ActiveMQ on ServiceMix with Camel.
>>>>>> Messaging works fine but I can't preview Java Object messages
>>>>>> in
>>>>>> ActiveMQ web console. I'm getting following error:
>>>>>>
>>>>>> javax.jms.JMSException: Failed to build body from content.
>>>>>> Serializable
>>>>>> class not available to broker. Reason:
>>>>>> java.lang.ClassNotFoundException: com.mypackage.MyMessage not
>>>>>> found
>>>>>> by
>>>>>> org.apache.activemq.activemq-web-console [287].
>>>>>>
>>>>>> What should do to make MyMessage class visible for web
>>>>>> console?
>>>>>>

-- 
Krzysztof Sobkowiak

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member
Apache ServiceMix <http://servicemix.apache.org/> Committer & PMC Member
Senior Solution Architect @ Capgemini SSC <http://www.capgeminisoftware.pl/>


33rd Degree 4charity (http://2015.33degree.org/)