Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 217FCD188 for ; Tue, 9 Oct 2012 08:44:03 +0000 (UTC) Received: (qmail 95972 invoked by uid 500); 9 Oct 2012 08:44:03 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 95944 invoked by uid 500); 9 Oct 2012 08:44:02 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 95920 invoked by uid 99); 9 Oct 2012 08:44:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Oct 2012 08:44:02 +0000 Date: Tue, 9 Oct 2012 08:44:02 +0000 (UTC) From: "Artem Shevchenko (JIRA)" To: issues@cxf.apache.org Message-ID: <833776518.13516.1349772242697.JavaMail.jiratomcat@arcas> In-Reply-To: <1147369868.13514.1349772003181.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (CXF-4550) Wsdl2Java fails if tmp folder contains spaces MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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 > > org.apache.cxf > cxf-codegen-plugin > > > generate-sources > > once > target/generated-sources/cxf > > > src/main/resources/wsdl/ScenarioDefinitionService.wsdl > > -xjc-Xts > > > > > > wsdl2java > > > > > > org.apache.cxf.xjcplugins > cxf-xjc-ts > ${cxf-xjc.version} > > > > > [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