You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Romain Quinio (Jira)" <ji...@apache.org> on 2022/07/13 13:27:00 UTC

[jira] [Commented] (CXF-8713) cxf-xjc-plugin: 3.3.1 works with OpenJDK 11.0.9 but fails with OpenJDK 11.0.15 (tamurin)

    [ https://issues.apache.org/jira/browse/CXF-8713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17566316#comment-17566316 ] 

Romain Quinio commented on CXF-8713:
------------------------------------

We noticed the same issue when upgrading to JDK 11.0.15, no issue with Oracle JDK 11.0.13.

Seems to only happen on Windows (a colleague on Linux doesn't have the issue).

It fails ont the first classpath arg of the command line "-classpath file:\C:\Users\xxx\.m2\repository\org\jvnet\jaxb2_commons\jaxb2-fluent-api\3.0\jaxb2-fluent-api-3.0.jar"

 
[INFO] Building jar: C:\Users\xxx\AppData\Local\Temp\cxf-xjc-plugin11581355492962204497.jar [DEBUG] Exception in thread "main" com.sun.tools.xjc.BadCommandLineException: "file:\C:\Users\xxx\.m2\repository\org\jvnet\jaxb2_commons\jaxb2-fluent-api\3.0\jaxb2-fluent-api-3.0.jar" is not a valid file name: \{1} [DEBUG] at com.sun.tools.xjc.Options.parseArgument(Options.java:515) [DEBUG] at com.sun.tools.xjc.Options.parseArguments(Options.java:827) [DEBUG] at org.apache.cxf.maven_plugin.XSDToJavaRunner.run(XSDToJavaRunner.java:170) [DEBUG] at org.apache.cxf.maven_plugin.XSDToJavaRunner.main(XSDToJavaRunner.java:360) [DEBUG] Caused by: java.net.MalformedURLException: Invalid file path [DEBUG] at java.base/java.io.File.toURL(File.java:695) [DEBUG] at com.sun.tools.xjc.Options.parseArgument(Options.java:512) [DEBUG] ... 3 more  [ERROR] Failed to execute goal org.apache.cxf:cxf-xjc-plugin:3.3.1:xsdtojava (generate-wss) on project xxx: [ERROR] Exit code: 1 [ERROR] Command line was: "C:\Program Files\Java\jdk-11.0.15\bin\java.exe" --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED -jar C:\Users\xxx\AppData\Local\Temp\cxf-xjc-plugin11581355492962204497.jar -classpath file:/C:/Users/xxx/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-fluent-api/3.0/jaxb2-fluent-api-3.0.jar -classpath file:/C:/Users/xxx/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics-runtime/0.12.0/jaxb2-basics-runtime-0.12.0.jar -classpath file:/C:/Users/xxx/.m2/repository/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3.jar -classpath file:/C:/Users/xxx/.m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar -classpath file:/C:/Users/xxx/.m2/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar -classpath file:/C:/Users/xxx/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics/0.12.0/jaxb2-basics-0.12.0.jar -classpath file:/C:/Users/xxx/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics-tools/0.12.0/jaxb2-basics-tools-0.12.0.jar -classpath file:/C:/Users/xxx/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar -classpath file:/C:/Users/xxx/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.7/jcl-over-slf4j-1.7.7.jar -classpath file:/C:/Users/xxx/.m2/repository/com/google/code/javaparser/javaparser/1.0.11/javaparser-1.0.11.jar -classpath file:/C:/Users/xxx/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics-runtime/0.12.0/jaxb2-basics-runtime-0.12.0.jar -classpath file:/C:/Users/xxx/.m2/repository/org/jvnet/jaxb2_commons/jaxb2-namespace-prefix/1.1/jaxb2-namespace-prefix-1.1.jar -b  -extension -Xfluent-api -Xnamespace-prefix -verbose -encoding UTF-8 -d C:\Users\xxx\dev\
[ERROR]

> cxf-xjc-plugin: 3.3.1 works with OpenJDK 11.0.9 but fails with OpenJDK 11.0.15 (tamurin)
> ----------------------------------------------------------------------------------------
>
>                 Key: CXF-8713
>                 URL: https://issues.apache.org/jira/browse/CXF-8713
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Hilbert Benut
>            Priority: Major
>
> Hi,
> I have this configuration (see conf). Everything works fine with OpenJDK 11.0.9, but fails
> when JDK is  changed to OpenJDK 11.0.15 (Temurin){*}{*}
>  
> *conf:*
> cxf-xjc-plugin.version is 3.3.1
> <plugin>
>     <groupId>org.apache.cxf</groupId>
>     <artifactId>cxf-xjc-plugin</artifactId>
>     <version>${cxf-xjc-plugin.version}</version>
>     <executions>
>         <execution>
>             <id>generate-sources</id>
>             <phase>generate-sources</phase>
>             <goals>
>                 <goal>xsdtojava</goal>
>             </goals>
>             <configuration>
>                 <sourceRoot>${project.build.directory}/generated-sources/cxfxjc</sourceRoot>
>                 <laxSchemaValidation>true</laxSchemaValidation>
>                 <xsdOptions>
>                     <xsdOption>
>                         <xsd>${project.basedir}/src/main/resources/xsd/my_file_0.xsd</xsd>
>                         <packagename>my.site.generated.datatypes</packagename>
>                         <extension>true</extension>
>                         <extensionArgs>
>                             <arg>-Xts:style:multiline</arg>
>                         </extensionArgs>
>                         <bindingFiles>
>                             <bindingFile>${project.basedir}/src/main/resources/xsd/my_file_0.xml</bindingFile>
>                         </bindingFiles>
>                     </xsdOption>
>                     <xsdOption>
>                         <xsd>${project.basedir}/src/main/resources/xsd/my_file_1.xsd</xsd>
>                         <packagename>my.site.generated.datatypes2</packagename>
>                         <extension>true</extension>
>                         <extensionArgs>
>                             <arg>-Xts:style:multiline</arg>
>                         </extensionArgs>
>                         <bindingFiles>
>                             <bindingFile>${project.basedir}/src/main/resources/xsd/my_file_1.xml</bindingFile>
>                         </bindingFiles>
>                     </xsdOption>
>                 </xsdOptions>
>             </configuration>
>         </execution>
>     </executions>
>     <configuration>
>         <extensions>
>             <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:3.2.1</extension>
>             <extension>org.jvnet.jaxb2_commons:jaxb2-basics:1.11.1</extension>
>             <extension>org.apache.cxf.xjcplugins:cxf-xjc-ts:3.3.1</extension>
>         </extensions>
>     </configuration>
> </plugin>
>  
> *error I get [note paths were changed or cut]*
>  
> [ERROR] Failed to execute goal org.apache.cxf:cxf-xjc-plugin:3.3.1:xsdtojava (generate-sources) on project addon: 
> [ERROR] Exit code: 1
> [ERROR] Command line was: "[removed as it is confidential]\jdk-11.0.15+10\bin\java.exe" --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED --add-exports=java.xml/com.sun.org.apache.xerces.internal.impl.xs=ALL-UNNAMED --add-opens java.base/java.security=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.concurrent=ALL-UNNAMED -jar [removed as it is confidentialial]AppData\Local\Temp\cxf-xjc-plugin10547053190772360580.jar -classpath file:[removed as it is confidential]/.m2/repository/org/apache/cxf/xjcplugins/cxf-xjc-dv/3.2.1/cxf-xjc-dv-3.2.1.jar -classpath file:[[removed as it is confidential]]/.m2/repository/commons-beanutils/commons-beanutils/1.9.2/commons-beanutils-1.9.2.jar -classpath file:[removed as it is confidentialial].m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics/1.11.1/jaxb2-basics-1.11.1.jar -classpath file:[removed as it is confidentialial].m2/repository/org/slf4j/jcl-over-slf4j/1.7.7/jcl-over-slf4j-1.7.7.jar -classpath file:[removed as it is confidentialial].m2/repository/com/google/code/javaparser/javaparser/1.0.11/javaparser-1.0.11.jar -classpath file:[removed as it is confidentialial].m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics-tools/1.11.1/jaxb2-basics-tools-1.11.1.jar -classpath file:[removed as it is confidentialial].m2/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar -classpath file:[removed as it is confidentialial].m2/repository/org/apache/commons/commons-lang3/3.2.1/commons-lang3-3.2.1.jar -classpath file:[removed as it is confidentialial].m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar -classpath file:[removed as it is confidentialial].m2/repository/org/jvnet/jaxb2_commons/jaxb2-basics-runtime/1.11.1/jaxb2-basics-runtime-1.11.1.jar -classpath file:[removed as it is confidentialial].m2/repository/org/apache/cxf/xjcplugins/cxf-xjc-ts/3.3.1/cxf-xjc-ts-3.3.1.jar -classpath file:[removed as it is confidentialial].m2/repository/jakarta/activation/jakarta.activation-api/1.2.1/jakarta.activation-api-1.2.1.jar -classpath file:[removed as it is confidentialial].m2/repository/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar -classpath file:[removed as it is confidentialial].m2/repository/jakarta/jws/jakarta.jws-api/1.1.1/jakarta.jws-api-1.1.1.jar -classpath file:[removed as it is confidentialial].m2/repository/jakarta/xml/ws/jakarta.xml.ws-api/2.3.2/jakarta.xml.ws-api-2.3.2.jar -classpath file:[removed as it is confidentialial].m2/repository/org/apache/commons/commons-lang3/3.9/commons-lang3-3.9.jar -classpath file:[removed as it is confidentialial].m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.2/jakarta.xml.bind-api-2.3.2.jar -classpath file:[removed as it is confidentialial].m2/repository/jakarta/xml/soap/jakarta.xml.soap-api/1.4.1/jakarta.xml.soap-api-1.4.1.jar -p [removed as it is confidential]generated.envelope.datatypes -b file:[removed as it is confidentialial]OneDrive%20-%20Test/Desktop/Projects/[removed as it is confidential]/src/main/resources/xsd/binding_envelope_single.xml -extension -Xts:style:multiline -encoding UTF-8 -d "[removed as it is confidentialial]OneDrive - NRD\Desktop\Projects\[removed as it is confidential]\addon.test_test_no1\target/generated-sources/cxfxjc" file:[removed as it is confidentialial]OneDrive%20-%20NRD/Desktop/Projects/[removed as it is confidentialial]/addon.test.test_no2/src/main/resources/xsd/envelope-single.xsd
> [ERROR] 
> [ERROR] 
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)