kopcheski Posted February 12, 2007 Share Posted February 12, 2007 Hello! That's the problem:When I try to create a Hibernate connection (iReport 1.3.0) I get the following error after clicking the 'Test' button: "An AnnotationConfiguration instance is required to use <mapping clazz="MyClass"/>" I guessed it was missing some jars to classpath, then I imported hibernate.jar, hibernate-annotations.jar. I also did my application directory to the classpath. But it was always the same error.All Jaybird (Firebird) jars were also imported to classpath. MyClass is the first class mapped in my hibernate.cfg.xml, so I guess iReport is 'reading' the xml file. All my configuration settings can be found in this cfg.xml. I mean dialect, driver, user, password, etc... I trying to create this kind of connection cause I want to write HQL to query data. I guess this is the best way to work with Hibernate/iReport. Can somebody help me solving this problem? Ps. in my cfg.xml i did NOT write 'mapping clazz' with double Z. I wrote 'class', double S. Thanks! Post edited by: kopcheski, at: 2007/02/12 11:03Post edited by: kopcheski, at: 2007/02/12 15:39 Link to comment Share on other sites More sharing options...
roferreira Posted April 1, 2007 Share Posted April 1, 2007 How did you solve it? I am geting the same error message. tks.:) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now