Meaningless Drivel is fun!*
The moose likes Spring and the fly likes org.springframework.beans.factory.BeanCreationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "org.springframework.beans.factory.BeanCreationException" Watch "org.springframework.beans.factory.BeanCreationException" New topic
Author

org.springframework.beans.factory.BeanCreationException

Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44
Hi Everyone,

Hopefully I am raising this question in the right forum, I am trying to setup the Spring Hibernate Environment for my project, I am keep on getting this error, I guess there is some JAR missing or any compatibility issue. Please suggest if it rings a bell. Details are given below;

ApplicationContext.xml
==================


Dependencies
===========


Stack Trace
=========


Thanks in Advance, your early attention will be appreciated.


Thanks in Advance,
Kash.
Hussein Baghdadi
clojure forum advocate
Bartender

Joined: Nov 08, 2003
Posts: 3479

Are you sure hibernate.jar is included in the class path?
Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44
If I am not wrong, they are; Please have a look below;

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It doesn't matter if a jar is in your Eclipse .classpath file (if that's what it is, you don't actually say), it needs to be deployed to your web app.
Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44
its standalone Java service not a web application and I am getting that problem while running the unit tests.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you running it in the Eclipse environment? I mean, something's obviously wrong with your classpath during execution.
Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44
Yes, I am running it within Eclipse IDE
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And how are you running it?
Kashif Mughal
Ranch Hand

Joined: Jun 19, 2008
Posts: 44
I am running from IDE as follow;

Run As > Junit Test
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Aaaaaand the code that's failing (just the relevant portions), and any run configuration that might be necessary. It'd be a lot quicker to just provide all the useful information up front.
 
Consider Paul's rocket mass heater.
 
subject: org.springframework.beans.factory.BeanCreationException