You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2008/04/03 16:42:24 UTC

[jira] Created: (CXF-1500) Very unhelpful error message for wsdl2java problem with documentation annotations

Very unhelpful error message for wsdl2java problem with documentation annotations
---------------------------------------------------------------------------------

                 Key: CXF-1500
                 URL: https://issues.apache.org/jira/browse/CXF-1500
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 2.1
            Reporter: Benson Margulies


I am trying to run wsdl2java on a WSDL file with some doc annotations. I get the following. I will attach the file. It doesn't have the annotations on line 0!


bim-1330% $CXF_HOME/bin/wsdl2java -d src -server /home/benson/x/tip/webservices/doc/en/RosetteTextAnalyzer.wsdl

WSDLToJava Error: Thrown by JAXB : Unexpected <annotation> appears at line 0 column 0


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


[jira] Commented: (CXF-1500) Very unhelpful error message for wsdl2java problem with documentation annotations

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

Benson Margulies commented on CXF-1500:
---------------------------------------

xjc in 2.1.6 gives me ...

bim-1330% ./xjc.sh -d /tmp/foo -wsdl /home/benson/x/tip/webservices/doc/en/RosetteTextAnalyzer.wsdl
parsing a schema...
[ERROR] Unexpected <annotation> appears at line 107 column 16
  line 107 of file:/home/benson/x/tip/webservices/doc/en/RosetteTextAnalyzer.wsdl

Failed to parse a schema.


so it's clear that more information about the problem is possible.


> Very unhelpful error message for wsdl2java problem with documentation annotations
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1500
>                 URL: https://issues.apache.org/jira/browse/CXF-1500
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>         Attachments: RosetteTextAnalyzer.wsdl
>
>
> I am trying to run wsdl2java on a WSDL file with some doc annotations. I get the following. I will attach the file. It doesn't have the annotations on line 0!
> bim-1330% $CXF_HOME/bin/wsdl2java -d src -server /home/benson/x/tip/webservices/doc/en/RosetteTextAnalyzer.wsdl
> WSDLToJava Error: Thrown by JAXB : Unexpected <annotation> appears at line 0 column 0

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


[jira] Commented: (CXF-1500) Very unhelpful error message for wsdl2java problem with documentation annotations

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

Glen Mazza commented on CXF-1500:
---------------------------------

I don't know what we can do about it--that error message comes from xjc, CXF is probably just dutifully returning it without modification.  I wonder if the problem is that we are using an older version of xjc with CXF, or if we are using a different processing mechanism (StAX? SAX?) than xjc standalone that results in line numbers not being available.  

> Very unhelpful error message for wsdl2java problem with documentation annotations
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1500
>                 URL: https://issues.apache.org/jira/browse/CXF-1500
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>         Attachments: RosetteTextAnalyzer.wsdl
>
>
> I am trying to run wsdl2java on a WSDL file with some doc annotations. I get the following. I will attach the file. It doesn't have the annotations on line 0!
> bim-1330% $CXF_HOME/bin/wsdl2java -d src -server /home/benson/x/tip/webservices/doc/en/RosetteTextAnalyzer.wsdl
> WSDLToJava Error: Thrown by JAXB : Unexpected <annotation> appears at line 0 column 0

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


[jira] Commented: (CXF-1500) Very unhelpful error message for wsdl2java problem with documentation annotations

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

Benson Margulies commented on CXF-1500:
---------------------------------------

The file is legitimately illegitimate, but the message really needs improving.

> Very unhelpful error message for wsdl2java problem with documentation annotations
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1500
>                 URL: https://issues.apache.org/jira/browse/CXF-1500
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>         Attachments: RosetteTextAnalyzer.wsdl
>
>
> I am trying to run wsdl2java on a WSDL file with some doc annotations. I get the following. I will attach the file. It doesn't have the annotations on line 0!
> bim-1330% $CXF_HOME/bin/wsdl2java -d src -server /home/benson/x/tip/webservices/doc/en/RosetteTextAnalyzer.wsdl
> WSDLToJava Error: Thrown by JAXB : Unexpected <annotation> appears at line 0 column 0

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


[jira] Updated: (CXF-1500) Very unhelpful error message for wsdl2java problem with documentation annotations

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

Benson Margulies updated CXF-1500:
----------------------------------

    Attachment: RosetteTextAnalyzer.wsdl

Example wsdl that gets  the error.

> Very unhelpful error message for wsdl2java problem with documentation annotations
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-1500
>                 URL: https://issues.apache.org/jira/browse/CXF-1500
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1
>            Reporter: Benson Margulies
>         Attachments: RosetteTextAnalyzer.wsdl
>
>
> I am trying to run wsdl2java on a WSDL file with some doc annotations. I get the following. I will attach the file. It doesn't have the annotations on line 0!
> bim-1330% $CXF_HOME/bin/wsdl2java -d src -server /home/benson/x/tip/webservices/doc/en/RosetteTextAnalyzer.wsdl
> WSDLToJava Error: Thrown by JAXB : Unexpected <annotation> appears at line 0 column 0

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