Hey what is the JBoss way? I am having the same problem. I do not care about portability at this point. I just want to get this database connection going so that I can start building an application. Please post any way that you know how to make a connection in JBoss to the datasource.
Try changing jboss-web.xml like this:
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <resource-ref> <res-ref-name>jdbc/dev</res-ref-name> <jndi-name>java:/dev</jndi-name> </resource-ref> </jboss-web>