Got a webapp that was working fine with JBoss 5.0.0.CR2. When I deploy it in 5.0.0.GA, I get:
org.hibernate.MappingException: Association references unmapped class: edu.andrews.its.servies.donate.dao.Premium
I have a webapp that uses hibernate for a few objects. It contains its own WEB-INF/hibernate.cfg.xml, and uses org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean to set up and run this configuration, via the following lines in WEB-INF/applicationContext.xml:
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="configLocation" value="WEB-INF/hibernate.cfg.xml"/> <property name="configurationClass" value="org.hibernate.cfg.AnnotationConfiguration"/> </bean>
<mapping class="edu.andrews.its.services.donate.dao.Premium"/> <mapping resource="edu/andrews/its/services/donate/dao/Organization.hbm.xml"/> <mapping resource="edu/andrews/its/services/donate/dao/Campaign.hbm.xml"/> <mapping resource="edu/andrews/its/services/donate/dao/Donation.hbm.xml"/> <mapping resource="edu/andrews/its/services/donate/dao/DonationLevel.hbm.xml"/>
I have the same problem and I would like to know if you have got some solution and what it is.
I have looked for some information without any succes. If you can help me.
Thanks a lot.