-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassNotFoundException when used a EJB @Stateless
backend JAXRS Resource with Bean Validation
#22317
Comments
@hantsy Commented https://github.com/hantsy/ee8-sandbox/tree/master/jaxrs-issue22317 |
@djmj Commented When i inspect glassfish libraries it seems like hibernate-validator-cdi-6.0.2.Final.jar is just missing. I added this to my application and it works. |
|
I had the same problem and after check glassfish5 logs it was hibernate-validator-cdi-6.0.2.Final.jar that was missing. I just download it and add it to glassfish5/glassfish/modules restart the server and it works. |
The class org.hibernate.validator.cdi.internal.interceptor.ValidationInterceptor |
Downloading hibernate-validator-cdi-6.0.2.Final.jar and including it in the glassfish5/glassfish/modules works. |
Indeed, missing file is hibernate-validator-cdi-6.0.2.Final.jar. Just download it here and include it in the glassfish5/glassfish/modules.... |
This issue has been marked as inactive and old and will be closed in 7 days if there is no further activity. If you want the issue to remain open please add a comment |
This exception is only occurred when used a
@Stateless
EJB as JAXRS Resource.I have written a sample for reproducing this issue.
Message
is a POJO with Bean validation annotations.Here if I used a CDI
RequestScoped
, it worked, but when I used a@Stateless
instead, I will get the following exception when I start up the application .Environment Details
GlassFish Version (and build number): v 5.0
JDK version:
OS: Windows 10
Database: Glassfish built-in Derby
The text was updated successfully, but these errors were encountered: