Weblogic 10.3.6 has the jars for support jpa 2.0 installed but not enabled. To enable jpa 2.0 support add in the commEnv.cmd (windows) or commEnv.sh (linux) the following:
For windows:
For Linux:
Make sure you add them after the MW_HOME declaration
For windows:
@rem Enable JPA2.0 support
set PRE_CLASSPATH=%PRE_CLASSPATH%;%MW_HOME%\modules\com.oracle.jpa2support_1.0.0.0_2-0.jar;%MW_HOME%\modules\javax.persistence_1.0.0.0_2-0-0.jar;
For Linux:
# Enable JPA2.0 support
PRE_CLASSPATH="${PRE_CLASSPATH}:${MW_HOME}/modules/com.oracle.jpa2support_1.0.0.0_2-0.jar:${MW_HOME}/modules/javax.persistence_1.0.0.0_2-0-0.jar"
export PRE_CLASSPATH
Make sure you add them after the MW_HOME declaration
Thanks a lot.
ReplyDelete