Uploaded image for project: 'JBoss Enterprise Application Platform 6'
  1. JBoss Enterprise Application Platform 6
  2. JBPAPP6-867

Need additional dependencies in jbossws-cxf-client module

    XMLWordPrintable

    Details

    • Affects:
      Release Notes

      Description

      When running a standalone client via JBoss modules like so:

      java -jar $JBOSS_HOME/jboss-modules.jar -mp $JBOSS_HOME/modules/ -cp ws-client.jar -dep org.jboss.ws.cxf.jbossws-cxf-client com.redhat.gss.ws.TestClient
      

      it seems that there are a few dependencies that are missing that should be included in the org.jboss.ws.cxf.jbossws-cxf-client module.

      file:/Users/klape/support/00677182/InBandSOAPHeader.wsdl
      Exception in thread "main" java.lang.LinkageError: ClassCastException: attempting to castjar:file:/Users/klape/jboss/product-distributions2/modules/javax/xml/ws/api/main/jboss-jaxws-api_2.2_spec-2.0.1.Final-redhat-1.jar!/javax/xml/ws/spi/Provider.classtojar:file:/Library/Java/JavaVirtualMachines/1.6.0_26-b03-383.jdk/Contents/Classes/classes.jar!/javax/xml/ws/spi/Provider.class
              at javax.xml.ws.spi.Provider.provider(Provider.java:94)
              at javax.xml.ws.Service.<init>(Service.java:56)
              at javax.xml.ws.Service.create(Service.java:680)
              at com.redhat.gss.ws.TestClient.main(InBandSHClient.java:63)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.jboss.modules.Module.run(Module.java:270)
              at org.jboss.modules.Main.main(Main.java:294)
      

      It also seems to want to use the JDK's web service stack as well.

      If I make the following changes, it works (and uses JBossWS-CXF):

      diff --git a/modules/org/jboss/ws/cxf/jbossws-cxf-client/main/module.xml b/modules/org/jboss/ws/cxf/jbossws-cxf-client/main/module.xml
      index 80e7c7a..94669ee 100644
      --- a/modules/org/jboss/ws/cxf/jbossws-cxf-client/main/module.xml
      +++ b/modules/org/jboss/ws/cxf/jbossws-cxf-client/main/module.xml
      @@ -36,7 +36,8 @@
               <!-- JAXB API + REF IMPL -->
               <module name="javax.xml.bind.api" export="true"/>
               <module name="com.sun.xml.bind" export="true" services="export"/>
      -        <module name="javax.xml.ws.api" />
      +        <module name="javax.xml.ws.api" export="true"/>
      +        <module name="javax.jws.api" export="true"/>
               <!-- WSDL4J API -->
               <module name="javax.wsdl4j.api" export="true"/>
               <!-- JBossWS API -->
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ropalka Richard Opalka
                  Reporter:
                  klape Kyle Lape
                • Votes:
                  2 Vote for this issue
                  Watchers:
                  9 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: