When Compiling Imaging API Application, Error "Exception thrown in Javac: class file for javax.persistence.CascadeType not found" Occurs (Doc ID 1533691.1)

Last updated on MAY 02, 2017

Applies to:

Oracle WebCenter Content: Imaging - Version 11.1.1.3.0 and later
Information in this document applies to any platform.

Symptoms

When creating a JDeveloper project using the Imaging API for Java, the following error occurs when compiling the IntroSample class.

Error: Exception thrown in Javac: class file for javax.persistence.CascadeType not found
Project: C:\JDeveloper\mywork\IPMTesting\IPM\IPM.jpr
D:\mw\Oracle_ECM1\ipm\lib\imaging-client.jar!\oracle\imaging\Application.class
Warning: /D:/mw/Oracle_ECM1/ipm/lib/imaging-client.jar/oracle/imaging/Application.class: warning: Cannot find annotation method 'name()' in type 'javax.persistence.Entity': class file for javax.persistence.Entity not found
Warning: /D:/mw/Oracle_ECM1/ipm/lib/imaging-client.jar/oracle/imaging/Application.class: warning: Cannot find annotation method 'value()' in type 'javax.persistence.DiscriminatorValue': class file for javax.persistence.DiscriminatorValue not found
Warning: /D:/mw/Oracle_ECM1/ipm/lib/imaging-client.jar/oracle/imaging/Application.class: warning: Cannot find annotation method 'mappedBy()' in type 'javax.persistence.OneToOne': class file for javax.persistence.OneToOne not found
Warning: /D:/mw/Oracle_ECM1/ipm/lib/imaging-client.jar/oracle/imaging/Application.class: warning: Cannot find annotation method 'cascade()' in type 'javax.persistence.OneToOne'

 

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