Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-27946

An internal error occurred during: "Get WSDL". java.lang.NoClassDefFoundError: javax/annotation/Resource

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 4.19.1.Final
    • 4.21.x
    • webservices
    • None

    Description

      While trying to create and invoke a JAX-WS request using wsdl (local one in file) in WS Tester I am getting a NoClassDefFoundError exception and other one.

      Exception I get while trying to finish creating of JAX-WS from WSDL in WE Tester:

      null
      org.eclipse.core.jobs
      Error
      Thu Jul 15 13:53:05 CEST 2021
      An internal error occurred during: "Get WSDL".
      
      java.lang.NoClassDefFoundError: javax/annotation/Resource
      	at org.apache.cxf.common.injection.ResourceInjector.<clinit>(ResourceInjector.java:59)
      	at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:220)
      	at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:140)
      	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:131)
      	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:139)
      	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:40)
      	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36)
      	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32)
      	at org.jboss.wise.core.client.impl.CXFDynamicClient.prepare(CXFDynamicClient.java:61)
      	at org.jboss.wise.core.client.impl.reflection.WSDynamicClientImpl.<init>(WSDynamicClientImpl.java:118)
      	at org.jboss.wise.core.client.impl.reflection.WSDynamicClientImpl.<init>(WSDynamicClientImpl.java:102)
      	at org.jboss.wise.core.client.impl.CXFDynamicClient.<init>(CXFDynamicClient.java:48)
      	at org.jboss.wise.core.client.impl.CXFDynamicClientBuilder.createClient(CXFDynamicClientBuilder.java:37)
      	at org.jboss.wise.core.client.impl.reflection.builder.ReflectionBasedWSDynamicClientBuilder.build(ReflectionBasedWSDynamicClientBuilder.java:143)
      	at org.jboss.wise.ui.internal.util.WiseUtil.getSampleSOAPInputMessageFromWISE(WiseUtil.java:77)
      	at org.jboss.tools.ws.jaxws.ui.view.JAXWSType.getWSDLSpecifics(JAXWSType.java:353)
      	at org.jboss.tools.ws.jaxws.ui.view.JAXWSType$1GetWSDLSpecificsAction$1.run(JAXWSType.java:240)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      Caused by: java.lang.ClassNotFoundException: javax.annotation.Resource cannot be found by org.jboss.tools.ws.wise.ui_2.2.0.v20210531-1657
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:519)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
      	... 18 more
      
      

      and exception I get while trying to invoke the request, but I guess that this in only a result of previous exception.

      null
      org.eclipse.core.jobs
      Error
      Thu Jul 15 13:53:05 CEST 2021
      An internal error occurred during: "Get WSDL".
      
      java.lang.NoClassDefFoundError: javax/annotation/Resource
      	at org.apache.cxf.common.injection.ResourceInjector.<clinit>(ResourceInjector.java:59)
      	at org.apache.cxf.bus.extension.ExtensionManagerImpl.loadAndRegister(ExtensionManagerImpl.java:220)
      	at org.apache.cxf.bus.extension.ExtensionManagerImpl.activateAllByType(ExtensionManagerImpl.java:140)
      	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:131)
      	at org.apache.cxf.bus.extension.ExtensionManagerBus.<init>(ExtensionManagerBus.java:139)
      	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:40)
      	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:36)
      	at org.apache.cxf.bus.CXFBusFactory.createBus(CXFBusFactory.java:32)
      	at org.jboss.wise.core.client.impl.CXFDynamicClient.prepare(CXFDynamicClient.java:61)
      	at org.jboss.wise.core.client.impl.reflection.WSDynamicClientImpl.<init>(WSDynamicClientImpl.java:118)
      	at org.jboss.wise.core.client.impl.reflection.WSDynamicClientImpl.<init>(WSDynamicClientImpl.java:102)
      	at org.jboss.wise.core.client.impl.CXFDynamicClient.<init>(CXFDynamicClient.java:48)
      	at org.jboss.wise.core.client.impl.CXFDynamicClientBuilder.createClient(CXFDynamicClientBuilder.java:37)
      	at org.jboss.wise.core.client.impl.reflection.builder.ReflectionBasedWSDynamicClientBuilder.build(ReflectionBasedWSDynamicClientBuilder.java:143)
      	at org.jboss.wise.ui.internal.util.WiseUtil.getSampleSOAPInputMessageFromWISE(WiseUtil.java:77)
      	at org.jboss.tools.ws.jaxws.ui.view.JAXWSType.getWSDLSpecifics(JAXWSType.java:353)
      	at org.jboss.tools.ws.jaxws.ui.view.JAXWSType$1GetWSDLSpecificsAction$1.run(JAXWSType.java:240)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
      Caused by: java.lang.ClassNotFoundException: javax.annotation.Resource cannot be found by org.jboss.tools.ws.wise.ui_2.2.0.v20210531-1657
      	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:519)
      	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:171)
      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
      	... 18 more
      
      

      Attachments

        Activity

          People

            stephane.bouchet Stephane Bouchet
            odockal@redhat.com Ondrej Dockal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: