users@glassfish.java.net

Re: Embedded GF - adding H2 connection pool error

From: <glassfish_at_javadesktop.org>
Date: Fri, 26 Feb 2010 07:43:38 PST

The stack trace indicates that the error is caused by :
Caused by: java.io.FileNotFoundException: /D:/MyProjects/Regional_POS/POC/instance/lib/install/applications/__xa_jdbc_ra

The source code you attached does not correlate to the path above :
efsb.instanceRoot(new File("D:/MyProjects/POC/instance"));

which is different from the path in the stack trace. Is there anything else you are doing besides the source code you posted? Embedded would create a temporary file system with the subdirectory ...../lib/install/applications/__xa_jdbc_ra . If you point to an existing instance, embedded would just use that. Since you are using the shell jar you would have a pre-existing glassfish install, so you could just point to that.
[Message sent by forum member 'sirajg' (Siraj.Ghaffar_at_Sun.Com)]

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