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 Mathews (JIRA)" <ji...@apache.org> on 2012/08/28 22:35:08 UTC

[jira] [Comment Edited] (CXF-4487) cxf-codegen-plugin: Error resolving component warnings for imported types

    [ https://issues.apache.org/jira/browse/CXF-4487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13443502#comment-13443502 ] 

Chris Mathews edited comment on CXF-4487 at 8/29/12 7:34 AM:
-------------------------------------------------------------

That is interesting.  If I run wsimport locally I get:

{code}
c:\ds\workspaces\fusion-sample\example>c:\ds\ds_env\tools\jdk-1.6.0_32\bin\wsimport.exe -version
JAX-WS RI 2.1.6 in JDK 6

c:\ds\workspaces\fusion-sample\example>c:\ds\ds_env\tools\jdk-1.6.0_32\bin\wsimport.exe -d target\foo src\main\resources\echo.wsdl
parsing WSDL...


generating code...


compiling code...
{code}

What version of wsimport are you running?  This remains a mystery because as far as I can tell the wsdl is correct and I am not getting any issues importing into a variety of clients... just waiting for someone to point out my stupidity. ;)
                
      was (Author: chrismathews):
    That is interesting.  If I run wsimport locally I get:

c:\ds\workspaces\fusion-sample\example>c:\ds\ds_env\tools\jdk-1.6.0_32\bin\wsimport.exe -version
JAX-WS RI 2.1.6 in JDK 6

c:\ds\workspaces\fusion-sample\example>c:\ds\ds_env\tools\jdk-1.6.0_32\bin\wsimport.exe -d target\foo src\main\resources\echo.wsdl
parsing WSDL...


generating code...


compiling code...

What version of wsimport are you running?  This remains a mystery because as far as I can tell the wsdl is correct and I am not getting any issues importing into a variety of clients... just waiting for someone to point out my stupidity. ;)
                  
> cxf-codegen-plugin: Error resolving component warnings for imported types
> -------------------------------------------------------------------------
>
>                 Key: CXF-4487
>                 URL: https://issues.apache.org/jira/browse/CXF-4487
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.6.2
>         Environment: Windows 7 x64
>            Reporter: Gert Driesen
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.6.3
>
>         Attachments: cxf-4487.zip, cxf-codegen-plugin.log, example.zip
>
>
> As of CXF 2.6.2 (not sure about 2.6.1)), I get warnings for several types that have been imported from an XSD.
> For example:
> WARNING: C:\cxf-plugin-issue\src\main\resources\Private\Acquittal\NisseAcquittal_V1.wsdl [23,7]: src-resolve.4.2: Error resolving component 'meta:ApplHeaderStruct'. It was detected that 'meta:ApplHeaderStruct' is in namespace 'http://www.rsvz-inasti.fgov.be/PrivateWS/schema/MetaInfo/V1', but components from this namespace are not referenceable from schema document 'file:/C:/cxf-plugin-issue/src/main/resources/Private/Acquittal/NisseAcquittal_V1.wsdl#types1'. If this is the incorrect namespace, perhaps the prefix of 'meta:ApplHeaderStruct' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/cxf-plugin-issue/src/main/resources/Private/Acquittal/NisseAcquittal_V1.wsdl#types1'.
> I get none of these warning when using CXF 2.5.4, and the WSDL and XSD are all valid.
> I'll attach a repro for this issue, and a log file (taken with level FINE).
> Just search for "src-resolve.4.2".
> Just use "mvn clean install" to reproduce the issue.

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