[ https://issues.apache.org/jira/browse/CXF-4424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415166#comment-13415166 ]
David J. M. Karlsen edited comment on CXF-4424 at 7/16/12 2:30 PM: ------------------------------------------------------------------- Oh - great - should the docs at http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html be updated - they don't mention anything? However I still have problems detecting the frontend in CXF: {noformat} [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building cp-client-ws 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ cp-client-ws --- [INFO] Deleting /home/et2448/projects/payment/cashpool/client/cp-client-ws/target [INFO] [INFO] --- maven-enforcer-plugin:1.0.1:enforce (default) @ cp-client-ws --- [INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0 [INFO] [INFO] --- maven-dependency-plugin:2.4:copy (default) @ cp-client-ws --- [INFO] Configured Artifact: javax.xml.bind:jaxb-api:2.2:jar [INFO] Configured Artifact: javax.xml.ws:jaxws-api:2.2:jar [INFO] Copying jaxb-api-2.2.jar to /home/et2448/projects/payment/cashpool/client/cp-client-ws/target/endorsed/jaxb-api-2.2.jar [INFO] Copying jaxws-api-2.2.jar to /home/et2448/projects/payment/cashpool/client/cp-client-ws/target/endorsed/jaxws-api-2.2.jar [INFO] [INFO] --- maven-dependency-plugin:2.4:unpack (unpack-cpl-server-schemas) @ cp-client-ws --- [INFO] Configured Artifact: com.edb.fs.cashpool.srv:cp-server-schemas:1.0-SNAPSHOT:jar [INFO] Unpacking /home/et2448/.m2/repository/com/edb/fs/cashpool/srv/cp-server-schemas/1.0-SNAPSHOT/cp-server-schemas-1.0-SNAPSHOT.jar to /home/et2448/projects/payment/cashpool/client/cp-client-ws/target/dependency with includes "**/*.wsdl" and excludes "" [INFO] [INFO] --- cxf-codegen-plugin:2.5.4:wsdl2java (generate-sources-embedded) @ cp-client-ws --- [INFO] Running code generation in fork mode... [INFO] Building jar: /tmp/cxf-tmp-895375/cxf-codegen2705134215741346074.jar [INFO] Loading FrontEnd jaxws22 ... [WARNING] Exception in thread "main" org.apache.cxf.tools.common.ToolException: Could not find jaxws22 frontend within classpath [WARNING] at org.apache.cxf.tools.wsdlto.core.PluginLoader.getFrontEnd(PluginLoader.java:241) [WARNING] at org.apache.cxf.tools.wsdlto.core.PluginLoader.getFrontEndProfile(PluginLoader.java:377) [WARNING] at org.apache.cxf.tools.wsdlto.WSDLToJava.loadFrontEnd(WSDLToJava.java:64) [WARNING] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:96) [WARNING] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) [WARNING] at org.apache.cxf.maven_plugin.wsdl2java.ForkOnceWSDL2Java.main(ForkOnceWSDL2Java.java:50) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.613s [INFO] Finished at: Mon Jul 16 16:23:29 CEST 2012 [INFO] Final Memory: 12M/222M .... [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.5.4:wsdl2java (generate-sources-embedded) on project cp-client-ws: [ERROR] Exit code: 1 [ERROR] Command line was: /opt/jdk1.7.0_05-x64/jre/bin/java -Djava.endorsed.dirs=/home/et2448/projects/payment/cashpool/client/cp-client-ws/target/endorsed -jar /tmp/cxf-tmp-895375/cxf-codegen2705134215741346074.jar /tmp/cxf-tmp-895375/cxf-w2j5611959632237131271args [ERROR] -> [Help 1] {noformat} was (Author: davidkarl...@gmail.com): Oh - great - should the docs at http://cxf.apache.org/docs/maven-cxf-codegen-plugin-wsdl-to-java.html be updated - they don't mention anything? However I still have problems detecting the frontend in CXF: {noformat} [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building cp-client-ws 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ cp-client-ws --- [INFO] Deleting /home/et2448/projects/payment/cashpool/client/cp-client-ws/target [INFO] [INFO] --- maven-enforcer-plugin:1.0.1:enforce (default) @ cp-client-ws --- [INFO] Checking unresolved references to org.codehaus.mojo.signature:java16:1.0 [INFO] [INFO] --- maven-dependency-plugin:2.4:copy (default) @ cp-client-ws --- [INFO] Configured Artifact: javax.xml.bind:jaxb-api:2.2:jar [INFO] Configured Artifact: javax.xml.ws:jaxws-api:2.2:jar [INFO] Copying jaxb-api-2.2.jar to /home/et2448/projects/payment/cashpool/client/cp-client-ws/target/endorsed/jaxb-api-2.2.jar [INFO] Copying jaxws-api-2.2.jar to /home/et2448/projects/payment/cashpool/client/cp-client-ws/target/endorsed/jaxws-api-2.2.jar [INFO] [INFO] --- maven-dependency-plugin:2.4:unpack (unpack-cpl-server-schemas) @ cp-client-ws --- [INFO] Configured Artifact: com.edb.fs.cashpool.srv:cp-server-schemas:1.0-SNAPSHOT:jar [INFO] Unpacking /home/et2448/.m2/repository/com/edb/fs/cashpool/srv/cp-server-schemas/1.0-SNAPSHOT/cp-server-schemas-1.0-SNAPSHOT.jar to /home/et2448/projects/payment/cashpool/client/cp-client-ws/target/dependency with includes "**/*.wsdl" and excludes "" [INFO] [INFO] --- cxf-codegen-plugin:2.5.4:wsdl2java (generate-sources-embedded) @ cp-client-ws --- [INFO] Running code generation in fork mode... [INFO] Building jar: /tmp/cxf-tmp-895375/cxf-codegen2705134215741346074.jar [INFO] Loading FrontEnd jaxws22 ... [WARNING] Exception in thread "main" org.apache.cxf.tools.common.ToolException: Could not find jaxws22 frontend within classpath [WARNING] at org.apache.cxf.tools.wsdlto.core.PluginLoader.getFrontEnd(PluginLoader.java:241) [WARNING] at org.apache.cxf.tools.wsdlto.core.PluginLoader.getFrontEndProfile(PluginLoader.java:377) [WARNING] at org.apache.cxf.tools.wsdlto.WSDLToJava.loadFrontEnd(WSDLToJava.java:64) [WARNING] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:96) [WARNING] at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) [WARNING] at org.apache.cxf.maven_plugin.wsdl2java.ForkOnceWSDL2Java.main(ForkOnceWSDL2Java.java:50) [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 6.613s [INFO] Finished at: Mon Jul 16 16:23:29 CEST 2012 [INFO] Final Memory: 12M/222M {noformat} > Option for codegen plugin to fork in order to support endorsed libs > ------------------------------------------------------------------- > > Key: CXF-4424 > URL: https://issues.apache.org/jira/browse/CXF-4424 > Project: CXF > Issue Type: Improvement > Components: Tooling > Affects Versions: 2.5.4 > Environment: java 6 > Reporter: David J. M. Karlsen > Labels: codegen, endorsed, fork > > In order to support endorsed libs it would be preferable to have the codegen > plugin fork (and support setting of java.endorsed.dirs). > I wish to do so because my build uses a vanilla JDK6 which is JAXB 2.1 and > JAX-WS 2.1, but the target env is JDK6, JEE6 on WAS8 with JAXB 2.2 and JAX-WS > 2.2 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira