Using Hibernate Mapping Files from Spring with Dynamic Web Projects... [message #167924] |
Fri, 28 April 2006 19:15 |
Eclipse User |
|
|
|
Originally posted by: delo77.gmail.com
Hey guys,
I misposte this over in jdt and am repost this here. This is one of those
"simple" problems you end up spending hours on and breaking innocent
furniture over. I'd appreciate your help!:
Here's my situation. I'm using a combination of the following:
(1) Spring
(2) Hibernate access via Spring
(3) Dynamic Web project
Problem: I can't access the Hibernate mapping files from the Spring
application context inside the dynamic web project.
Anyone have any ideas on what to do? I've tried moving the hibernate
mapping files everywhere, but I keep getting the following error:
Cannot resolve reference to bean 'sessionFactory' while setting bean
property 'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'sessionFactory' defined in file [C:\Documents and
Settings\XXX\workspace\.metadata\.plugins\org.eclipse.wst.se rver.core\tmp0\webapps\AppName\applicationContext.xml]:
Initialization of bean failed; nested exception is
java.io.FileNotFoundException: class path resource [MappingFile.hbm.xml]
cannot be opened because it does not exist
Thanks!
-DeAngelo Lampkin
|
|
|
|
Powered by
FUDForum. Page generated in 0.02781 seconds