[jboss-user] [Beginners Corner] - Re: Getting rebooted: migration from Middlegen to Hibernate

mjhammel do-not-reply at jboss.com
Thu Dec 27 13:27:32 EST 2007


The DataSourceBinding problem turned out to be another config file location change between 4.0.5GA and 4.2.2GA.  In 4.0.5GA the mysql-ds.xml file was copied to server/default/conf.  In 4.2.2GA it needs to go into server/default/deploy.  Once I made this change, I got further along - now I'm being told I need to specify the Hibernate dialect.  I already did this for the build in the db.properties file, but now I need to find out where to specify it in the deploy.

My db.properties:
mjhammel(tty2)$ cat config/hibernate/db.properties
  | hibernate.dialect = org.hibernate.dialect.MySQLDialect
  | hibernate.connection.driver_class = com.mysql.jdbc.Driver
  | hibernate.connection.url = jdbc:mysql://localhost/crunch
  | hibernate.connection.username = root
  | 

I'm guessing I need to specify the dialect in the mysql-ds.xml file, though I'm not sure of that yet and I don't know the syntax for specifying the syntax.  Time for more googling....

The latest error messages from the JBOSS console:

  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: persistence.units:ear=Crunch.ear,unitName=crunch
  |   State: FAILED
  |   Reason: javax.persistence.PersistenceException: org.hibernate.HibernateException: Hibernate Dialect must be explicitly set
  |   I Depend On:
  |     jboss.jca:service=DataSourceBinding,name=CrunchDS
  | 


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

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



More information about the jboss-user mailing list