Hi Romain,
Thanks for taking a look. But I am Not sure what you meant .. could you please elaborate. I have the resource configuration in tomee.xml and the following in web.xml. <resource-ref> <description>MySQL Connection</description> <res-ref-name>jdbc/localDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> In the code , I try to access it with InitialContext ic = new InitialContext(); DataSource ds = (DataSource)envCtx.lookup("jdbc/SentinelDB"); If I put the resources in tomee.xml , it works fine. However, if I put it in resources.xml in the WEB-INF folder for the app, then I get the error. -- View this message in context: http://openejb.979440.n4.nabble.com/MySQL-resource-in-Tomee-1-5-2-tp4665872p4665878.html Sent from the OpenEJB User mailing list archive at Nabble.com.