Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 19:15 Go to next message
Eclipse UserFriend
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 08:58 Go to previous message
Eclipse UserFriend
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: Fri Mar 29 14:38:08 GMT 2024

Powered by FUDForum. Page generated in 0.02781 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top