hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
191 stars 98 forks source link

Enable support for Jersey Bean Validation JSR 349 #56

Closed philiptran closed 9 years ago

philiptran commented 10 years ago

Hi,

First of all, thanks for the great Jersey connector. It saves my days.

I try to look for documentation on how to enable support for Jersey Bean Validation JSR349 but no avail. I checked the jersey-all bundle and it seems that this feature is not currently supported. Is there any plan to support JSR 349? Thank you.

hstaudacher commented 9 years ago

No there is not plan. But you don't need to wait!

The jersey-all bundle is just a "easier" way to consume jersey. You can also use the single jar provided by Jersey. Jersey also ships as bundles. So, go ahead an just add the bean validation bundle to your runtime.

Asisranjan commented 6 years ago

Hi hstaudacher ,

Integrated jersey bean validation. It works fine. But getting below exception..The exceptionmapper is not invoked though i have one for this.

javax.servlet.ServletException: javax.validation.ConstraintViolationException at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489) at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76)

Thanks Asisranjan Nayak