I think that it runs configuration from
in stead of
How can I tell Jboss to use the second one??
I encountered the exactly same error.
I added the mysql-service.xml into jboss
-service.xml. But when jboss start up, it give
an [ERROR] about mysql data source and when I
run client program, get the exact same error.
If you figure it out, can you email me at
Sounds like there might be an issue with your deployment descriptors - check out your ejb-jar.xml and jboss.xml, and ensure that the resources references are correctly defined.
It looks like it is dropping through and using the default datasource (Hssql). If you go to the jmx console (e.g http://localhost:8080/jmx-console if you are running JBoss locally), and run the JNDI viewer, you'll be able to ensure that the MS SQL datasource has been initialized and bound to JNDI.