java.lang.NoClassDefFoundError: com/sun/xml/bind/api/JAXBRIContext

java-forum.org | 8 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to Rafael Fischer Viola and rafael . Or join the community to write better ones.
  1. 1

    JAX WS und Tomcat 7

    java-forum.org | 8 months ago
    java.lang.NoClassDefFoundError: com/sun/xml/bind/api/JAXBRIContext
  2. 0

    Creating Maven Web Service on Tomcat

    Stack Overflow | 4 years ago | ekremk
    java.lang.NoClassDefFoundError: org/glassfish/ha/store/api/BackingStoreException at com.sun.xml.ws.transport.http.servlet.ServletAdapter.<init>(ServletAdapter.java:95)
  3. 0

    Deploying JAX-WS webservice as War in Apache Tomcat

    Stack Overflow | 4 years ago | tejas
    java.lang.NoClassDefFoundError: org/glassfish/ha/store/api/BackingStoreException at com.sun.xml.ws.transport.http.servlet.ServletAdapter.<init> (ServletAdapter.java:95) at com.sun.xml.ws.transport.http.servlet.ServletAdapterList.createHttpAdapter(ServletAdapterList.java:77)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    samebug tip
    A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.
  6. 0
    samebug tip
    If you're using Hibernate, this indicates you're missing FasterXML Classmate dependency, which you can add with the following: <groupId>com.fasterxml</groupId> <artifactId>classmate</artifactId> <version>1.0</version>
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.sun.xml.bind.api.JAXBRIContext

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ClassLoader.loadClass
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    6 frames
  3. JAX-WS RI Runtime Bundle
    WSServletContainerInitializer.onStartup
    1. com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:203)
    2. com.sun.xml.ws.server.EndpointFactory.createSEIModel(EndpointFactory.java:343)
    3. com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:205)
    4. com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:513)
    5. com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:257)
    6. com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:151)
    7. com.sun.xml.ws.transport.http.servlet.WSServletContextListener.parseAdaptersAndCreateDelegate(WSServletContextListener.java:131)
    8. com.sun.xml.ws.transport.http.servlet.WSServletContainerInitializer.onStartup(WSServletContainerInitializer.java:65)
    8 frames
  4. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
    2. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    3. org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
    4. org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:774)
    5. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    6. org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1033)
    7. org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:291)
    8. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    9. org.apache.catalina.core.StandardService.startInternal(StandardService.java:443)
    10. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    11. org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:727)
    12. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
    13. org.apache.catalina.startup.Catalina.start(Catalina.java:620)
    13 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:601)
    4 frames
  6. Glassfish Core
    Bootstrap.main
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:303)
    2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:431)
    2 frames