Thursday, June 2, 2011

Hibernate Troubleshooting

If you have the following errors, just drag the jar file to your lib folder

java.lang.NoClassDefFoundError: org/dom4j/DocumentException
copy this to your lib: dom4j-1.6.1.jar

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
copy this to your lib: slf4j-api-1.6.1.jar

java.lang.NoClassDefFoundError: javax/persistence/EntityListeners
copy this to your lib: hibernate-jpa-2.0-api-1.0.0.Final.jar

org.hibernate.HibernateException: JDBC Driver class not found: org.postgresql.Driver
copy this to your lib: postgresql-9.0-801.jdbc4.jar
download the latest Postgresql jdbc jar file from

java.lang.NoClassDefFoundError: org/apache/commons/collections/map/LRUMap
copy this to your lib: commons-collections-3.1.jar

org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]
copy this to your lib: javassist-3.12.0.GA.jar

java.lang.NoClassDefFoundError: javax/transaction/Synchronization
copy this to your lib: jta-1.1.jar

No comments:

Post a Comment