Jump to content

Using Spring loaded Hibernate Source Error


Legato

Recommended Posts

Hi,

 

when I try to use a Spring loaded Hibernate Source in iReport 2.0.1, I get a broadly based messange window complaining:

 

"Error creating bean with name ''sessionFactory' defined in class path resource [databaseContext.xml]: Instantation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]; constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/cfg/AnnotationConfiguration"

 

Classpaths point at the hibernate library files. (hibernate3.jar, hiberate-annotations.jar, hibernate-commons-annotations.jar)

 

Searched google, searched forum, searched bugtracker... no answer found yet, and to my regret I havn't found many occurrences of this problem either.

 

If I forgot anything of importance, please feel free to ask.

 

Anybody got a clue how I can fix this?

 

Regards,

Tobias

Post edited by: Legato, at: 2007/09/25 14:45

Link to comment
Share on other sites

  • 1 month later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I had similiar problems:

 

 

1. My dbSource mapping was not in my applicationContext.xml file so I had to combine them.

2. Sometimes I was receiving classNotFoundError even though iReport classpath was configured so I had to copy the appropriate jar files into /iReports*/lib folder.

 

 

GoodLuck.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...