Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8551

wsdl2java: NoClassDefFoundError: javax/jws/soap/SOAPBinding$Style with Java 11

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.4.3
    • 3.4.5
    • Tooling
    • None
    • Windows 10

      openjdk version "11.0.5" 2019-10-15
      OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.5+10)
      OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.5+10, mixed mode)

    • Unknown

    Description

      Running wsdl2java with JDK 11 causes this exception:

      Exception in thread "main" java.lang.NoClassDefFoundError: javax/jws/soap/SOAPBinding$Style
              at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.isRPCEncoded(JAXWSDefinitionBuilder.java:165)
              at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.checkSupported(JAXWSDefinitionBuilder.java:138)
              at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:87)
              at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:61)
              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:187)
              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:156)
              at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:402)
              at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:105)
              at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113)
              at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86)
              at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:185)
      Caused by: java.lang.ClassNotFoundException: javax.jws.soap.SOAPBinding$Style
              at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
              at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
              ... 11 more
       

      Attachments

        1. foobar_version.wsdl
          2 kB
          Christof Schablinski
        2. service_types_foobar_common.xsd
          4 kB
          Christof Schablinski
        3. service_types_foobar_version.xsd
          1 kB
          Christof Schablinski

        Activity

          People

            coheigea Colm O hEigeartaigh
            cschabl Christof Schablinski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: