Tagged: twpwhnga
- This topic has 1 reply, 2 voices, and was last updated 18 years ago by
Loyal Water.
-
AuthorPosts
-
Ashley EmeryMemberI am working on a J2EE web project using Hibernate. I have configured the project using the MyEclipse J2EE 1.4 library. When I deploy the project to Tomcat 5.5 using MyEclipse and launch the app. I get the following error:
javax.servlet.ServletException: Servlet execution threw an exceptionroot cause
java.lang.NoClassDefFoundError: javax/transaction/Synchronization
org.hibernate.impl.SessionImpl.<init>(SessionImpl.java:213)
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:473)
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:497)
org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:505)
com.pwcinternal.nms.hibernate.HibernateSessionFactory.getSession(HibernateSessionFactory.java:45)
com.pwcinternal.nms.beans.NMSUser.getSession(NMSUser.java:77)
com.pwcinternal.nms.dbaccess.UserAuthorisation.getDBUser(UserAuthorisation.java:46)
com.pwcinternal.nms.actions.LogonForm.execute(LogonForm.java:50)
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)If I manually add the MyEclipse J2EE 1.4 Jars to the Tomcat path in the Tomcat 5.5 configuration the problem goes away. However I was under the impression that this was not required. Any ideas?
Cheers,
Ashley Emery
BTW I’m using MyEclipse 5.5.1 GAJune 13, 2007 at 11:08 am #271468
Loyal WaterMemberHi Ashley,
Seems like you are missing the jta.jar. You can go through this thread on how to deal with this error.
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=78&t=000014 -
AuthorPosts