Monday, October 14, 2013

Enable jpa 2.0 support on weblogic 10.3.6

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:
@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

1 comment:

Note: Only a member of this blog may post a comment.