facebook

NoClassDefFoundError javax/transaction/Synchronization

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #271456 Reply

    Ashley Emery
    Member

    I 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 exception

    root 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 GA

    #271468 Reply

    Loyal Water
    Member

    Hi 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

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: NoClassDefFoundError javax/transaction/Synchronization

This topic is marked as closed to new replies, however your posting capabilities still allow you to do so.

You must be logged in to post in the forum log in