[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2856) Class that bean class [org.springframework.orm.hibernate.HibernateTemplate] depends on not found; nested exception is java.lang.NoClasse.HibernateTemplate] depends on not found; nested exception is java.lang.NoClass

chandra sekhar (JIRA) noreply at atlassian.com
Fri Sep 21 03:05:15 EDT 2007


Class that bean class [org.springframework.orm.hibernate.HibernateTemplate] depends on not found; nested exception is java.lang.NoClasse.HibernateTemplate] depends on not found; nested exception is java.lang.NoClass
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HHH-2856
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2856
             Project: Hibernate3
          Issue Type: New Feature
    Affects Versions: 3.2.0.ga
         Environment: Hibernate v3.2.0, Spring, HSQLDB
            Reporter: chandra sekhar


Hi,

  I'm using Hibernate v3.2.0 integrated with Spring framework. I'm trying to access through  HibernateTemplate(org.springframework.orm.hibernate.HibernateTemplate) for which i've mentioned a bean in my spring-servlet.xml as below.

                  <bean id="hibernateTemplate" class="org.springframework.orm.hibernate.HibernateTemplate">
		<property name="sessionFactory">
			<ref bean="sessionFactory"/>
		</property>
	</bean>

i've deployed this application on tomcat and when i restart the tomcat server. the following error is coming.

org.springframework.beans.factory.BeanDefinitionStoreException: Error registering bean with name 'hibernateTemplate' defined in ServletContext resource [/WEB-INF/employee-servlet.xml]: Class that bean class org.springframework.orm.hibernate.HibernateTemplate] depends on not found; nested exception is java.lang.NoClass
DefFoundError: net/sf/hibernate/HibernateException
java.lang.NoClassDefFoundError: net/sf/hibernate/HibernateException


what i found out was HibernateException class is present in or/hibernate package in hibernate3.jar. Can anyone please help me out of this?


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list