[jboss-user] [JBoss Tools (users)] - Re: How to configure Hibernate Console in a Maven project ?

chawax do-not-reply at jboss.com
Thu Apr 3 12:04:39 EDT 2008


Thanks, it helped me a lot. I wrote the following hibernate.properties file :

hibernate.connection.password=T4
  | hibernate.connection.username=T4
  | hibernate.connection.driver_class=com.mysql.jdbc.Driver
  | hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect
  | hibernate.connection.url=jdbc://mysql/localhost/t4Seam
  | 
  | hibernate.connection.provider_class=org.hibernate.connection.DriverManagerConnectionProvider
  | hibernate.datasource=
  | hibernate.transaction.manager_lookup_class=

Then the Session Factory node is OK. But the Database one is still not :(
I have a message about not suitable driver. Don't understand why since this is the one I use on the same database on production mode.

The stack trace :
org.hibernate.exception.JDBCConnectionException: Getting database metadata
  | 
  | org.hibernate.exception.JDBCConnectionException: Getting database metadata
  | 	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:74)
  | 	at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:64)
  | 	at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
  | 	at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
  | 	at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
  | 	at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
  | 	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter$2.execute(LazyDatabaseSchemaWorkbenchAdapter.java:105)
  | 	at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:65)
  | 	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.readDatabaseSchema(LazyDatabaseSchemaWorkbenchAdapter.java:96)
  | 	at org.hibernate.eclipse.console.workbench.LazyDatabaseSchemaWorkbenchAdapter.getChildren(LazyDatabaseSchemaWorkbenchAdapter.java:58)
  | 	at org.hibernate.eclipse.console.workbench.BasicWorkbenchAdapter.fetchDeferredChildren(BasicWorkbenchAdapter.java:103)
  | 	at org.eclipse.ui.progress.DeferredTreeContentManager$1.run(DeferredTreeContentManager.java:196)
  | 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
  | Caused by: java.sql.SQLException: No suitable driver
  | 	at java.sql.DriverManager.getConnection(DriverManager.java:545)
  | 	at java.sql.DriverManager.getConnection(DriverManager.java:140)
  | 	at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
  | 	at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:122)
  | 	at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:61)
  | 	... 11 more

Do you have any idea why it says my driver is not suitable ?

P.S. : about my initial problem ("can't find mapping file"), it occurs when you double click on nodes. But when you expand them there is no problem ;)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4141428#4141428

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4141428



More information about the jboss-user mailing list