activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christian Schneider (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (AMQ-6020) Webconsole does not work in karaf
Date Mon, 19 Dec 2016 13:06:58 GMT

     [ https://issues.apache.org/jira/browse/AMQ-6020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Christian Schneider reassigned AMQ-6020:
----------------------------------------

    Assignee: Christian Schneider

> Webconsole does not work in karaf
> ---------------------------------
>
>                 Key: AMQ-6020
>                 URL: https://issues.apache.org/jira/browse/AMQ-6020
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: webconsole
>    Affects Versions: 5.x
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: 5.11.3
>
>
> Compile from master
> feature:repo-add activemq 5.13-SNAPSHOT
> feature:install activemq-broker activemq-web-console 
> The web console bundle is active and web:list shows:
> ID | State       | Web-State   | Level | Web-ContextPath | Name
> -------------------------------------------------------------------------------------------------
> 62 | Active      | Deployed    | 80    | /activemqweb    | activemq-web-console (5.13.0.SNAPSHOT)
> When I go to 
> http://localhost:8181/activemqweb/
> I get unable to connect. So the port is not active. Maybe pax web does not activate jetty
because of the exception below.
> In the log I see this exception:
> ClassNotFoundException: javax.xml.transform.stax.StAXSource
> Full trace here:
> 2015-10-23 10:48:20,428 | ERROR | pool-45-thread-1 | DispatcherServlet              
 | 62 - org.apache.activemq.activemq-web-console - 5.13.0.SNAPSHOT | Context initialization
failed
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter': Instantiation
of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter]:
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/transform/stax/StAXSource
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1099)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1044)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:291)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.DispatcherServlet.createDefaultStrategy(DispatcherServlet.java:849)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.DispatcherServlet.getDefaultStrategies(DispatcherServlet.java:818)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.DispatcherServlet.initHandlerAdapters(DispatcherServlet.java:626)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.DispatcherServlet.initStrategies(DispatcherServlet.java:483)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.DispatcherServlet.onRefresh(DispatcherServlet.java:471)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet.onApplicationEvent(FrameworkServlet.java:802)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet$ContextRefreshListener.onApplicationEvent(FrameworkServlet.java:1118)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet$ContextRefreshListener.onApplicationEvent(FrameworkServlet.java:1114)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.event.GenericApplicationListenerAdapter.onApplicationEvent(GenericApplicationListenerAdapter.java:52)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.event.SourceFilteringListener.onApplicationEventInternal(SourceFilteringListener.java:100)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.event.SourceFilteringListener.onApplicationEvent(SourceFilteringListener.java:69)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:151)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:128)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:331)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:775)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:244)[57:javax.servlet-api:3.1.0]
> 	at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612)[107:org.eclipse.jetty.servlet:9.2.10.v20150310]
> 	at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395)[107:org.eclipse.jetty.servlet:9.2.10.v20150310]
> 	at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871)[107:org.eclipse.jetty.servlet:9.2.10.v20150310]
> 	at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)[107:org.eclipse.jetty.servlet:9.2.10.v20150310]
> 	at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)[106:org.eclipse.jetty.server:9.2.10.v20150310]
> 	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doStart(HttpServiceContext.java:245)[126:org.ops4j.pax.web.pax-web-jetty:4.2.2]
> 	at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[109:org.eclipse.jetty.util:9.2.10.v20150310]
> 	at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$1.start(JettyServerImpl.java:258)[126:org.ops4j.pax.web.pax-web-jetty:4.2.2]
> 	at org.ops4j.pax.web.service.internal.HttpServiceStarted.end(HttpServiceStarted.java:1047)[128:org.ops4j.pax.web.pax-web-runtime:4.2.2]
> 	at org.ops4j.pax.web.service.internal.HttpServiceProxy.end(HttpServiceProxy.java:413)[128:org.ops4j.pax.web.pax-web-runtime:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.RegisterWebAppVisitorWC.end(RegisterWebAppVisitorWC.java:380)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.model.WebApp.accept(WebApp.java:692)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.register(WebAppPublisher.java:237)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:182)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher$WebAppDependencyListener.addingService(WebAppPublisher.java:135)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:941)[org.osgi.core-6.0.0.jar:]
> 	at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:870)[org.osgi.core-6.0.0.jar:]
> 	at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256)[org.osgi.core-6.0.0.jar:]
> 	at org.osgi.util.tracker.AbstractTracked.trackInitial(AbstractTracked.java:183)[org.osgi.core-6.0.0.jar:]
> 	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:318)[org.osgi.core-6.0.0.jar:]
> 	at org.osgi.util.tracker.ServiceTracker.open(ServiceTracker.java:261)[org.osgi.core-6.0.0.jar:]
> 	at org.ops4j.pax.web.extender.war.internal.WebAppPublisher.publish(WebAppPublisher.java:101)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.WebObserver.deploy(WebObserver.java:219)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.WebObserver$1.doStart(WebObserver.java:179)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.extender.SimpleExtension.start(SimpleExtension.java:59)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at org.ops4j.pax.web.extender.war.internal.extender.AbstractExtender$1.run(AbstractExtender.java:280)[124:org.ops4j.pax.web.pax-web-extender-war:4.2.2]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_60]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_60]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_60]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
> 	at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
> Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter]: Constructor
threw exception; nested exception is java.lang.NoClassDefFoundError: javax/xml/transform/stax/StAXSource
> 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1092)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	... 60 more
> Caused by: java.lang.NoClassDefFoundError: javax/xml/transform/stax/StAXSource
> 	at org.springframework.http.converter.xml.SourceHttpMessageConverter.<clinit>(SourceHttpMessageConverter.java:74)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.<init>(AnnotationMethodHandlerAdapter.java:203)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.8.0_60]
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[:1.8.0_60]
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.8.0_60]
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:422)[:1.8.0_60]
> 	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)[62:org.apache.activemq.activemq-web-console:5.13.0.SNAPSHOT]
> 	... 62 more
> Caused by: java.lang.ClassNotFoundException: javax.xml.transform.stax.StAXSource not
found by org.apache.activemq.activemq-web-console [62]
> 	at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1558)[org.apache.felix.framework-5.2.0.jar:]
> 	at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:79)[org.apache.felix.framework-5.2.0.jar:]
> 	at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1998)
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_60]
> 	... 69 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message