users@glassfish.java.net

Re: glassfish & datapools

From: <glassfish_at_javadesktop.org>
Date: Mon, 26 May 2008 03:56:26 PDT

Hi,

If you are trying to create a JDBC resource from netbeans, it creates a sun-resources.xml to create the JDBC resource and a connection pool for it. The values that are input will be updated in this file and when the app is deployed, this pool and datasource are created. You might want to check this file and edit it with the right values of datasource classname - in your case "org.hsqldb.jdbc.jdbcDataSource" with the right properties.

Netbeans would do a mapping of "driver" based class to "datasource" based class while creating the JDBC resource. In case, a mapping does not exist, the "driver" classname (org.hsqldb.jdbcDriver) is used and thats the reason for the exceptions.

Hope this helps
Shalini.
[Message sent by forum member 'sm157516' (sm157516)]

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