Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Using Hibernate Mapping Files from Spring with Dynamic Web Projects...
Using Hibernate Mapping Files from Spring with Dynamic Web Projects... [message #167924] Fri, 28 April 2006 15:15 Go to next message
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
Re: Using Hibernate Mapping Files from Spring with Dynamic Web Projects... [message #169722 is a reply to message #167924] Sat, 20 May 2006 04:58 Go to previous message
Eclipse User
Originally posted by: chrisjames64.hotmail.co.uk

Have you tried putting them under the \src folder of a java module and
adding the java module to the manifest of the Dynamic Web module.
Alternatively, put the .hbm files in a \resources folder under your
EAR/Web project and adding ..\resources to your Dynamic Web project
manifest by hand.

Chris.
Previous Topic:In a Generic Server, how can the server's properties be edited/viewed once created?
Next Topic:facet runtimes ?
Goto Forum:
  


Current Time: Sat Apr 19 15:59:55 EDT 2014

Powered by FUDForum. Page generated in 0.10526 seconds