users@glassfish.java.net

Re: Redeploying webapp fails frequently

From: Dick Davies <rasputnik_at_hellooperator.net>
Date: Tue, 2 Sep 2008 09:29:21 +0100

On Tue, Sep 2, 2008 at 8:50 AM, Sahoo <sahoo_at_sun.com> wrote:
> If you have a reproducible test case, file a bug attaching the test case.
>
> Sahoo
>
> glassfish_at_javadesktop.org wrote:
>>
>> Hi,
>>
>> When I am debugging my webapp under Glassfish and Netbeans and I redeploy
>> it after I fix I bug I frequently get this error (sorry for the long paste):
>>
>> [code]
>> deployed with moduleid = DesktopBeautifier.Server
>> WebModule[/DesktopBeautifier.Server]PWC1275: Exception sending context
>> initialized event to listener instance of class
>> desktopbeautifier.servlet.ServletContextInjector
>> javax.persistence.PersistenceException: No Persistence provider for
>> EntityManager named DesktopBeautifier: 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.1 (Build b04-fcs (04/11/2008))):
>> oracle.toplink.essentials.exceptions.PersistenceUnitLoadingException
>> Exception Description: An exception was thrown while searching for
>> persistence archives with ClassLoader: WebappClassLoader
>> delegate: true
>> repositories:
>> /WEB-INF/classes/
>> ----------> Parent Classloader:
>> EJBClassLoader : urlSet = []
>> doneCalled = false Parent -> java.net.URLClassLoader_at_5d04e28b
>> Internal Exception: java.io.FileNotFoundException: JAR entry
>> META-INF/persistence.xml not found in
>> C:\Users\Gili\Documents\blueeye\trunk\desktopbeautifier\Server\Netbeans6.1\build\web\WEB-INF\lib\DesktopBeautifier.Database.jar

The stacktrace is this error, over and over.
Does this file exist in the JAR?


-- 
Rasputnik :: Jack of All Trades - Master of Nuns
http://number9.hellooperator.net/