tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neven Cvetkovic <neven.cvetko...@gmail.com>
Subject Re: Trouble loading MS SQl Server database driver in Tomcat 7.0.37
Date Thu, 04 Apr 2013 16:54:58 GMT
David that helps a bit more... See comments below:

On Thu, Apr 4, 2013 at 12:44 PM, <dvosbury1@aol.com> wrote:

>
>
> Here is the localhost log file also. This might be useful. This is after
> the app is deployed and the home page launched.
>
> Apr 04, 2013 12:36:48 PM org.apache.catalina.core.ApplicationContext log
> SEVERE: StandardWrapper.Throwable
> * java.lang.NoClassDefFoundError: javax/transaction/Synchronization
>         at
> org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1005)
> *
> *        at
> com.systemsmadesimple.hibernate.HibernateUtil.<clinit>(HibernateUtil.java:43)
> *
>

This is the class initialization (clinit) part that is failing.


> Caused by: java.lang.ClassNotFoundException: javax.transaction.
> Synchronization
>          at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1713)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)
>         ... 23 more
>
> Apr 04, 2013 12:36:48 PM org.apache.catalina.core.StandardContext
> loadOnStartup
> SEVERE: Servlet /SystemsMadeSimple threw load() exception
> * java.lang.ClassNotFoundException: javax.transaction.Synchronization
> *


So you seem to be missing *javax.transaction.Synchronization* which should
be in jta.jar file. Now, Tomcat does not have transaction manager like
JBoss (full-blown appserver), so if you have a need for one, you would need
to use an external transaction manager, such as SimpleJTA, Atomikos, etc...
Now, my guess is that you don't need that since you have a single
datasource and you can leverage database (JDBC) transaction manager instead.

So, it seems your culprit is the hibernate.cfg.xml configuration that sets
up the transaction manager...

Can you post the full *hibernate.cfg.xml* one more time (remove any
passwords)...

Cheers
Neven

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message