This content has been marked as final.
Show 1 reply
-
1. Re: Deployment problem
tjclifford Oct 14, 2007 8:51 PM (in response to jrein)jrein:
I use MySql on my development machine, and I had to set up
a mysql-ds.xml in \jboss\server\xxxx\deploy to define the datasource,
then change persistence.xml to look like this:<?xml version="1.0" encoding="UTF-8"?> <persistence> <persistence-unit name="titan"> <jta-data-source>java:/MySqlHibernateDS</jta-data-source> <properties> <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/> <property name="hibernate.hbm2ddl.auto" value="create-drop"/> </properties> </persistence-unit> </persistence>
the pertinent section of mysql-ds.xml looks like this:<local-tx-datasource> <jndi-name>MySqlHibernateDS</jndi-name> <connection-url>jdbc:mysql://192.168.0.102:3306/workbook</connection-url> <!-- driver-class>com.mysql.jdbc.Driver</driver-class --> <driver-class>org.gjt.mm.mysql.Driver</driver-class> <user-name>tom</user-name> <password>password</password> <metadata> <type-mapping>mySQL</type-mapping> </metadata> </local-tx-datasource>
Did you get yours to work yet ?
Tom