anjali wrote:
I have deployed a CMT bean in Weblogic 8.1 and packaged the hibernate libraries in the ear. But to my surprise, I found that when weblogic starts it complains with NoClassDef Error for hibernate classes like HibernateException . Then I placed the jars in weblogic classpath and it worked fine. Why ear classloader can't load the hibernate jars i dont undestand if all jars are in ear.
The simplest way to get it done in weblogic 8.1 is to put hibernate jars into EAR's APP-INF/lib directory. This weblogic-specific feature loads classes in that jars with EJB classloader. You hibernate classes will be available for EJB and WAR modules.
Hope this helps.