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
What about a second datasource file? It is still present even without ticking JPA facet.
By the way, I noticed that the project structure generated in Eclipse is slightly different from that generated by seam-gen, particularly what concerns production/development/testing configurations. I assume that test configuration is now separated into another project, but how to run development/production configuration in Eclipse, without using ANT?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107473#4107473
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107473