I am getting the exception in the title when I try to use Jenkins to deploy a WAR file to a WebLogic (12) server. When I deploy the same WAR file to my localhost WebLogic (10.3.6) everything works ok. I'm developing in NetBeans 7.4, which has Hibernate 3.6.10, and my local WebLogic has been updated to work with JPA 2.0.
I've tried everything I've seen on the Web but I can't resolve this error. My persistence.xml defines the persistence provider (Hibernate) and that's all. My weblogic.xml has the tags to use application JARS antlr.*, org.hibernate.*, and javax.persistence.* (I'm writing this from memory so bear with me a little). If I remove javax.persistence.* I get a java.lang.NoSuchFieldError: INSTANCE exception.
Everything I've read points to two different versions of persistence and that is causing the problems. I figured if I told weblogic to use everything that was copied into the WAR file (/lib) that it would use that. I can't give any information about the Web server because all I know is that it's using WebLogic 12.
Oh, one other thing, I'm not using Spring (which is what a lot of posts I read dealt with). I'm using Hibernate for persistence with an Oracle DB and the Web server is WebLogic 12.
Any thoughts or ideas?
Thanks.