5 Replies Latest reply on Oct 15, 2009 4:24 AM by Alessio Soldano

    wsconsume does not work with jdk 1.6 in 3.2.0, due to missin

    Alexandros Karypidis Novice


      When I try to use wsconsume with a 1.6 JDK, I get the error:

      wsdl2java -compile -d D:\workspace\project\output -verbose
       -classdir D:\workspace\project\output
      wsdl2java - Apache CXF 2.2.3
      Failed to invoke WSDLToJava
      java.util.ServiceConfigurationError: com.sun.tools.xjc.Plugin:
       Provider com.sun.tools.xjc.addon.apache_cxf.bug671.Bug671Plugin not found
       at java.util.ServiceLoader.fail(ServiceLoader.java:214)
       at java.util.ServiceLoader.access$400(ServiceLoader.java:164)
       at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:350)
       at java.util.ServiceLoader$1.next(ServiceLoader.java:421)
       at com.sun.tools.xjc.Options.findServices(Options.java:910)

      This class appears to be a workaround for fixing a JDK 1.6 issue, that was included in CXF 2.2.3 https://issues.apache.org/jira/browse/CXF-1880. Apparently the packaging of CXF 2.2.3 into 3.2.0 failed to include the workaround?