You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Chris Phillipson (JIRA)" <ji...@apache.org> on 2012/10/19 23:00:14 UTC

[jira] [Created] (CXF-4588) cxf-codegen-plugin: Error resolving component

Chris Phillipson created CXF-4588:
-------------------------------------

             Summary: cxf-codegen-plugin: Error resolving component
                 Key: CXF-4588
                 URL: https://issues.apache.org/jira/browse/CXF-4588
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.7.0
         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0
            Reporter: Chris Phillipson


While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:

"Schema Error : src-resolve: Cannot resolve the name".

--
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-4588) cxf-codegen-plugin: Error resolving component

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

Chris Phillipson updated CXF-4588:
----------------------------------

    Attachment: spp-im-mui-ws-api.zip

Attaching a simple project which is capable of reproducing the exception.  It is a Maven 3 project.
                
> cxf-codegen-plugin: Error resolving component
> ---------------------------------------------
>
>                 Key: CXF-4588
>                 URL: https://issues.apache.org/jira/browse/CXF-4588
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0
>            Reporter: Chris Phillipson
>         Attachments: spp-im-mui-ws-api.zip
>
>
> While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:
> "Schema Error : src-resolve: Cannot resolve the name".

--
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-4588) cxf-codegen-plugin: Error resolving component

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

Chris Phillipson updated CXF-4588:
----------------------------------

    Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0, JDK 7  (was: Windows 7 x64, Maven 3.0.4, CXF 2.7.0)
    
> cxf-codegen-plugin: Error resolving component
> ---------------------------------------------
>
>                 Key: CXF-4588
>                 URL: https://issues.apache.org/jira/browse/CXF-4588
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0, JDK 7
>            Reporter: Chris Phillipson
>         Attachments: spp-im-mui-ws-api.zip
>
>
> While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:
> "Schema Error : src-resolve: Cannot resolve the name".

--
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-4588) cxf-codegen-plugin: Error resolving component

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

Chris Phillipson updated CXF-4588:
----------------------------------

    Attachment:     (was: spp-im-mui-ws-api.zip)
    
> cxf-codegen-plugin: Error resolving component
> ---------------------------------------------
>
>                 Key: CXF-4588
>                 URL: https://issues.apache.org/jira/browse/CXF-4588
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0, JDK 7
>            Reporter: Chris Phillipson
>
> While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:
> "Schema Error : src-resolve: Cannot resolve the name".

--
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-4588) cxf-codegen-plugin: Error resolving component

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

Daniel Kulp resolved CXF-4588.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.1
                   2.6.4
         Assignee: Daniel Kulp
    
> cxf-codegen-plugin: Error resolving component
> ---------------------------------------------
>
>                 Key: CXF-4588
>                 URL: https://issues.apache.org/jira/browse/CXF-4588
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0, JDK 7
>            Reporter: Chris Phillipson
>            Assignee: Daniel Kulp
>             Fix For: 2.6.4, 2.7.1
>
>         Attachments: spp-im-mui-ws-api.zip
>
>
> While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:
> "Schema Error : src-resolve: Cannot resolve the name".

--
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-4588) cxf-codegen-plugin: Error resolving component

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

Chris Phillipson commented on CXF-4588:
---------------------------------------

One more comment.  If you fallback to CXF 2.6.2 in the attached project source, Maven will compile it successfully, albeit with warnings (and ugly stack traces).
                
> cxf-codegen-plugin: Error resolving component
> ---------------------------------------------
>
>                 Key: CXF-4588
>                 URL: https://issues.apache.org/jira/browse/CXF-4588
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0
>            Reporter: Chris Phillipson
>         Attachments: spp-im-mui-ws-api.zip
>
>
> While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:
> "Schema Error : src-resolve: Cannot resolve the name".

--
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-4588) cxf-codegen-plugin: Error resolving component

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

Chris Phillipson commented on CXF-4588:
---------------------------------------

This is what I observe in a Windows cmd shell...

