You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Giuseppe Guarnieri (JIRA)" <ji...@apache.org> on 2012/10/30 18:38:12 UTC

[jira] [Created] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Giuseppe Guarnieri created CXF-4606:
---------------------------------------

             Summary: cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
                 Key: CXF-4606
                 URL: https://issues.apache.org/jira/browse/CXF-4606
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.7.0
         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
            Reporter: Giuseppe Guarnieri
            Priority: Blocker


I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository

I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:

{code:xml}
<plugin>
   <groupId>org.apache.cxf</groupId>
   <artifactId>cxf-codegen-plugin</artifactId>
   <version>${cxf.version}</version>
   <executions>
      <execution>
         <id>generate-sources</id>
         <phase>generate-sources</phase>
         <configuration>
            <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
            <wsdlOptions>
               <wsdlOption>
                    <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
               </wsdlOption>
            </wsdlOptions>
         </configuration>
         <goals>
            <goal>wsdl2java</goal>
         </goals>
      </execution>
   </executions>
</plugin>
{code}

but when I run "mvn generate-sources", I get:

{noformat}
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
of extension class org.apache.cxf.catalog.OASISCatalogManager.
Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
/cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml

[INFO] ------------------------------------------------------------------------
.....
Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
{noformat}

I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Commented] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Giuseppe Guarnieri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491512#comment-13491512 ] 

Giuseppe Guarnieri commented on CXF-4606:
-----------------------------------------

I moved my repository to a non-spaced path, built the project, then moved my repo back  to its previous location in order to generate a detailed log for attaching, but this time the compilation went fine.

I suppose it's an error that occurs just the first time you try to use CXF in such conditions...
                
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>             Fix For: NeedMoreInfo
>
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Commented] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487498#comment-13487498 ] 

Freeman Fang commented on CXF-4606:
-----------------------------------

If you can append full stack here, we probably can do a quick fix, that said, replace the space with something like "%20" , though not sure if the fix could be in CXF code base.

And yeah, I'm with Glen here, don't use space in the file path, as lots of software can't handle it well, and most of it can't be fixed inside CXF. So why not follow some best practice?
                
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Commented] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13488937#comment-13488937 ] 

Daniel Kulp commented on CXF-4606:
----------------------------------

As Freeman stated, we need the full stack trace (run mvn with -X -e flags to get all the information).   I tried reproducing it here with a space in my repo directory, but it worked fine.    I added:
{code:xml}
<localRepository>/Users/dkulp/.m2/repo w spaces</localRepository>
{code}

to my ~/.m2/settings.xml   and ran some projects and they all worked fine. 
                
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Updated] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp updated CXF-4606:
-----------------------------

    Fix Version/s: NeedMoreInfo
    
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>             Fix For: NeedMoreInfo
>
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Resolved] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-4606.
-------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: NeedMoreInfo)
                   2.7.1
                   2.6.4
                   2.5.7
    
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Assignee: Freeman Fang
>            Priority: Blocker
>              Labels: maven
>             Fix For: 2.5.7, 2.6.4, 2.7.1
>
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Commented] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Artur Jaszczyk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491759#comment-13491759 ] 

Artur Jaszczyk commented on CXF-4606:
-------------------------------------

