aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 3476

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: org.springframework.beans.factory.BeanCreationException
 
Similar Threads
spring 2.5.3 / hibernate 3 sessionFactory NullPointerException
Spring+Hibernate can't create SessionFactory bean
Problem with Hibernate sessionFactoryBean in application context initialization
Unable to configure Spring with Hibernate
Cannot configure declarative transaction with hibernate and spring