thanks a lot Farzad !
But unfortunately, I couldnt find out the right place to modify the parent first class loading policy. The only tag I could find is the one in jboss-web.deployer, which I changed and still end up in the same error. I added the hibernate3.jar in the application.xml.
May be I interpreted it wrongly: this is the chunk of exception I am getting:
Code:
java.lang.ClassCastException: org.hibernate.ejb.HibernatePersistence
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:245)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
thanks
Anil.