[jboss-user] [JNDI/Naming/Network] - jboss4.2.2 HIBERNATE JNDI

paul_lmc do-not-reply at jboss.com
Mon Jun 23 09:48:56 EDT 2008


THE HIBERNATE CFG.XML DEPLOY THE SESSIONFACTORY LIKE THIS :

hibernate.dialect=net.sf.hibernate.dialect.MySQLDialect
hibernate.show_sql=true
hibernate.session_factory_name=hibernateJNDI
hibernate.connection.datasource=java:/moreflurish
hibernate.transaction.factory_class=net.sf.hibernate.transaction.JDBCTransactionFactory
hibernate.transaction.manager_lookup_class=net.sf.hibernate.transaction.JBossTransactionManagerLookup


but when the application startup throw this Exception :

java.lang.ClassCastException: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate
	net.sf.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:23)
	net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:204)
	net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:805)
	com.moreflurish.Test.LmcTest.doSomething(LmcTest.java:57)
	org.apache.jsp._1_jsp._jspService(_1_jsp.java:88)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:123)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



ANYONE CAN HELP ME?  THANK YOU!!!!!!

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159938



More information about the jboss-user mailing list