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

codegen not java10 compat

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.2.4
    • Fix Version/s: None
    • Component/s: Tooling
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      Generating code on JDK10 will fail with:

      Caused by: java.lang.ClassNotFoundException: javax.xml.ws.Service
          at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass (SelfFirstStrategy.java:50)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass (ClassRealm.java:271)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:247)
          at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass (ClassRealm.java:239)
          at org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer.isJaxws22 (JAXWSContainer.java:64)
          at org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer.getServiceTarget (JAXWSContainer.java:61)
          at org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer.validate (JAXWSContainer.java:68)
          at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl (WSDLToJavaContainer.java:172)
          at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute (WSDLToJavaContainer.java:164)
          at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute (WSDLToJavaContainer.java:412)
          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.maven_plugin.wsdl2java.WSDL2JavaMojo.generate (WSDL2JavaMojo.java:414)
          at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute (AbstractCodegenMoho.java:279)
          at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute (WSDL2JavaMojo.java:511)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:200)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:196)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:514)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1135)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
          at java.lang.Thread.run (Thread.java:844)
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ffang Freeman Yue Fang
                Reporter:
                davidkarlsen David J. M. Karlsen
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: