java - How to enable Weblogic 12.1.2 JPA 2.1 -
i have been deploying our web application weblogic server. however, although able deploy application in new version, app not start , users cannot login. log is:
may 29, 2015 4:38:47 pm org.springframework.web.context.contextloader initwebapplicationcontext severe: context initialization failed org.springframework.beans.factory.beancreationexception: error creating bean name 'entitymanagerfactory' defined in class path resource [applicationcontext.xml]: invocation of init method failed; nested exception java.lang.nosuchmethoderror: javax.persistence.joincolumn.foreignkey()ljavax/persistence/foreignkey; @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1566) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:539) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:476)
i believe happens because weblogic enables jpa 2.0 default (but not sure of it). there way enable jpa 2.1?
ps: using hibernate 4.3.8 , not expert on application servers.
regards.
if can upgrade 12.1.3 jpa 2.1 support included disabled default, can follow their instructions enabling it. amounts putting right jars on classpath can adding top of common/bin/commenv.sh
pre_classpath=$mw_home/oracle_common/modules/javax.persistence_2.1.jar:$mw_home/wlserver/modules/com.oracle.weblogic.jpa21support_1.0.0.0_2-1.jar export pre_classpath
Comments
Post a Comment