This discussion is archived
2 Replies Latest reply: Jan 30, 2013 1:20 AM by RenévanWijk RSS

JAR builder puts JPA1 into fullclient.jar instead of JPA2  - why? (WL 12c)

964272 Newbie
Currently Being Moderated
Hi all,

I was wondering why I couldn't seem to use Criteria in my persistence layer until I realized that I was compiling my code against JPA 1 classes. I then analyzed what the JAR builder does and found this in the output:

Integrating jar -->(1)/(25949)/C:\Oracle\Middleware\modules\javax.persistence_2.0.0.0_1-0-2.jar
Integrating jar <--(1)/(26042)/(93)/C:\Oracle\Middleware\modules\javax.persistence_2.0.0.0_1-0-2.jar

This explains perfectly why I can't use Criteria in my IDE - I'm simply compiling against the wrong JPA API. Can anyone explain to me why the JAR builder (I used com.bea.core.jarbuilder_2.0.0.0.jar which is packaged with WL 12c) doesn't integrate the javax.persistence_2.0.0.0_2-0.jar into the wlfullclient.jar when TopLink + JPA 2 is the default in WL 12c? Is there any way to get JPA2 into the fullclient JAR without any dirty hacks?

Kind regards,
Robert

Edited by: 961269 on Sep 25, 2012 6:30 AM

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points