Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » javax.validation.ConstraintViolationException not found
javax.validation.ConstraintViolationException not found [message #1699041] Fri, 19 June 2015 18:15 Go to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 17
Registered: December 2012
Junior Member
Hi

i have updated my existing project to the target platform of Eclipse 4.4.2.
This goes as well for moxy 2.5.1 to 2.7.0.

Now I get this exception:
Caused by: java.lang.ClassNotFoundException: javax.validation.ConstraintViolationException cannot be found by org.eclipse.persistence.moxy_2.7.0.v20150619-f94d156

I tried to disable validation like this
TreeMap<String, Object> map = new TreeMap<>();
map.put( UnmarshallerProperties.BEAN_VALIDATION_MODE, BeanValidationMode.NONE);
			
JAXBContext context = JAXBContext.newInstance(new Class[] { .... }, map);
Unmarshaller unmarshaller = context.createUnmarshaller();


But this did not help.

Can someone help?

thx
Frank
Re: javax.validation.ConstraintViolationException not found [message #1699097 is a reply to message #1699041] Sat, 20 June 2015 21:33 Go to previous messageGo to next message
Lukas JungmannFriend
Messages: 34
Registered: November 2013
Location: Prague, Czech Republic
Member
Hi,

it's a bug Sad I filed https://bugs.eclipse.org/bugs/show_bug.cgi?id=470648 - workaround should be to make sure that javax.validation is available in your target platform. I am not sure if 1.0 would be sufficient, if not you can find 1.1 on eclipselink update sites, ie http://download.eclipse.org/rt/eclipselink/milestone-updates/2.6.1.v20150605-31e8258_RC1/plugins/

thanks,
--lukas
Re: javax.validation.ConstraintViolationException not found [message #1699176 is a reply to message #1699097] Mon, 22 June 2015 10:38 Go to previous messageGo to next message
Frank Benoit is currently offline Frank BenoitFriend
Messages: 17
Registered: December 2012
Junior Member
Thanks that solved it.
Re: javax.validation.ConstraintViolationException not found [message #1714307 is a reply to message #1699176] Wed, 11 November 2015 15:52 Go to previous messageGo to next message
Jon Passki is currently offline Jon PasskiFriend
Messages: 31
Registered: November 2015
Member

Hi Frank,

How did you solve it specifically? I'm having the same issue with a target platform project that's using http://download.eclipse.org/rt/eclipselink/updates/ as the MOXy update site and currently version 2.6.1.v20150916-55dc7c3 of the plugin. When I click on the "Content" tab in the target definition, I do not see javax.validation. (I see a bunch of over javax.* packages like javax.inject). I can see the javax.validation .jar whilst browsing to http://download.eclipse.org/rt/eclipselink/updates/2.6.1.v20150916-55dc7c3/plugins/, though.

Cheers!
Re: javax.validation.ConstraintViolationException not found [message #1714622 is a reply to message #1714307] Sat, 14 November 2015 04:11 Go to previous message
Jon Passki is currently offline Jon PasskiFriend
Messages: 31
Registered: November 2015
Member

Just figured it out. Makes sense now Smile

[Updated on: Sat, 14 November 2015 04:13]

Report message to a moderator

Previous Topic:Possible BUG: @XmlPaths and 'Self Mappings'
Next Topic:HELP! What are the possible types of value an @XmlPath can have?
Goto Forum:
  


Current Time: Mon Mar 08 01:25:03 GMT 2021

Powered by FUDForum. Page generated in 0.02403 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top