users@glassfish.java.net

Re: Issue with DataSource lookup in Glassfish

From: <glassfish_at_javadesktop.org>
Date: Tue, 06 Jul 2010 03:36:55 PDT

I've modified web.xml to include the following (based on another example):

[code]
  <resource-ref>
    <res-ref-name>jdbc/MySQLDataSource</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
  </resource-ref>
[/code]

I still get the same error. How do I also modify sun-web.xml file to perform the mapping required?
[Message sent by forum member 'codefire']

http://forums.java.net/jive/thread.jspa?messageID=476857