users@glassfish.java.net

Re: persistence.xml file

From: <glassfish_at_javadesktop.org>
Date: Fri, 09 May 2008 06:54:47 PDT

Hello Joerg

Thanks for the quick reply. I've try add the connection pool "wineappPool" and ping successfully. Therefor i try to setup the data source with the connection pool "wineappPool". Here are the changes:

persistence.xml
.....
<jta-data-source>jdbc:/wineappDS</jta-data-source>
....

JDBC Resource
JNDI Name: jdbc/wineappDS
Pool Name: wineappPool
Status: is Enabled

When deploy the errors as follows:
[#|2008-05-09T20:44:02.359+0800|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=14;_ThreadName=httpWorkerThread-4848-0;_RequestID=d6446518-619e-46ab-9584-f2c176c5801c;|javax.naming.NameNotFoundException
java.lang.RuntimeException: javax.naming.NameNotFoundException
        at com.sun.enterprise.server.PersistenceUnitInfoImpl._getJtaDataSource(PersistenceUnitInfoImpl.java:283)
        at com.sun.enterprise.server.PersistenceUnitInfoImpl.<init>(PersistenceUnitInfoImpl.java:116)
        at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:121)
        at com.sun.enterprise.server.PersistenceUnitLoaderImpl.load(PersistenceUnitLoaderImpl.java:84)
        at com.sun.enterprise.server.AbstractLoader.loadPersistenceUnits(AbstractLoader.java:898)
        at com.sun.enterprise.server.EJBModuleLoader.doLoad(EJBModuleLoader.java:165)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
        

Many Thanks

Jeff
[Message sent by forum member 'ncjt98' (ncjt98)]

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