dev@glassfish.java.net

Re: Problem accessing Persistence Unit on windows

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Tue, 27 Nov 2007 10:10:30 -0800

Poornima,

Which JDK version do you use? A similar issue
(https://glassfish.dev.java.net/issues/show_bug.cgi?id=1562) was solved by
switching to JDK 6.

Regards,
-marina

Poornima Joshi wrote:
> Hi All,
>
> We get following exception when we try to use JPA to access database
> only on windows.
>
> /Nov 27, 2007 4:39:17 PM
> com.sun.portal.wsrp.consumer.admin.mbeans.WSRPConsumer
> listConfiguredProducers
> SEVERE: PSWS_CSPWCAB0002
> javax.persistence.PersistenceException: _*No Persistence provider for
> EntityManager named wsrp_pu_direct*_: Provider named
> oracle.toplink.essentials.PersistenceProvider threw unexpected exception
> at create EntityManagerFactory:
> oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
> Local Exception Stack:
> Exception [TOPLINK-30005] (Oracle TopLink Essentials - 2.0 (Build
> b58g-fcs (09/07/2007))):
> oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
> Exception Description: An exception was thrown while searching for
> persistence archives with ClassLoader: Classloader for module
> public_com.sun.portal.admin.server.module
> Internal Exception: _*java.lang.IllegalArgumentException: URI is not
> hierarchical*_
> at
> oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException.exceptionSearchingForPersistenceRes/
>
>
> We use JPA to store/access WSRP data in portal server. We use toplink
> essentials jars from AS9.1/glassfish. We have defined a persistence
> unit named wsrp_pu_direct to access the database. Persistence.xml file
> is present under META-INF dir in wsrp jar file and this jar file is
> present in the classpath. This code gets called from Cacao.
>
> Any ideas why is this exception thrown? Same code works fine on solaris.
>
> Is there any known issue with recognizing persistence.xml on windows?
> Does Cacao have any known issues w.r.t entries in classpath on windows?
>
> Regards,
> Poornima
>
>
>