According to the JBoss API at org.jboss.portal.cms.util.HibernateUtil thw 
following function should return a Hibernate SessionFactory:

anonymous wrote : static org.hibernate.SessionFactory   
getSessionFactory(java.lang.String jndiName) 
  | 

But I get the following error:


  | java.lang.ClassCastException: 
org.jboss.resource.adapter.jdbc.WrapperDataSource
  |     at 
org.jboss.portal.cms.util.HibernateUtil.getSessionFactory(HibernateUtil.java:42)
  | 

What do I have to do, to get / create a Hibernate Session?

Thanks,
John

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107475#4107475

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107475
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to