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

Jeroen Benckhuijsen commented on CXF-4982:
------------------------------------------

Build server logging below. Relevant message is last message before the "8< 
snip" at 24-Apr-2013 09:18:41.

24-Apr-2013 09:18:41    [INFO] [DEBUG] Classpath: 
[file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/target/classes/,
 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/target/classes/,
 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/common/common/target/gps-common.jar,
 file:/D:/.m2/repo3/joda-time/joda-time/1.6/joda-time-1.6.jar, 
file:/D:/.m2/repo3/uk/com/robust-it/cloning/1.7.9/cloning-1.7.9.jar, 
file:/D:/.m2/repo3/org/objenesis/objenesis/1.2/objenesis-1.2.jar, 
file:/D:/.m2/repo3/org/springframework/spring-beans/3.1.2.RELEASE/spring-beans-3.1.2.RELEASE.jar,
 
file:/D:/.m2/repo3/org/springframework/spring-context/3.1.2.RELEASE/spring-context-3.1.2.RELEASE.jar,
 
file:/D:/.m2/repo3/org/springframework/spring-aop/3.1.2.RELEASE/spring-aop-3.1.2.RELEASE.jar,
 
file:/D:/.m2/repo3/org/springframework/spring-expression/3.1.2.RELEASE/spring-expression-3.1.2.RELEASE.jar,
 
file:/D:/.m2/repo3/org/springframework/spring-asm/3.1.2.RELEASE/spring-asm-3.1.2.RELEASE.jar,
 
file:/D:/.m2/repo3/org/springframework/spring-core/3.1.2.RELEASE/spring-core-3.1.2.RELEASE.jar,
 
file:/D:/.m2/repo3/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar,
 
file:/D:/.m2/repo3/org/springframework/spring-tx/3.1.2.RELEASE/spring-tx-3.1.2.RELEASE.jar,
 file:/D:/.m2/repo3/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, 
file:/D:/.m2/repo3/org/aspectj/aspectjrt/1.6.12/aspectjrt-1.6.12.jar, 
file:/D:/.m2/repo3/log4j/log4j/1.2.17/log4j-1.2.17.jar, 
file:/D:/.m2/repo3/commons-lang/commons-lang/2.4/commons-lang-2.4.jar, 
file:/D:/.m2/repo3/commons-collections/commons-collections/3.1/commons-collections-3.1.jar,
 
file:/D:/.m2/repo3/nl/apg/gps/bre/lib/jrules-res-session-java/7.1.1.1/jrules-res-session-java-7.1.1.1.jar]
24-Apr-2013 09:18:41    [INFO] [DEBUG] Calling wsdl2java with args: [-encoding, 
UTF-8, -d, 
D:\bamboo-agent-home\xml-data\build-dir\GPSTWEE-IT-RELEASE\backend\ws-clients\gps-wow-sync-client\target\generated-sources\cxf,
 -b, 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/bindings.xml,
 -fe, jaxws21, -xjc-Xcollection-setter-injector, -wsdlLocation, 
/wsdl/wow-sync/WowSync_1.wsdl, -verbose, 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/wow-sync/WowSync_1.wsdl]
24-Apr-2013 09:18:41    [INFO] [INFO] Running code generation in fork mode...
24-Apr-2013 09:18:41    [INFO] [DEBUG] Running code generation in fork mode 
with args [-encoding, UTF-8, -d, 
D:\bamboo-agent-home\xml-data\build-dir\GPSTWEE-IT-RELEASE\backend\ws-clients\gps-wow-sync-client\target\generated-sources\cxf,
 -b, 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/bindings.xml,
 -fe, jaxws21, -xjc-Xcollection-setter-injector, -wsdlLocation, 
/wsdl/wow-sync/WowSync_1.wsdl, -verbose, 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/wow-sync/WowSync_1.wsdl]
24-Apr-2013 09:18:41    [INFO] [INFO] Building jar: C:\Documents and 
Settings\S-F-Javabuild\Local 
Settings\Temp\cxf-tmp-206960\cxf-codegen15082880103096748.jar
24-Apr-2013 09:18:41    [INFO] [WARNING] Unable to access jarfile C:\Documents

8< snip...

24-Apr-2013 09:18:42    [INFO] [ERROR] Failed to execute goal 
org.apache.cxf:cxf-codegen-plugin:2.6.1:wsdl2java (generate-wow-sync-client) on 
project gps-wow-sync-client:
24-Apr-2013 09:18:42    [INFO] [ERROR] Exit code: 1
24-Apr-2013 09:18:42    [INFO] [ERROR] Command line was: 
c:\dev\Java\jdk1.6.0_26\jre\bin\java.exe -jar "C:\Documents and 
Settings\S-F-Javabuild\Local 
Settings\Temp\cxf-tmp-206960\cxf-codegen15082880103096748.jar" -encoding UTF-8 
-d 
D:\bamboo-agent-home\xml-data\build-dir\GPSTWEE-IT-RELEASE\backend\ws-clients\gps-wow-sync-client\target\generated-sources\cxf
 -b 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/bindings.xml
 -fe jaxws21 -xjc-Xcollection-setter-injector -wsdlLocation 
