[jboss-user] [JBoss Portal] - Re: Data access / persistence - could you help?

JohnnyTheHun do-not-reply at jboss.com
Sat Nov 24 07:02:33 EST 2007


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



More information about the jboss-user mailing list