• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 737
  • Last Modified:

Error in Tomcat mac os x server

Hi

when i have deployed my struts application onto tomcat running on my Mac OS X Server when i try to login i get the following error.

Oct 5, 2007 9:42:31 AM org.hibernate.impl.SessionFactoryObjectFactory addInstance
INFO: Not binding factory to JNDI, no JNDI name configured
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: javax/transaction/Synchronization

Thi is when calling the 1st method that uses the DB, i think it has something to do with the setup of the server in that i think it needs j2ee but can not seem to fina a download for mac os x.

Hope someone can help.

Thanks in advance.
0
Rosscowie
Asked:
Rosscowie
  • 3
  • 2
1 Solution
 
Bart CremersJava ArchitectCommented:
Make sure jta.jar is on the classpath of the server (in the lib directory) or of the struts application (packaged).
0
 
RosscowieAuthor Commented:
hi when you say the classpath do you mean

/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib

thanks
0
 
Bart CremersJava ArchitectCommented:
It should be the lib directory of the tomcat server.
0
 
Bart CremersJava ArchitectCommented:
And jta.jar comes with the hibernate distribution
0
 
RosscowieAuthor Commented:
thats great got it workin thanks a lot :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now