Loading a Java Class Which Imports JAXB Classes' Into The Database Fails With ORA-29521 (Doc ID 1144930.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle XML Developers Kit - Version 11.2.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 15th Dec 2016***

Symptoms

Loading a Java class which refers to JAXB classes can raises the error ORA-29521: referenced name <java class name> could not be found

Here is an example of a more complete error:

Loading a java class that references the classes javax.xml.bind.JAXBContext and javax.xml.bind.JAXBException, raises the error
ORA-29521: referenced name javax/xml/bind/JAXBException could not be found
ORA-29521: referenced name javax/xml/bind/JAXBContext could not be found

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms