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
Environment: Hibernate v3.2.0, Spring, HSQLDB
Reporter: chandra sekhar
Original Estimate: 3 days
Remaining Estimate: 3 days
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: