Weblogic 10.3.3 trying to load org.eclipse.persistence.jpa.PersistenceProvider instead of configured Hibernate Provider

前端 未结 3 2076
渐次进展
渐次进展 2021-01-03 08:48

Good Day all ,

I am having this problem since many days now , I was able to successfully deploy JPA2.0 appliaction on weblogic 10.3.3 , the application can run sele

3条回答
  •  感动是毒
    2021-01-03 09:05

    Below tip may also be helpfull for someone having the same problem

    Please note that in order to run your JPA2.0 application on weblogic10.3.3 which is JPA1.0 compliant you will have to rename your persistence.xml to something like foo.xml and mentione the name of this xml file in your applicationContext.xml as (I am using Spring here )

    
            
            
            
        
    

    rename the persistenceUnit and dataSource according to the beans you have defined in your application

    and you will have to define package exclusions in your weblogic.xml file as

    http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd http://xmlns.oracle.com/weblogic/weblogic-web-app http://xmlns.oracle.com/weblogic/weblogic-web-app/1.1/weblogic-web-app.xsd"> 10.3.3

    
        false
        
        
            antlr.*
            org.apache.commons.*
            org.apache.xmlbeans.*
            org.springframework.*
            org.hibernate.*
    
            org.hibernate.validator.*
    
            javax.persistence.*
            org.joda.*
        
    
    

    I invested few days to resolve the problem , and sharing the solution hoping it might benefit someone someday cheers.

    Please find all the other details on my below blog post

    http://javaiscoool.blogspot.com/2012/12/deploy-jpa20-application-on-weblogic1033.html

提交回复
热议问题