You should be able to delete the one from your web module. If that
works, it's a bug that one is put in the web module.

Matt


On 9/8/07, dev dev <[EMAIL PROTECTED]> wrote:
> I found the problem.
>
> I already had it in the "core"/src/main/resource/hibernate.cfg.xml.
>  <mapping class="com.mycompany.app.model.Person"/>
>
> but you also need to add it  to "web"/src/main/resource/hibernate.cfg.xml as
> well. This seems to be a minor bug to me.
>
> Thanks Matt
>
> dev
>
> On 9/7/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> >
> > You need to add it to core/src/main/resources/hibernate.cfg.xml.
> >
> > Matt
> >
> > On 9/7/07, dev dev <[EMAIL PROTECTED]> wrote:
> > > Using appfuse-modular-spring as the base, i'm trying to create a Person
> > > screen following the tutorials and for web framework, i use
> > > http://appfuse.org/display/APF/Using+Spring+MVC
> > >  tutorial. Run mvn integration-test at the end to the
> > > tutorial and everything build successfully. However, got this error when
> > > launched (mvn jetty:run-war).
> > >
> > > Data Access Failure
> > >
> > >  Unknown entity: com.mycompany.app.model.Person; nested exception is
> > > org.hibernate.MappingException: Unknown entity:
> > > com.mycompany.app.model.Person.
> > > Here is what i added to the ApplicationContext.xml. I must be missing
> > some
> > > Person wiring somewhere.
> > >
> > >  <bean id="personManager"
> > > class="com.mycompany.app.service.impl.GenericManagerImpl ">
> > >         <constructor-arg>
> > >             <bean
> > > class="com.mycompany.app.dao.hibernate.GenericDaoHibernate"
> > > autowire="byType">
> > >                 <constructor-arg value=" com.mycompany.app.model.Person
> > "/>
> > >             </bean>
> > >         </constructor-arg>
> > >     </bean>
> > >
> > > Thanks
> > > dev
> > >
> >
> >
> > --
> > http://raibledesigns.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


-- 
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to