[jboss-jira] [JBoss JIRA] (WFLY-4027) RESTEasy ViolationReport is not processed by JAXB provider
Harald Wellmann (JIRA)
issues at jboss.org
Tue Oct 28 11:39:35 EDT 2014
Harald Wellmann created WFLY-4027:
-------------------------------------
Summary: RESTEasy ViolationReport is not processed by JAXB provider
Key: WFLY-4027
URL: https://issues.jboss.org/browse/WFLY-4027
Project: WildFly
Issue Type: Bug
Components: REST
Affects Versions: 9.0.0.Alpha1, 8.1.0.Final, 8.2.0.CR1
Reporter: Harald Wellmann
Assignee: Stuart Douglas
When used in combination with Bean Validation, RESTEasy should wrap validation errors in a {{ValidationReport}} which should be included in the REST response, marshalled to JSON or XML, depending on the content type.
This does not work currently in WildFly 8.1.0.Final.
The issue was reported in RESTEASY-1054. and is marked as fixed in RESTEasy 3.0.9.Final.
However, I can still reproduce the issue with a local build of WildFly 8.2.0.CR1-SNAPSHOT (from the 8.x branch) which includes RESTEasy 3.0.10.Final.
Going back to WildFly 8.1.0.Final, the issue no longer occurs when I add
{code}
<module name="javax.xml.bind.api"/>
{code}
to the {{module.xml}} descriptor of {{org.jboss.resteasy.resteasy-validator-provider-11}}.
The same fix works for 8.2.0.CR1-SNAPSHOT.
Looking at the module descriptor, it seems that 9.0.0.Alpha1 is also affected (but I did not test my sample on 9.0.0.Alpha1).
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
More information about the jboss-jira
mailing list