vmustafa Posted February 5, 2009 Share Posted February 5, 2009 Hi,I am trying to use Hibernate Connection as the data source (using MySql) with iReports (version iReports 3.1.2) but am unsuccessful. After doing the initial config file & mapping file checkups, iReport is unable to open connection - "Cannot open connection" while testing the Hibernate connection. The main messages in the IDE-Log are:-1 - java.lang.IllegalStateException: You are trying to access file: hibernate.cfg.xml from the default package. Please see http://www.netbeans.org/download/dev/javadoc/org-openide-modules/org/openide/modules/doc-files/classpath.html#default_package 2 - org.hibernate.exception.GenericJDBCException: Cannot open connection 3 - Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3307/xxx The hibernate associated files are in the directory -C:Program FilesJasperSoftiReport-nb-3.1.2ireportmodulesextThe MySql related file - mysql-connector-java-5.0.7-bin.jar - is in directory -C:Program FilesJasperSoftiReport-nb-3.1.2ide8modulesextWhy is iReport not able to access a suitable driver for mysql?Please help!!Regardsvmustafa Post Edited by Mustafa Vadnagarwala at 02/06/09 11:32 Link to comment Share on other sites More sharing options...
sjeg Posted March 27, 2009 Share Posted March 27, 2009 Place the driver .jar in the ext folder of your JDK, that is the only way for now, i've tried everything else. Link to comment Share on other sites More sharing options...
bob007 Posted April 6, 2009 Share Posted April 6, 2009 Hi, I had the same problem as vmustafa when trying to use Hibernate Connection ("Cannot open connection") and i tried your solution."Place the driver .jar in the ext folder of your JDK" Now i got a new message error :"No data type for node : org.hibernate.hql.ast.IdentNode -[iDENT] IdentNode 'adress' {originalText=adress}"ITS VERY ODD because I don't have any adress in my hibernate mapping...I see some other peoples on the forum with a similar problem but no solution to it ... What can i do about it ?Is iReport really suppose to work with hibernate connection ? thanks, Post Edited by Philippe Yelle at 04/06/09 14:48 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