in my project im using a DB with my sql and eclipse , tomcat
whene i did the configuration of hibernate i chose jboos as a server and now when im trying to run my jsp page i get this error
Servlet.service() for servlet [jsp] in context with path [/myEBook] threw exception [javax.servlet.ServletException: java.lang.ExceptionInInitializerError] with root cause
java.lang.ClassCastException: net.sf.hibernate.transaction.JBossTransactionManagerLookup cannot be cast to net.sf.hibernate.transaction.TransactionFactory
if you need more detail just ask , need help
You aren’t running JBOSS; you’re running Tomcat.
The package
net.hibernateis pretty old. Hibernate 3 packages all start withorg.hibernate. I’d recommend upgrading those right away.I’d recommend looking at this answer. If you must have JTA, be sure to have the JTA JARs in your WEB-INF/lib and some implementation like JOTM, too.