java.lang.NoClassDefFoundError: javax/annotation/Resource

Stack Overflow | Qwerky | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Standard java class not found

    Stack Overflow | 7 months ago | Qwerky
    java.lang.NoClassDefFoundError: javax/annotation/Resource
  2. 0

    [gmod-scm] [jira] Commented: (GMOD-57) GroovyWS standalone JAR fails on NoClassDefFoundError: com/sun/xml/fastinfoset/stax/StAXDocumentParser - Tomas2 (JIRA) - org.codehaus.gmod.scm - MarkMail

    markmail.org | 1 year ago
    java.lang.NoClassDefFoundError: com/sun/xml/fastinfoset/stax/StAXDocumentParser at org.apache.cxf.bus.spring.TunedDocumentLoader.loadFastinfosetDocument(TunedDocumentLoader.java:144) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.fastInfosetLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:164) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:126) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:109) at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:261) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.apache.cxf.bus.spring.BusApplicationContext.<init>(BusApplicationContext.java:88) at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:103) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:87) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:65) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:54)

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      javax/annotation/Resource

      at org.apache.cxf.common.injection.ResourceInjector.<clinit>()
    2. Apache CXF Core
      BusFactory.getThreadDefaultBus
      1. org.apache.cxf.common.injection.ResourceInjector.<clinit>(ResourceInjector.java:59)
      2. org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:222)
      3. org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:140)
      4. org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:126)
      5. org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:134)
      6. org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:40)
      7. org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36)
      8. org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32)
      9. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:146)
      10. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:122)
      11. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94)
      12. org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:83)
      13. org.apache.cxf.BusFactory.getDefaultBus(BusFactory.java:106)
      14. org.apache.cxf.BusFactory.createThreadBus(BusFactory.java:216)
      15. org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:206)
      16. org.apache.cxf.BusFactory.getThreadDefaultBus(BusFactory.java:193)
      16 frames
    3. Apache CXF Runtime JAX-WS Frontend
      ProviderImpl.createServiceDelegate
      1. org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:97)
      1 frame
    4. Java RT
      Service.<init>
      1. javax.xml.ws.Service.<init>(Service.java:77)
      1 frame