You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Artem Shevchenko (JIRA)" <ji...@apache.org> on 2012/10/09 10:44:02 UTC
[jira] [Updated] (CXF-4550) Wsdl2Java fails if tmp folder contains
spaces
[ https://issues.apache.org/jira/browse/CXF-4550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Artem Shevchenko updated CXF-4550:
----------------------------------
Labels: codegen quotes wsdl2java (was: )
> Wsdl2Java fails if tmp folder contains spaces
> ---------------------------------------------
>
> Key: CXF-4550
> URL: https://issues.apache.org/jira/browse/CXF-4550
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.6.2
> Reporter: Artem Shevchenko
> Labels: codegen, quotes, wsdl2java
>
> I am conscious having spaces in tmp path is wrong.
> Caused by the unquoted jar path argument.
> AbstractCodegenMoho.java:462
> cmd.getShell().setQuotedArgumentsEnabled(false); // for JVM args
> <plugin>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-codegen-plugin</artifactId>
> <executions>
> <execution>
> <id>generate-sources</id>
> <configuration>
> <fork>once</fork>
> <sourceRoot>target/generated-sources/cxf</sourceRoot>
> <wsdlOptions>
> <wsdlOption>
> <wsdl>src/main/resources/wsdl/ScenarioDefinitionService.wsdl</wsdl>
> <extraargs>
> <extraarg>-xjc-Xts</extraarg>
> </extraargs>
> </wsdlOption>
> </wsdlOptions>
> </configuration>
> <goals>
> <goal>wsdl2java</goal>
> </goals>
> </execution>
> </executions>
> <dependencies>
> <dependency>
> <groupId>org.apache.cxf.xjcplugins</groupId>
> <artifactId>cxf-xjc-ts</artifactId>
> <version>${cxf-xjc.version}</version>
> </dependency>
> </dependencies>
> </plugin>
>
> [INFO] Running code generation in fork mode...
> [DEBUG] Running code generation in fork mode with args [C:\Program Files (x86)\cygwin\tmp\cxf-tmp-612466\cxf-w2j2754183499503103694args]
> [INFO] Building jar: C:\Program Files (x86)\cygwin\tmp\cxf-tmp-612466\cxf-codegen3769733772993116138.jar
> [WARNING] Unable to access jarfile C:\Program
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO]
> Exit code: 1
> Command line was: C:\java\jrockit-jdk1.6.0\jre\bin\java.exe -jar "C:\Program Files (x86)\cygwin\tmp\cxf-tmp-612466\cxf-codegen3769733772993116138.jar" "C:\Program Files (x86)\cyg
> n\tmp\cxf-tmp-612466\cxf-w2j2754183499503103694args"
> [INFO] ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException:
> Exit code: 1
> Command line was: C:\java\jrockit-jdk1.6.0\jre\bin\java.exe -jar "C:\Program Files (x86)\cygwin\tmp\cxf-tmp-612466\cxf-codegen3769733772993116138.jar" "C:\Program Files (x86)\cyg
> n\tmp\cxf-tmp-612466\cxf-w2j2754183499503103694args"
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:376)
> Caused by: org.apache.maven.plugin.MojoExecutionException:
> Exit code: 1
> Command line was: C:\java\jrockit-jdk1.6.0\jre\bin\java.exe -jar "C:\Program Files (x86)\cygwin\tmp\cxf-tmp-612466\cxf-codegen3769733772993116138.jar" "C:\Program Files (x86)\cyg
> n\tmp\cxf-tmp-612466\cxf-w2j2754183499503103694args"
> at org.apache.cxf.maven_plugin.AbstractCodegenMoho.runForked(AbstractCodegenMoho.java:537)
> at org.apache.cxf.maven_plugin.AbstractCodegenMoho.forkOnce(AbstractCodegenMoho.java:412)
> at org.apache.cxf.maven_plugin.AbstractCodegenMoho.execute(AbstractCodegenMoho.java:254)
> at org.apache.cxf.maven_plugin.wsdl2java.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:378)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
--
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