java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet Error

classic Classic list List threaded Threaded
1 message Options
Gene Pullen Gene Pullen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet Error

Using jolokia-jvm-1.3.4-agent.jar with ActiveMQ 5.13.0 application running with JDK 1.8 we get the error below.

Using the same jolokia-jvm-1.3.4-agent.jar with ActiveMQ 5.7.0 application running with JDK 1.6 works fine.

Any suggestions on what may be the problem or how to troubleshoot would be appreciated.

2017-02-16 13:15:52,101 | WARN  | FAILED jolokia-agent@c61e72f3==org.jolokia.http.AgentServlet,1,false: java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet | org.eclipse.jetty.util.component.AbstractLifeCycle | WrapperSimpleAppMain
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServlet
                at java.lang.ClassLoader.defineClass1(Native Method)[:1.8.0_72]
                at java.lang.ClassLoader.defineClass(ClassLoader.java:760)[:1.8.0_72]
                at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)[:1.8.0_72]
                at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)[:1.8.0_72]
                at java.net.URLClassLoader.access$100(URLClassLoader.java:73)[:1.8.0_72]
                at java.net.URLClassLoader$1.run(URLClassLoader.java:368)[:1.8.0_72]
                at java.net.URLClassLoader$1.run(URLClassLoader.java:362)[:1.8.0_72]
                at java.security.AccessController.doPrivileged(Native Method)[:1.8.0_72]
                at java.net.URLClassLoader.findClass(URLClassLoader.java:361)[:1.8.0_72]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[:1.8.0_72]
                at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[:1.8.0_72]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:411)[:1.8.0_72]
                at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.8.0_72]
                at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:450)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:403)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.Loader.loadClass(Loader.java:86)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.servlet.BaseHolder.doStart(BaseHolder.java:95)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:338)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:888)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:391)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:449)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.server.Server.start(Server.java:387)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.server.Server.doStart(Server.java:354)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[jetty-all-9.2.13.v20150730.jar:9.2.13.v20150730]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_72]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_72]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_72]
                at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_72]
                at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)[spring-core-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.config.MethodInvokingBean.invokeWithTargetException(MethodInvokingBean.java:119)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:106)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1631)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:736)[spring-beans-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:759)[spring-context-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)[spring-context-4.1.8.RELEASE.jar:4.1.8.RELEASE]
                at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64)[xbean-spring-3.18.jar:3.18]
                at org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52)[xbean-spring-3.18.jar:3.18]
                at org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:104)[activemq-spring-5.13.0.jar:5.13.0]
                at org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:104)[activemq-spring-5.13.0.jar:5.13.0]
                at org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:67)[activemq-spring-5.13.0.jar:5.13.0]
                at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71)[activemq-broker-5.13.0.jar:5.13.0]
                at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54)[activemq-broker-5.13.0.jar:5.13.0]
                at org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:87)[activemq-console-5.13.0.jar:5.13.0]
                at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.13.0.jar:5.13.0]
                at org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:154)[activemq-console-5.13.0.jar:5.13.0]
                at org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:63)[activemq-console-5.13.0.jar:5.13.0]
                at org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:104)[activemq-console-5.13.0.jar:5.13.0]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_72]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_72]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_72]
                at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_72]
                at org.apache.activemq.console.Main.runTaskClass(Main.java:262)[activemq.jar:5.13.0]
                at org.apache.activemq.console.Main.main(Main.java:115)[activemq.jar:5.13.0]
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.8.0_72]
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[:1.8.0_72]
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.8.0_72]
                at java.lang.reflect.Method.invoke(Method.java:498)[:1.8.0_72]
                at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240)[wrapper.jar:3.2.3]
                at java.lang.Thread.run(Thread.java:745)[:1.8.0_72]

Loading...