[solved] ContextLoaderListener java.lang.NoClassDefFoundError: Lorg/hibernate/SessionFactory;

i’m a problem…i’m a problem …like a problem to solve

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: Lorg/hibernate/SessionFactory;

To solve the problem at maven. Include at pom.xml

        <dependency>
		<groupId>hibernate-commons-annotations</groupId>
		<artifactId>hibernate-commons-annotations</artifactId>
		<version>3.0.0.GA</version>
	</dependency>
<repositories>
    <repository>
      <id>JBoss repository</id>
      <url>http://repository.jboss.com/maven2/</url>
    </repository>
  </repositories>

Without maven

   Download Hibernate.jar final at http://www.java2s.com/Code/Jar/h/Downloadhibernatecore360Finaljar.htm
   Adding to your library at project
   

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s