I am trying to deploy my web application to WebLogic 11gR1.
I use JPA1.0 + Hibernate 3.3.
When I deploy my web app via WebLogic console.
I ran into this error
id "-1" from server "CarbeionServer-0". Exception is: "java.lang.ClassNotFoundException: org.hibernate.HibernateException: This error c
ould indicate that a component was deployed on a cluster member but not other m
embers of that cluster. Make sure that any component deployed on a server that i
s part of a cluster is also deployed on all other members of that cluster
Once I define a persistence provider in persistence.xml, I got this error. If I delete it then it works fine.
I have put all hibernate related jar in WEB-INF/lib and set pre-load the classes in WEB-INF-lib in weblogic.xml
Weblogic should be able to load those jar to deal with persistence.xml
Did you try finding about this? I mean, do you know cause of this error ?
Chih-Wei Lee wrote:
"HibernateEntityManagerFactory violate class loading constraint"
Joined: Feb 20, 2008
Unfortunately I don't know what causes this error. I think it might be my Spring configuration,
but the same configuration works on Tomcat.
I think the configuration is quite simple and don't know why it just doesn't work on WebLogic.
I have been trying to move a web app from Tomcat to Weblogic during this weekend.
It just doesn't work on WebLogic and so many errors during the deployment. Sometimes, WebLogic just hang there and doesn't tell me what the error is.
I just feel frustrated and decide to stick with Tomcat.
Although it's not a complete application server like WebLogic, but it did gave me the most flexibility to integrate with other frameworks or functions.
If you know the answer, I still appreciate you can tell me. Maybe I will still try it on WebLogic.