D:\workspaces\other\spp-im-mui-ws-api>mvn clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Example web service API 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.springframework.org/release/joda-time/joda-time/2.1/joda-time-2.1.pom
Downloading: http://gwtquery-plugins.googlecode.com/svn/mavenrepo/joda-time/joda-time/2.1/joda-time-2.1.pom
Downloading: http://csvjdbc.sourceforge.net/maven2/joda-time/joda-time/2.1/joda-time-2.1.pom
Downloading: http://mvp4g.googlecode.com/svn/maven2/releases/joda-time/joda-time/2.1/joda-time-2.1.pom
Downloading: http://maven.nuxeo.org/nexus/content/groups/public/joda-time/joda-time/2.1/joda-time-2.1.pom
Downloaded: http://maven.nuxeo.org/nexus/content/groups/public/joda-time/joda-time/2.1/joda-time-2.1.pom (16 KB at 5.2 KB/sec)
Downloading: http://maven.springframework.org/release/joda-time/joda-time/2.1/joda-time-2.1.jar
Downloading: http://gwtquery-plugins.googlecode.com/svn/mavenrepo/joda-time/joda-time/2.1/joda-time-2.1.jar
Downloading: http://csvjdbc.sourceforge.net/maven2/joda-time/joda-time/2.1/joda-time-2.1.jar
Downloading: http://mvp4g.googlecode.com/svn/maven2/releases/joda-time/joda-time/2.1/joda-time-2.1.jar
Downloading: http://maven.nuxeo.org/nexus/content/groups/public/joda-time/joda-time/2.1/joda-time-2.1.jar
Downloaded: http://maven.nuxeo.org/nexus/content/groups/public/joda-time/joda-time/2.1/joda-time-2.1.jar (558 KB at 117.5 KB/sec)
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ ws-api ---
[INFO]
[INFO] --- cxf-codegen-plugin:2.7.0:wsdl2java (default) @ ws-api ---
Loading FrontEnd jaxws ...
Loading DataBinding jaxb ...
wsdl2java -d D:\workspaces\other\spp-im-mui-ws-api\target\generated-sources\java -b file:/D:/workspaces/other/spp-im-mui-ws-api/build/wsdl/jaxb-bindings.xml -validate -impl -verbos
e file:/D:/workspaces/other/spp-im-mui-ws-api/build/wsdl/virtual_v1_0.wsdl
wsdl2java - Apache CXF 2.7.0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18.491s
[INFO] Finished at: Fri Oct 19 14:27:33 PDT 2012
[INFO] Final Memory: 13M/256M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java (default) on project ws-api: Execution default of goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl
2java failed: Schema Error : src-resolve: Cannot resolve the name 'cmn:AssetOwnerNameType' to a(n) 'type definition' component. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
D:\workspaces\other\spp-im-mui-ws-api>
                
> cxf-codegen-plugin: Error resolving component
> ---------------------------------------------
>
>                 Key: CXF-4588
>                 URL: https://issues.apache.org/jira/browse/CXF-4588
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0
>            Reporter: Chris Phillipson
>         Attachments: spp-im-mui-ws-api.zip
>
>
> While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:
> "Schema Error : src-resolve: Cannot resolve the name".

--
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-4588) cxf-codegen-plugin: Error resolving component

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

Chris Phillipson updated CXF-4588:
----------------------------------

    Attachment: spp-im-mui-ws-api.zip

Updated
                
> cxf-codegen-plugin: Error resolving component
> ---------------------------------------------
>
>                 Key: CXF-4588
>                 URL: https://issues.apache.org/jira/browse/CXF-4588
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.7.0
>         Environment: Windows 7 x64, Maven 3.0.4, CXF 2.7.0, JDK 7
>            Reporter: Chris Phillipson
>         Attachments: spp-im-mui-ws-api.zip
>
>
> While it appeared that a fix was in place (as in CXF-4487), I am still having trouble generating classes from schema that have relative links in (e.g., <import schemaLocation="../common/common_v1_0.xsd"). I get an exception, like this:
> "Schema Error : src-resolve: Cannot resolve the name".

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