Hi all,
Today I started testing the JPA 2.0 / EJB 3.1 support of GFv3 b45. I created a
connection pool that pings ok and then created a JDBC resource called
jdbc/astro
which shows up with the list-jdbc-resources command:
$ ./bin/asadmin list-jdbc-resources
jdbc/__TimerPool
jdbc/astro
jdbc/__default
However, when I deploy an application with this persistence.xml
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="
http://java.sun.com/xml/ns/persistence" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
<persistence-unit name="ObservationPlannerAndLoggerPU" transaction-type="JTA">
<jta-data-source>jdbc/astro</jta-data-source>
<properties>
<property name="eclipselink.logging.level" value="FINE" />
</properties>
</persistence-unit>
</persistence>
When I deploy the application with this persistence.xml, I get this exception:
[#|2009-04-22T19:58:31.604+0200|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=15;_ThreadName=Thread-1;|Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method
java.lang.RuntimeException: javax.naming.NamingException: Lookup failed for 'jdbc/astro' in SerialContext [Root exception is javax.naming.NameNotFoundException: astro not found]
at org.glassfish.persistence.jpa.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:109)
Any idea if this is a problem with my persistence.xml or with GFv3 b45?
Thanks, Wouter
--
There are 10 kinds of people in the world. Those that understand
the binary system and those that don't.
[Unknown Source]