java.lang.NoClassDefFoundError

com/sun/jersey/core/provider/jaxb/AbstractRootElementProvider

Samebug tips2

org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar


rafaelrafael

Look if your classpath is correct, and check if the versions of your libraries match the version you described in your pom.xml


rafaelrafael

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3580

  • via Unknown by Evan Meagher,
  • via Unknown by Tej K,
  • Stack trace

    • java.lang.NoClassDefFoundError: com/sun/jersey/core/provider/jaxb/AbstractRootElementProvider at java.lang.ClassLoader.defineClass1(Native Method)[na:1.8.0_45] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)[na:1.8.0_45] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)[na:1.8.0_45] at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)[na:1.8.0_45] at java.net.URLClassLoader.access$100(URLClassLoader.java:73)[na:1.8.0_45] at java.net.URLClassLoader$1.run(URLClassLoader.java:368)[na:1.8.0_45] at java.net.URLClassLoader$1.run(URLClassLoader.java:362)[na:1.8.0_45] at java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_45] at java.net.URLClassLoader.findClass(URLClassLoader.java:361)[na:1.8.0_45] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_45] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_45] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_45] at java.lang.ClassLoader.defineClass1(Native Method)[na:1.8.0_45] at java.lang.ClassLoader.defineClass(ClassLoader.java:760)[na:1.8.0_45] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)[na:1.8.0_45] at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)[na:1.8.0_45] at java.net.URLClassLoader.access$100(URLClassLoader.java:73)[na:1.8.0_45] at java.net.URLClassLoader$1.run(URLClassLoader.java:368)[na:1.8.0_45] at java.net.URLClassLoader$1.run(URLClassLoader.java:362)[na:1.8.0_45] at java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_45] at java.net.URLClassLoader.findClass(URLClassLoader.java:361)[na:1.8.0_45] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_45] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_45] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_45] at java.lang.Class.forName0(Native Method)[na:1.8.0_45] at java.lang.Class.forName(Class.java:348)[na:1.8.0_45] at org.glassfish.jersey.internal.util.ReflectionHelper$7.run(ReflectionHelper.java:403)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.internal.util.ReflectionHelper$7.run(ReflectionHelper.java:398)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_45] at org.glassfish.jersey.internal.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:577)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.internal.ServiceFinder.toClassArray(ServiceFinder.java:418)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.internal.ServiceFinderBinder.configure(ServiceFinderBinder.java:90)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:172)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.hk2.utilities.binding.AbstractBinder.install(AbstractBinder.java:330)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.spidiscovery.internal.MetaInfServicesAutoDiscoverable$1.configure(MetaInfServicesAutoDiscoverable.java:74)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:172)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.model.internal.CommonConfig.configureBinders(CommonConfig.java:663)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.model.internal.CommonConfig.configureMetaProviders(CommonConfig.java:639)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.server.ResourceConfig.configureMetaProviders(ResourceConfig.java:829)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.server.ApplicationHandler.initialize(ApplicationHandler.java:453)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.server.ApplicationHandler.access$500(ApplicationHandler.java:184)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:350)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.server.ApplicationHandler$3.call(ApplicationHandler.java:347)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.internal.Errors.process(Errors.java:315)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.internal.Errors.process(Errors.java:297)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.internal.Errors.processWithException(Errors.java:255)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:347)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:390)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:172)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:364)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at javax.servlet.GenericServlet.init(GenericServlet.java:244)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:612)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:395)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:871)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at com.codahale.metrics.jetty9.InstrumentedHandler.doStart(InstrumentedHandler.java:103)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.server.handler.RequestLogHandler.doStart(RequestLogHandler.java:140)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT] at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)[lux-service-0.1-SNAPSHOT.jar:0.1-SNAPSHOT]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    pulse00pulse00
    6 times, last one
    guizmaiiguizmaii
    2 times, last one
    andyglickandyglick
    Once,
    serious2monkeysserious2monkeys
    60 times, last one
    189 more bugmates