JDK-8172133 : JAX-WS wsimport ant task failing with -Xbootclasspath/p
  • Type: Bug
  • Component: xml
  • Sub-Component: jax-ws
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-12-30
  • Updated: 2017-02-10
  • Resolved: 2017-01-19
Related Reports
Relates :  
Description
When running with com.sun.xml.ws:jaxws-tools:2.3.0-b161121.2027, the wsimport fails because bootclasspath/p isn't allowed with JDK9.

java]      [java]      [java] [clientgen] javac: option -Xbootclasspath/p: not allowed with target 1.9
 wsimport failed
     [java]      [java]      [java] 	at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:220)
     [java]      [java]      [java] 	at weblogic.wsee.tools.anttasks.ClientGenFacadeTask.execute(ClientGenFacadeTask.java:265)
     [java]      [java]      [java] 	at weblogic.wsee.tools.anttasks.ClientGenTask.execute(ClientGenTask.java:373)
     [java]      [java]      [java] 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
     [java]      [java]      [java] 	at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
     [java]      [java]      [java] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     [java]      [java]      [java] 	at java.base/java.lang.reflect.Method.invoke(Method.java:538)
     [java]      [java]      [java] 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
     [java]      [java]      [java] 	at org.apache.tools.ant.Task.perform(Task.java:348)
     [java]      [java]      [java] 	at org.apache.tools.ant.Target.execute(Target.java:435)
     [java]      [java]      [java] 	at org.apache.tools.ant.Target.performTasks(Target.java:456)
     [java]      [java]      [java] 	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
     [java]      [java]      [java] 	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
     [java]      [java]      [java] 	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
     [java]      [java]      [java] 	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
     [java]      [java]      [java] 	at org.apache.tools.ant.Main.runBuild(Main.java:851)
     [java]      [java]      [java] 	at org.apache.tools.ant.Main.startAnt(Main.java:235)
     [java]      [java]      [java] 	at org.apache.tools.ant.Main.start(Main.java:198)
     [java]      [java]      [java] 	at org.apache.tools.ant.Main.main(Main.java:286)
     [java]      [java]      [java] Caused by: wsimport failed
     [java]      [java]      [java] 	at com.sun.tools.ws.ant.WsTask2.execute(WsTask2.java:432)
     [java]      [java]      [java] 	at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:583)
     [java]      [java]      [java] 	at weblogic.wsee.tools.clientgen.jaxws.ClientGenImpl.execute(ClientGenImpl.java:214)
     [java]      [java]      [java] 	... 18 more
     [java]      [java]      [java] 

Comments
From: Lukas Jungmann Subject: RE: [JBS] {Commented} (JDK-8172133) JAX-WS wsimport ant task failing with -Xbootclasspath/p I realized this backwards compatibility thing after writing that comment and have a fix for it in my head. I'll test and push it to master tomorrow.
19-01-2017

Note that on JDK 9 you should be calling 'com.sun.tools.ws.ant.WsImport' and not 'com.sun.tools.ws.ant.WsImport2', the same applies to WsGen (not WsGen2)
19-01-2017

fixed in jaxws-master
19-01-2017

From what I can tell then this is an issue for the JAX-WS ant task from the upstream Metro project (it's not in the JDK).
02-01-2017