/wsdl/wow-sync/WowSync_1.wsdl -verbose 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/wow-sync/WowSync_1.wsdl
24-Apr-2013 09:18:42    [INFO] [ERROR] -> [Help 1]
24-Apr-2013 09:18:42    [INFO] 
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.cxf:cxf-codegen-plugin:2.6.1:wsdl2java (generate-wow-sync-client) on 
project gps-wow-sync-client: 
24-Apr-2013 09:18:42    [INFO] Exit code: 1
24-Apr-2013 09:18:42    [INFO] Command line was: 
c:\dev\Java\jdk1.6.0_26\jre\bin\java.exe -jar "C:\Documents and 
Settings\S-F-Javabuild\Local 
Settings\Temp\cxf-tmp-206960\cxf-codegen15082880103096748.jar" -encoding UTF-8 
-d 
D:\bamboo-agent-home\xml-data\build-dir\GPSTWEE-IT-RELEASE\backend\ws-clients\gps-wow-sync-client\target\generated-sources\cxf
 -b 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/bindings.xml
 -fe jaxws21 -xjc-Xcollection-setter-injector -wsdlLocation 
/wsdl/wow-sync/WowSync_1.wsdl -verbose 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/wow-sync/WowSync_1.wsdl
24-Apr-2013 09:18:42    [INFO] 
24-Apr-2013 09:18:42    [INFO] 
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
24-Apr-2013 09:18:42    [INFO]         at 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
24-Apr-2013 09:18:42    [INFO]         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
24-Apr-2013 09:18:42    [INFO]         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
24-Apr-2013 09:18:42    [INFO]         at 
java.lang.reflect.Method.invoke(Method.java:597)
24-Apr-2013 09:18:42    [INFO]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
24-Apr-2013 09:18:42    [INFO]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
24-Apr-2013 09:18:42    [INFO]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
24-Apr-2013 09:18:42    [INFO]         at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
24-Apr-2013 09:18:42    [INFO] Caused by: 
org.apache.maven.plugin.MojoExecutionException: 
24-Apr-2013 09:18:42    [INFO] Exit code: 1
24-Apr-2013 09:18:42    [INFO] Command line was: 
c:\dev\Java\jdk1.6.0_26\jre\bin\java.exe -jar "C:\Documents and 
Settings\S-F-Javabuild\Local 
Settings\Temp\cxf-tmp-206960\cxf-codegen15082880103096748.jar" -encoding UTF-8 
-d 
D:\bamboo-agent-home\xml-data\build-dir\GPSTWEE-IT-RELEASE\backend\ws-clients\gps-wow-sync-client\target\generated-sources\cxf
 -b 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/bindings.xml
 -fe jaxws21 -xjc-Xcollection-setter-injector -wsdlLocation 
/wsdl/wow-sync/WowSync_1.wsdl -verbose 
file:/D:/bamboo-agent-home/xml-data/build-dir/GPSTWEE-IT-RELEASE/backend/ws-clients/gps-wow-sync-client/src/main/resources/wsdl/wow-sync/WowSync_1.wsdl
24-Apr-2013 09:18:42    [INFO] 
24-Apr-2013 09:18:42    [INFO] 
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.cxf.maven_plugin.AbstractCodegenMoho.runForked(AbstractCodegenMoho.java:528)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.generate(WSDL2JavaMojo.java:223)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:250)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:308)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
24-Apr-2013 09:18:42    [INFO]         at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
24-Apr-2013 09:18:42    [INFO]         ... 19 more
                
> Codegen maven plugin fails forked execution on Windows XP environment
> ---------------------------------------------------------------------
>
>                 Key: CXF-4982
>                 URL: https://issues.apache.org/jira/browse/CXF-4982
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.6.7
>         Environment: Windows XP, JDK 1.6
>            Reporter: Jeroen Benckhuijsen
>
> Execution of the Maven cxf-codegen-plugin fails on Windows XP environment 
> when using fork mode. Cause it that the JAR file created to hold the 
> classpath is created in the temporary directory, which on Windpws XP points 
> to C:\Documents and Settings\... Result is an error when executing the 
> command line stating the jar file C:\Documents cannot be found.
> For reference see: 
> https://fisheye6.atlassian.com/browse/cxf/trunk/maven-plugins/codegen-plugin/src/main/java/org/apache/cxf/maven_plugin/AbstractCodegenMoho.java?r=1465636
> Proposed solutions is to apply quotes to the path. Other way is to create the 
> jar file in the target/ folder of the current execution (which is often in a 
> path without spaces, as multiple plugins are otherwise affected).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to