Possibly but it is necesseary to check when spaces are in the directory name.
                
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>             Fix For: NeedMoreInfo
>
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Assigned] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang reassigned CXF-4606:
---------------------------------

    Assignee: Freeman Fang
    
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Assignee: Freeman Fang
>            Priority: Blocker
>              Labels: maven
>             Fix For: NeedMoreInfo
>
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Commented] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Glen Mazza (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487158#comment-13487158 ] 

Glen Mazza commented on CXF-4606:
---------------------------------

Hopefully this would be a minor fix (others would know better than I), but calling this a blocker is a bit much, and I suspect trying to fix this would raise other problems in CXF and/or libraries outside of CXF's control.

Why not join the overwhelming majority of us who don't put spaces in our user IDs, or failing that, reconfiguring your Maven repository to a non-default spaceless location?  If you keep spaces in your Maven repo location I think you're going to get headaches in many other Mavenized projects anyway, no matter what we do.

If I understand this bug report, you're saying that CXF and Maven should be able to work with any file path that is deemed valid by any operating system that supports Java, including directory paths that may have spaces, quotes, colons, commas, etc., in them.  Perhaps, but given the amount of effort that might take at the expense of other functionality (i.e., opportunity cost), and the user community that that would benefit (those who are contractually required to have spaces in their Maven repo path, i.e., probably nobody), I'm not sure it would be worth it.  But again, hopefully it might be a simple fix.
                
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Commented] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Artur Jaszczyk (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13491441#comment-13491441 ] 

Artur Jaszczyk commented on CXF-4606:
-------------------------------------

I had the same problem when my repo was in user catalog under default windows directory C:/Documents and Settings/userName/.m2/repository
                
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>             Fix For: NeedMoreInfo
>
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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

[jira] [Commented] (CXF-4606) cxf-codegen-plugin doesn't works if Maven repository's path contain spaces

Posted by "Giuseppe Guarnieri (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13487262#comment-13487262 ] 

Giuseppe Guarnieri commented on CXF-4606:
-----------------------------------------

Hi, sorry for miscategorization: I intended "Blocker" in the literal meaning, i.e. "functionality unavailable" - Code generation is impossible in such situation. I didn't mean that's a major fault in the application as a whole.

Again, I apologize. It's a minor glitch for sure. Neverthless, I've thought it could be useful to report it, in order to achieve an even better code quality in this excellent project

I indeed moved my repository to a non-spaced location, but I had to do that for the first time I've found such error, so it seemed to me it deserved to report. When I'm on a linux system I actually avoid spaces for my own, but company configured laptops don't always allows an high degree of configurability! :P

Thank you for your support!
                
> cxf-codegen-plugin doesn't works if Maven repository's path contain spaces
> --------------------------------------------------------------------------
>
>                 Key: CXF-4606
>                 URL: https://issues.apache.org/jira/browse/CXF-4606
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 74bit, Maven 2.2.1, jvm 1.7.0_01
>            Reporter: Giuseppe Guarnieri
>            Priority: Blocker
>              Labels: maven
>
> I keep my Maven repository in its default location, C:/Users/Giuseppe Guarnieri/.m2/repository
> I've set up a simple CXF-enabled project for building a demo client, copying the configuration directly from cxf site. In particular, I've configured the plugin as follows:
> {code:xml}
> <plugin>
>    <groupId>org.apache.cxf</groupId>
>    <artifactId>cxf-codegen-plugin</artifactId>
>    <version>${cxf.version}</version>
>    <executions>
>       <execution>
>          <id>generate-sources</id>
>          <phase>generate-sources</phase>
>          <configuration>
>             <sourceRoot>${project.build.directory}/generated/cxf</sourceRoot>
>             <wsdlOptions>
>                <wsdlOption>
>                     <wsdl>${basedir}/src/main/resources/wsdl/myservice.wsdl</wsdl>
>                </wsdlOption>
>             </wsdlOptions>
>          </configuration>
>          <goals>
>             <goal>wsdl2java</goal>
>          </goals>
>       </execution>
>    </executions>
> </plugin>
> {code}
> but when I run "mvn generate-sources", I get:
> {noformat}
> [INFO] ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] org.apache.cxf.bus.extension.ExtensionException: Could not create object
> of extension class org.apache.cxf.catalog.OASISCatalogManager.
> Illegal character in opaque part at index 27: jar:file:/C:/Users/Giuseppe Guarni
> eri/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT
> /cxf-tools-wsdlto-frontend-jaxws-2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> [INFO] ------------------------------------------------------------------------
> .....
> Caused by: java.lang.IllegalArgumentException: Illegal character in opaque part
> at index 27: jar:file:/C:/Users/Giuseppe Guarnieri/.m2/repository/org/apache/cxf
> /cxf-tools-wsdlto-frontend-jaxws/2.7.1-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-
> 2.7.1-SNAPSHOT.jar!/META-INF/jax-ws-catalog.xml
> {noformat}
> I think the culprit is the space in "jar:file:/C:/Users/Giuseppe Guarnieri/..."

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