users@glassfish.java.net

Re: Hibernate not working with GlassFish V2 now??

From: <glassfish_at_javadesktop.org>
Date: Mon, 08 Oct 2007 18:05:19 PDT

I just tried and an application can't be loaded if it has a PU with a non-registered datasource:

com.sun.enterprise.deployment.backend.IASDeploymentException: Error while loading application [ex1-ee]. Please refer to the server log for more details.

and in the log:

[#|2007-10-08T17:46:20.237-0700|WARNING|sun-appserver9.1|javax.enterprise.system.core.classloading|_ThreadID=14;_ThreadNa
me=httpWorkerThread-4848-1;_RequestID=a445fefc-26cb-43eb-b10c-358edb13a014;|javax.naming.NameNotFoundException: oracle no
t found
java.lang.RuntimeException: javax.naming.NameNotFoundException: oracle not found
        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.ApplicationLoader.doLoad(ApplicationLoader.java:184)
        at com.sun.enterprise.server.TomcatApplicationLoader.doLoad(TomcatApplicationLoader.java:126)
        at com.sun.enterprise.server.AbstractLoader.load(AbstractLoader.java:244)
[Message sent by forum member 'mvatkina' (mvatkina)]

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