-
Notifications
You must be signed in to change notification settings - Fork 301
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
Warning: Error parsing validation.xml when jax-rs #1087
Comments
I'm not sure, but I think it's complaining about the schemaLocation in your validation.xml file... I'd try changing it to |
As @anaelcarvalho said, it looks to be complaining about the URL in your XML file. In the sample you posted, there is a space in the URL. You also look to have tried to specify the file itself, which I don't think you should do based on the example in the docs. Try changing from: <validation-config
xmlns="http://jboss.org/xml/ns/javax/validation/configuration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/xml/ns/javax/validation/configuration validation-configuration-1.1.xsd" version="1.1"> to <validation-config
xmlns="http://jboss.org/xml/ns/javax/validation/configuration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://jboss.org/xml/ns/javax/validation/configuration" version="1.1"> |
Hi @anhdv1 - have you tried with the corrected URL? |
Closing this as resolved. Please reopen if there's still a problem after making the change. |
i create web app with : Bean validation ( use hibernateValidator 5.1.0) and Jax-RS , JEE7
when i display data the first .
it return Exception and it is only occured at the first. ( the scecond and more don't display this Exception)
file validation.xml
i copy lib hibernate into payara_home/glassfish/lib
Rest Application file
i think that the cause is i am using HibernateValidator but in Payara 4.1.1.163, default is Eclipselink.
Thanks you.
The text was updated successfully, but these errors were encountered: