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

Andriy Redko commented on CXF-8713:
-----------------------------------

[~hilbert] [~rquinio] I am not successful with reproducing the issue on Temurin 
jdk-11.0.16+8 (latest one) on Windows, could one of you guys please attach the 
reproducing project to this issue? Thank you.

> 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)

Reply via email to