This content has been marked as final.
Show 1 reply
-
1. Re: in trouble! need help
kasch1980 Sep 26, 2005 4:10 AM (in response to zzl886)For an jdbc datasource you have to define an specific Driver in your xml:
<datasources> <local-tx-datasource> <jndi-name>MySqlDS</jndi-name> <connection-url>jdbc:mysql://localhost:3306/database</connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <user-name>username</user-name> <password>secret</password> <connection-property name="autoReconnect">true</connection-property> <!-- Typemapping for JBoss 4.0 --> <metadata> <type-mapping>mySQL</type-mapping> </metadata> </local-tx-datasource> </datasources>
It looks like your Driver class does not match to your DataSource
Also look: http://wiki.jboss.org/wiki/Wiki.jsp?page=SetUpAMysqlDatasource