Tools for debugging hibernate config

Mark Lester

I get the below distinctly unhelpful stack trace when calling configureSessionFactory. I am assuming it cant find the driver, but it's there (I can import them in the same code). I've tried both PostgreSQL and MySQL Is there a way of getting some more useful debug info out of it ?

Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/SystemException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:270)
    at org.jboss.logging.Logger$1.run(Logger.java:2252)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.logging.Logger.getMessageLogger(Logger.java:2227)
    at org.jboss.logging.Logger.getMessageLogger(Logger.java:2214)
    at org.hibernate.cfg.Configuration.<clinit>(Configuration.java:173)
    at ManageEmployee.configureSessionFactory(ManageEmployee.java:21)
    at ManageEmployee.main(ManageEmployee.java:33)
Caused by: java.lang.ClassNotFoundException: javax.transaction.SystemException
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 9 more
Alexis Dufrenoy

A dependency is missing. If you are using Maven, you can add this to you pom.xml:

<dependency>
    <groupId>javax.transaction</groupId>
    <artifactId>jta</artifactId>
    <version>1.1</version>
</dependency>

If you don't use Maven, you can include the necessary configuration for another build tool or download the jar from here:

http://mvnrepository.com/artifact/javax.transaction/jta/1.1

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Debugging and debugging tools in Elixir?

From Dev

Use tools to config eclipse

From Dev

debugging plunker in chrome developer tools

From Dev

iOS tools for debugging dynamic libraries

From Dev

Lazy mapping with hibernate tools?

From Dev

Lazy mapping with hibernate tools?

From Dev

Java config for Hibernate/JPA?

From Dev

How to config a SpringMVC + Hibernate?

From Java

Skip line while debugging in Chrome developer tools

From Dev

Debugging simultaneously in Intellij/Webstorm and Chrome dev tools

From Dev

Are there any hidden tools in tvOS for Focus Engine debugging?

From Dev

Chrome Dev Tools - Start debugging by function name

From Dev

Tools for Debugging Routing Tables on a Linux Machine?

From Dev

Web.config is not transformed when debugging code

From Dev

how to pass in parameter of hibernate config

From Dev

How to config SpringMVC with Hibernate and SOAP?

From Dev

Kconfig: Why ``CONFIG_DRM_TTM`` is not displayed by kernel config tools?

From Dev

Using Hibernate tools Ant task from Gradle

From Dev

Error connecting to db with jboss tools / hibernate configuration

From Dev

Hibernate tools: how to ignore foreign keys?

From Dev

Hibernate tools: how to ignore foreign keys?

From Dev

Hibernate Tools not recognizing many to many relation

From Dev

Minimize developer tools window while debugging a chrome extension

From Dev

Debugging in Chrome Dev Tools a Hawtio plugin (AngularJS app) deployed in Karaf

From Dev

Forcing Visual Studio Debugging Tools to display useful information

From Dev

How are you supposed to use text editors without debugging tools?

From Dev

Debugging unit tests in Node Tools Visual Studio (NTVS)

From Dev

How are you supposed to use text editors without debugging tools?

From Dev

Xcode Objective-C testing tools and debugging methods

Related Related

  1. 1

    Debugging and debugging tools in Elixir?

  2. 2

    Use tools to config eclipse

  3. 3

    debugging plunker in chrome developer tools

  4. 4

    iOS tools for debugging dynamic libraries

  5. 5

    Lazy mapping with hibernate tools?

  6. 6

    Lazy mapping with hibernate tools?

  7. 7

    Java config for Hibernate/JPA?

  8. 8

    How to config a SpringMVC + Hibernate?

  9. 9

    Skip line while debugging in Chrome developer tools

  10. 10

    Debugging simultaneously in Intellij/Webstorm and Chrome dev tools

  11. 11

    Are there any hidden tools in tvOS for Focus Engine debugging?

  12. 12

    Chrome Dev Tools - Start debugging by function name

  13. 13

    Tools for Debugging Routing Tables on a Linux Machine?

  14. 14

    Web.config is not transformed when debugging code

  15. 15

    how to pass in parameter of hibernate config

  16. 16

    How to config SpringMVC with Hibernate and SOAP?

  17. 17

    Kconfig: Why ``CONFIG_DRM_TTM`` is not displayed by kernel config tools?

  18. 18

    Using Hibernate tools Ant task from Gradle

  19. 19

    Error connecting to db with jboss tools / hibernate configuration

  20. 20

    Hibernate tools: how to ignore foreign keys?

  21. 21

    Hibernate tools: how to ignore foreign keys?

  22. 22

    Hibernate Tools not recognizing many to many relation

  23. 23

    Minimize developer tools window while debugging a chrome extension

  24. 24

    Debugging in Chrome Dev Tools a Hawtio plugin (AngularJS app) deployed in Karaf

  25. 25

    Forcing Visual Studio Debugging Tools to display useful information

  26. 26

    How are you supposed to use text editors without debugging tools?

  27. 27

    Debugging unit tests in Node Tools Visual Studio (NTVS)

  28. 28

    How are you supposed to use text editors without debugging tools?

  29. 29

    Xcode Objective-C testing tools and debugging methods

HotTag

Archive