JavaBeat

  • Home
  • Java
    • Java 7
    • Java 8
    • Java EE
    • Servlets
  • Spring Framework
    • Spring Tutorials
    • Spring 4 Tutorials
    • Spring Boot
  • JSF Tutorials
  • Most Popular
    • Binary Search Tree Traversal
    • Spring Batch Tutorial
    • AngularJS + Spring MVC
    • Spring Data JPA Tutorial
    • Packaging and Deploying Node.js
  • About Us
    • Join Us (JBC)
  • Privacy

Hibernate Exception – javassist.util.proxy.MethodFilter

December 25, 2013 by Krishna Srinivasan Leave a Comment

If you are using Hibernate 4, you would hit this exception while setting up the first hibernate application. The missing library is javassist. To resolve this problem, either manually download the JAR file or add the below maven try to your project’s POM.xml. Once you added these library, the error will be fixed. This library […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Hibernate Exception – Unable to load class com.mysql.jdbc.Driver

December 25, 2013 by Krishna Srinivasan Leave a Comment

If you are using MySQL database for your hibernate application, then you have to add the MYSQL driver library in your classpath for accessing the database. If you fail to do that, you will end up in the following exception. You can manually download that jar file or add the maven entry as below. Exception […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Hibernate Exception – org/dom4j/DocumentException

December 25, 2013 by Krishna Srinivasan Leave a Comment

If you are setting up the first hibernate application, there is chance that you would get the following exception if the required dependency is missed. The reason is you have not included the dom4j-1.6.1.jar file which is used internally by the hibernate core for parsing the XML documents. The result will be the following exception. Either you […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

openSession and getCurrentSession Difference in Hibernate

December 24, 2013 by Krishna Srinivasan Leave a Comment

When you get a session from the session factory object in hibernate, either you can use openSession or getCurrentSession. If you are using the openSession method, it opens a new session freshly. If you use getCurrentSession, it gets the current session from the existing thread context instead of opening a new session. You should have […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Hibernate Dependency Library Exception (JTA) : javax/transaction/SystemException

December 24, 2013 by Krishna Srinivasan Leave a Comment

If you are developing hibernate application, you would encounter the following exception if you have not added the jta-1.1.jar in your libraries. This JAR file is used in the hibernate transaction development. However, when you run the configuration itself will throw the exception if the JAR file is not found. Lets see how you can get […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Hibernate Dependency Library Exception (JPA) : javax/persistence/SharedCacheMode

December 24, 2013 by Krishna Srinivasan Leave a Comment

If you are developing hibernate application, you would encounter the following exception if you have not added the hibernate-jpa-2.1-api-1.0.0.Final.jar in your libraries. Lets see how you can get this JAR file. Exception Trace

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Why Jandex and Classmate Libraries Used in Hibernate 4.2 Core

December 24, 2013 by Krishna Srinivasan Leave a Comment

Hibernate uses various third part dependencies internally to resolve the various problems. One of the dependency is Jandex (jandex-1.1.0.Final.jar) and Classmate (classmate-1.0.0) libraries which are not required for the hibernate’s core functionality. If you don’t add them to the libraries, you would get the below exceptions. Jandex and Classmate are not required for the main […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Hibernate Dependency Library Exception (Commons Annotations) : org/hibernate/annotations/common/reflection/MetadataProvider

December 24, 2013 by Krishna Srinivasan Leave a Comment

If you miss the Hibernate commons annotations library hibernate-commons-annotations-4.0.4.Final.jar, then you would get java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/MetadataProvider exception. Exception Trace

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Hibernate Dependency Library Exception (JBoss Logging) : org/jboss/logging/BasicLogger

December 24, 2013 by Krishna Srinivasan Leave a Comment

If you are developing hibernate application, it is internally using the JBoss logging framework. You have to add the jboss-logging-3.1.4.GA.jar to resolve the dependency. Also you can get JAR files from the maven repository. If the JAR is not in the libraries, you would get the following exception. Exception Trace

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

Hibernate Configuration Resource Loading Problems

December 24, 2013 by Krishna Srinivasan Leave a Comment

It is one of the very common exception thrown when you start setting up the environment for hibernate application. hibernate.cfg.xml is the default configuration file for defining the hibernate database configurations and mappings. This file has to be copied in the classpath directory. In this scenario, you always keep this file under the “src” folder […]

Filed Under: Hibernate Tagged With: Hibernate 4 Tutorials

  • « Previous Page
  • 1
  • 2
  • 3
  • 4
  • …
  • 6
  • Next Page »

Follow Us

  • Facebook
  • Pinterest
JavaBeat

FEATURED TUTORIALS

Servlet Life Cycle: Explanation

Servlet Life Cycle: Explanation

What is new in Java 6.0 Collections API?

The Java 6.0 Compiler API

The Java 6.0 Compiler API

Copyright © by JavaBeat · All rights reserved

This website uses cookies to ensure you get the best experience on our website. Learn more.