title: JPA Conflict with Hibernate and Weblogic
body: <p>I am trying to deploy my application and web service to weblogic using the following versions:</p>
  
  <ul>
  <li>Weblogic 10.3.5 </li>
  <li>Hibernate 4.1.1 </li>
  <li>Hibernate JPA API 2.0 </li>
  <li>EJB 2.0</li>
  <li>Java 6</li>
  </ul>
  
  <p>When I call my web service I get the error</p>
  
  <pre><code>&lt;S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;S:Body&gt;
        &lt;ns2:Fault xmlns:ns2="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns3="http://www.w3.org/2003/05/soap-envelope"&gt;
           &lt;faultcode&gt;ns2:Server&lt;/faultcode&gt;
           &lt;faultstring&gt;javax/persistence/OneToMany.orphanRemoval()Z&lt;/faultstring&gt;
          &lt;detail&gt;
             &lt;ns2:exception class="java.lang.NoSuchMethodError" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false" xmlns:ns2="http://jax-ws.dev.java.net/"&gt;
                 &lt;message&gt;javax/persistence/OneToMany.orphanRemoval()Z&lt;/message&gt;
                 &lt;ns2:stackTrace&gt;
                    &lt;ns2:frame class="org.hibernate.cfg.AnnotationBinder" file="AnnotationBinder.java" line="1868" method="processElementAnnotations"/&gt;
                    &lt;ns2:frame class="org.hibernate.cfg.AnnotationBinder" file="AnnotationBinder.java" line="768" method="processIdPropertiesIfNotAlready"/&gt;
  ...
  </code></pre>
  
  <p>I have checked and there is no other persistence api jars included.  </p>
  
  <p>My external jar list is:</p>
  
  <ul>
  <li>ant-jakarta-oro-1.6.jar</li>
  <li>antlr-2.7.2.jar</li>
  <li>aspectjrt-1.5.3.jar</li>
  <li>cactus.core.framework.uberjar.javaEE.14-1.8.1.jar</li>
  <li>cactus.integration.maven2-1.8.1.jar</li>
  <li>commons-beanutils-1.8.0.jar</li>
  <li>commons-chain-1.2.jar</li>
  <li>commons-codec-1.3.jar</li>
  <li>commons-collections-3.2.1.jar</li>
  <li>commons-digester-1.8.jar</li>
  <li>commons-fileupload-1.1.1.jar</li>
  <li>commons-httpclient-2.0-rc2.jar</li>
  <li>commons-lang3-3.0.1.jar</li>
  <li>commons-logging-1.1.1.jar</li>
  <li>commons-validator-1.3.1.jar</li>
  <li>dom4j-1.6.1.jar</li>
  <li>generic-web-service-schema-4.0.jar</li>
  <li>hibernate-commons-annotations-4.0.1.Final.jar</li>
  <li>hibernate-core-4.1.1.Final.jar</li>
  <li>hibernate-jpa-2.0-api-1.0.1.Final.jar</li>
  <li>httpunit-1.6.jar</li>
  <li>javassist-3.15.0-GA.jar</li>
  <li>jboss-logging-3.1.0.GA.jar</li>
  <li>jboss-transaction-api_1.1_spec-1.0.0.Final.jar</li>
  <li>js-1.5R4.1.jar</li>
  <li>jstl-1.0.2.jar</li>
  <li>jtidy-4aug2000r7-dev.jar</li>
  <li>junit-3.8.2.jar</li>
  <li>nekohtml-1.9.6.jar</li>
  <li>oracle.webservices.standalone.client-11.1.1.jar</li>
  <li>oro-2.0.8.jar</li>
  <li>standard-1.0.6.jar</li>
  <li>struts-core-1.3.10.jar</li>
  <li>struts-el-1.3.10.jar</li>
  <li>struts-taglib-1.3.10.jar</li>
  <li>struts-tiles-1.3.10.jar</li>
  <li>weblogic-webservices-api-1.1.0.0.jar</li>
  <li>xercesImpl-2.8.1.jar</li>
  <li>xml-apis-1.3.03.jar</li>
  <li>xmlParserAPIs-2.2.1.jar</li>
  </ul>
  
  <p>I have checked these and the Hibernate JPA is the only one with the OneToMany class.  I know the problem is a conflict between JPA 1.0 and JPA 2.0 so I just want to know if there is a way around the conflict.</p>
  
  <p>Thanks</p>