You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "kombi (JIRA)" <ji...@apache.org> on 2007/09/20 20:05:31 UTC

[jira] Created: (CXF-1053) Catalog entry in codegen maven plugin and command line ignored.

Catalog entry in codegen maven plugin and command line ignored.
---------------------------------------------------------------

                 Key: CXF-1053
                 URL: https://issues.apache.org/jira/browse/CXF-1053
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.1
         Environment: MacOSX, java1.5, maven 2.0.7
            Reporter: kombi


If i add a "-catalog" as extraargs to the maven plugin for code generation, It seems like it is not being called. I have tried giving a invalid catalog file name and proceed to get the same error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CXF-1053) Catalog entry in codegen maven plugin and command line ignored.

Posted by "maomaode (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529776 ] 

maomaode commented on CXF-1053:
-------------------------------

kombi,

I just go through your testcase, two issue found:

1. in the catalog, you defined "uriStartString="http://www.company.net/extra.xsd""
   but in your wsdl the schemaLocation is "http://www.company.com/extra.xsd"

expected [.com] here but was [.net] in your catalog


2. The wsdl itself is not a valid wsdl, it expected "extra:extraByNameAndTypeRequest" in the 'extraRequest' message, but you defined the "profileByNameAndTypeRequest" in the schema

After fix this two issues, now, it's ok to generate the java artifacts.

> Catalog entry in codegen maven plugin and command line ignored.
> ---------------------------------------------------------------
>
>                 Key: CXF-1053
>                 URL: https://issues.apache.org/jira/browse/CXF-1053
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>         Environment: MacOSX, java1.5, maven 2.0.7
>            Reporter: kombi
>            Assignee: Daniel Kulp
>             Fix For: 2.0.3
>
>         Attachments: SampleProject.zip
>
>
> If i add a "-catalog" as extraargs to the maven plugin for code generation, It seems like it is not being called. I have tried giving a invalid catalog file name and proceed to get the same error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (CXF-1053) Catalog entry in codegen maven plugin and command line ignored.

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

kombi updated CXF-1053:
-----------------------

    Attachment: SampleProject.zip

Attaching an example project to demostrate.

> Catalog entry in codegen maven plugin and command line ignored.
> ---------------------------------------------------------------
>
>                 Key: CXF-1053
>                 URL: https://issues.apache.org/jira/browse/CXF-1053
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>         Environment: MacOSX, java1.5, maven 2.0.7
>            Reporter: kombi
>         Attachments: SampleProject.zip
>
>
> If i add a "-catalog" as extraargs to the maven plugin for code generation, It seems like it is not being called. I have tried giving a invalid catalog file name and proceed to get the same error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Reopened: (CXF-1053) Catalog entry in codegen maven plugin and command line ignored.

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

maomaode reopened CXF-1053:
---------------------------


Dan, 

The tests failed on windows platform (at least, vista), probably it's just the problem of the test itself, i'm looking into this

> Catalog entry in codegen maven plugin and command line ignored.
> ---------------------------------------------------------------
>
>                 Key: CXF-1053
>                 URL: https://issues.apache.org/jira/browse/CXF-1053
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>         Environment: MacOSX, java1.5, maven 2.0.7
>            Reporter: kombi
>            Assignee: Daniel Kulp
>             Fix For: 2.0.3
>
>         Attachments: SampleProject.zip
>
>
> If i add a "-catalog" as extraargs to the maven plugin for code generation, It seems like it is not being called. I have tried giving a invalid catalog file name and proceed to get the same error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CXF-1053) Catalog entry in codegen maven plugin and command line ignored.

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

maomaode closed CXF-1053.
-------------------------

    Resolution: Fixed

> Catalog entry in codegen maven plugin and command line ignored.
> ---------------------------------------------------------------
>
>                 Key: CXF-1053
>                 URL: https://issues.apache.org/jira/browse/CXF-1053
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>         Environment: MacOSX, java1.5, maven 2.0.7
>            Reporter: kombi
>            Assignee: Daniel Kulp
>             Fix For: 2.0.3
>
>         Attachments: SampleProject.zip
>
>
> If i add a "-catalog" as extraargs to the maven plugin for code generation, It seems like it is not being called. I have tried giving a invalid catalog file name and proceed to get the same error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CXF-1053) Catalog entry in codegen maven plugin and command line ignored.

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

Daniel Kulp resolved CXF-1053.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.3
         Assignee: Daniel Kulp


There were two problems:

1) xml-resolver swallows any exceptions in the catalog processing (and doesn't log them either).  Thus, we have no idea if it actually found a catalog or not.    I've updated it so "file" catalogs will be checked for existence prior to calling xml-resolver code.     catalogs at other types of URL's will not get checked.  :-(

2) We also didn't support URI resolving via catalogs, just system prefix things.   I've updated to call resolveURI and resolvePublic as well.




> Catalog entry in codegen maven plugin and command line ignored.
> ---------------------------------------------------------------
>
>                 Key: CXF-1053
>                 URL: https://issues.apache.org/jira/browse/CXF-1053
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>         Environment: MacOSX, java1.5, maven 2.0.7
>            Reporter: kombi
>            Assignee: Daniel Kulp
>             Fix For: 2.0.3
>
>         Attachments: SampleProject.zip
>
>
> If i add a "-catalog" as extraargs to the maven plugin for code generation, It seems like it is not being called. I have tried giving a invalid catalog file name and proceed to get the same error.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.