users@glassfish.java.net

Re: Problem accessing data from EJB 3.0 session bean: EntityManagerSetupExc

From: <glassfish_at_javadesktop.org>
Date: Tue, 27 Feb 2007 19:22:34 PST

Hi,
You need to place the driver in your AS_INSTALL_DIR/domains/<domain>/lib/ext and restart app.server.

You need to provide the datasource classname "org.postgresql.ds.PGSimpleDataSource" and not the driver class

Once you have created the connection pool, you can check whether the settings to connect to database is fine or not by using "ping" utility in con.pool page of admin gui.

Creating a connection pool :
http://docs.sun.com/app/docs/doc/819-4733/6n6s6u1bn?a=view

Configuration for various database drivers:
http://docs.sun.com/app/docs/doc/819-3658/6n5s5nklk?a=view

Thanks,
-Jagadish
[Message sent by forum member 'jr158900' (jr158900)]

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