Uploaded image for project: 'Wise'
  1. Wise
  2. WISE-36

Wise has a problem running 3.0.3 client due to jaxws-rt.jar

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 0.9
    • None
    • core
    • None

      jaxws-rt.jar is needed because it contains wsimport. According to linked forum post it cause this exception if it is included in class_path used to run client. The problem is that wise application contain both wsimport phase and run client phase....
      java.lang.IllegalStateException: Failed to load javax.xml.ws.spi.Provider: com.sun.xml.ws.spi.ProviderImpl
      [java] at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:94)
      [java] at javax.xml.ws.spi.Provider.provider(Provider.java:80)
      [java] at javax.xml.ws.Service.<init>(Service.java:79)
      [java] at wise_samples.helloworld.HelloWorldWSService.<init>(HelloWorldWSService.java:45)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      [java] at java.lang.Class.newInstance0(Class.java:350)
      [java] at java.lang.Class.newInstance(Class.java:303)
      [java] at it.javalinux.wise.core.client.impl.reflection.WSDynamicClientImpl.processServices(WSDynamicClientImpl.java:135)
      [java] at it.javalinux.wise.samples.HelloWorldClient.main(HelloWorldClient.java:50)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
      [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
      [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
      [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
      [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
      [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
      [java] at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
      [java] at org.apache.tools.ant.Task.perform(Task.java:348)
      [java] at org.apache.tools.ant.Target.execute(Target.java:357)
      [java] at org.apache.tools.ant.Target.performTasks(Target.java:385)
      [java] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
      [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
      [java] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
      [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
      [java] at org.apache.tools.ant.Main.runBuild(Main.java:698)
      [java] at org.apache.tools.ant.Main.startAnt(Main.java:199)
      [java] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
      [java] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
      [java] Caused by: java.lang.ExceptionInInitializerError
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      [java] at java.lang.Class.newInstance0(Class.java:350)
      [java] at java.lang.Class.newInstance(Class.java:303)
      [java] at javax.xml.ws.spi.ProviderLoader.loadProvider(ProviderLoader.java:89)
      [java] ... 36 more
      [java] Caused by: javax.xml.ws.WebServiceException: Error creating JAXBContext for W3CEndpointReference.
      [java] at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:222)
      [java] at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:218)
      [java] at java.security.AccessController.doPrivileged(Native Method)
      [java] at com.sun.xml.ws.spi.ProviderImpl.getEPRJaxbContext(ProviderImpl.java:217)
      [java] at com.sun.xml.ws.spi.ProviderImpl.<clinit>(ProviderImpl.java:88)
      [java] ... 43 more
      [java] Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions
      [java] Two classes have the same XML type name "address". Use @XmlType.name and @XmlType.namespace to assign different names to them.
      [java] this problem is related to the following location:
      [java] at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address
      [java] at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Address com.sun.xml.ws.developer.MemberSubmissionEndpointReference.addr
      [java] at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
      [java] this problem is related to the following location:
      [java] at javax.xml.ws.wsaddressing.W3CEndpointReference$Address
      [java] at private javax.xml.ws.wsaddressing.W3CEndpointReference$Address javax.xml.ws.wsaddressing.W3CEndpointReference.address
      [java] at javax.xml.ws.wsaddressing.W3CEndpointReference
      [java] Two classes have the same XML type name "elements". Use @XmlType.name and @XmlType.namespace to assign different names to them.
      [java] this problem is related to the following location:
      [java] at com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements
      [java] at public com.sun.xml.ws.developer.MemberSubmissionEndpointReference$Elements com.sun.xml.ws.developer.MemberSubmissionEndpointReference.referenceProperties
      [java] at com.sun.xml.ws.developer.MemberSubmissionEndpointReference
      [java] this problem is related to the following location:
      [java] at javax.xml.ws.wsaddressing.W3CEndpointReference$Elements
      [java] at private javax.xml.ws.wsaddressing.W3CEndpointReference$Elements javax.xml.ws.wsaddressing.W3CEndpointReference.referenceParameters
      [java] at javax.xml.ws.wsaddressing.W3CEndpointReference
      [java]
      [java] at com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:102)
      [java] at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:438)
      [java] at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
      [java] at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
      [java] at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:117)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [java] at java.lang.reflect.Method.invoke(Method.java:585)
      [java] at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:211)
      [java] at javax.xml.bind.ContextFinder.find(ContextFinder.java:372)
      [java] at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
      [java] at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
      [java] at com.sun.xml.ws.spi.ProviderImpl$2.run(ProviderImpl.java:220)
      [java] ... 47 more

              smaestri@redhat.com Stefano Maestri
              smaestri@redhat.com Stefano Maestri
              Archiver:
              rhn-support-adandapa Aitik Dandapat (Inactive)

                Created:
                Updated:
                Resolved:
                Archived: