tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: adding validation exception mapper
Date Thu, 09 Apr 2015 13:47:49 GMT
Repository: tomee
Updated Branches:
  refs/heads/master d08f37411 -> bb0bd3908


adding validation exception mapper


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/bb0bd390
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/bb0bd390
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/bb0bd390

Branch: refs/heads/master
Commit: bb0bd39082ce4b74927fd805ed49165d0d9fe928
Parents: d08f374
Author: Romain Manni-Bucau <rmannibucau@apache.org>
Authored: Thu Apr 9 15:47:42 2015 +0200
Committer: Romain Manni-Bucau <rmannibucau@apache.org>
Committed: Thu Apr 9 15:47:42 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/bb0bd390/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
----------------------------------------------------------------------
diff --git a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
index d9a1253..071cd03 100644
--- a/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
+++ b/server/openejb-cxf-rs/src/main/java/org/apache/openejb/server/cxf/rs/CxfRsHttpListener.java
@@ -40,6 +40,7 @@ import org.apache.cxf.jaxrs.provider.JAXBElementProvider;
 import org.apache.cxf.jaxrs.provider.MultipartProvider;
 import org.apache.cxf.jaxrs.provider.PrimitiveTextProvider;
 import org.apache.cxf.jaxrs.provider.SourceProvider;
+import org.apache.cxf.jaxrs.validation.ValidationExceptionMapper;
 import org.apache.cxf.service.invoker.Invoker;
 import org.apache.cxf.transport.DestinationFactory;
 import org.apache.cxf.transport.servlet.BaseUrlHelper;
@@ -440,6 +441,7 @@ public class CxfRsHttpListener implements RsHttpListener {
         instances.add(new JsrProvider());
         instances.add(new WadlDocumentMessageBodyWriter());
         instances.add(EJBAccessExceptionMapper.INSTANCE);
+        instances.add(new ValidationExceptionMapper());
 
         if ("true".equalsIgnoreCase(SystemInstance.get().getProperty("openejb.jaxrs.cxf.add-cxf-providers",
"false"))) {
             instances.add(new WebApplicationExceptionMapper());


Mime
View raw message