You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2013/09/18 14:25:00 UTC

[jira] [Commented] (TOMEE-1031) Combination of @WebFault and @XmlType annotations leads to invalid XSD (WSDL)

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

Romain Manni-Bucau commented on TOMEE-1031:
-------------------------------------------

Shouldn't the webfault and the jaxb object be two objects and not a single one?

{code}
@WebFault(targetNamespace = "mynamespace")

public class ShowException extends Exception {

    JAXBShowException val;

    ShowException(String val) {
        super();
        this.val = new JAXBShowException(val);
    }

    public String toString() {
        return val.val;
    }

    @XmlType
    public static class JAXBShowException extends Exception {

        String val;

        JAXBShowException(String val) {
            super();
            this.val = val;
        }

        public String toString() {
            return val;
        }

    }
}
{/code}
                
> Combination of @WebFault and @XmlType annotations leads to invalid XSD (WSDL)
> -----------------------------------------------------------------------------
>
>                 Key: TOMEE-1031
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1031
>             Project: TomEE
>          Issue Type: Bug
>         Environment: TomEE 1.5.1, 1.6.0.SNAPSHOT
>            Reporter: Pierre Devreux
>         Attachments: repro.zip
>
>
> This issue is related to the CXF version used : cf https://issues.apache.org/jira/browse/CXF-5124
> Please find in attachment a project
> I've tried to use CXF 2.7.6 instead of initial embedded version, but issue remains.

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