cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Phillipson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-4588) cxf-codegen-plugin: Error resolving component
Date Fri, 19 Oct 2012 21:32:11 GMT

    [ 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

Mime
View raw message