15:09:05,818 [ContainerBackgroundProcessor[StandardEngine[Catalina]] org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'ecdata.sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: null
java.lang.NoClassDefFoundError
at org.hibernate.tuple.EntityMetamodel.class$(EntityM etamodel.java:41)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityM etamodel.java:122)
at org.hibernate.persister.entity.AbstractEntityPersi ster.<init>(AbstractEntityPersister.java:412)
at org.hibernate.persister.entity.SingleTableEntityPe rsister.<init>(SingleTableEntityPersister.java:108 )
could anyone shed some light on what's causing this exception?
thanks
it's defined as the following:
<bean id="mySessionFactory"
class="org.springframework.orm.hibernate3.LocalSes sionFactoryBean">
<property name="dataSource"><ref bean="myDataSource"/></property>
<property name="mappingLocations">
<list>
<value>/WEB-INF/classes/SubscribedProduct.hbm.xml</value>
<value>/WEB-INF/classes/Subscriber.hbm.xml</value>
<value>/WEB-INF/classes/Subscription.hbm.xml</value>
<value>/WEB-INF/classes/User.hbm.xml</value>
</list>
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">org.hibernate.dialect.Orac le9Dialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.generate_statistics">true</prop>
<prop key="hibernate.use_sql_comments">true</prop>
</props>
</property>
</bean>


Reply With Quote