users@glassfish.java.net

Re: Redeploying webapp fails frequently

From: <glassfish_at_javadesktop.org>
Date: Sat, 13 Sep 2008 00:03:36 PDT

> 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
> >
>
> The stacktrace is this error, over and over.
> Does this file exist in the JAR?

Yes, the file exists in the JAR. I suspect this is a ClassLoader bug that only occurs when the webapp is reloaded. It is difficult for me to give a reproducible test case because this involves a reload but in my experience this bug occurs when:

1) The webapp is deployed
2) The webapp throws an exception due to a bug in my webapp code
3) I modify the webapp code to fix the bug I found in #2
4) I redeploy the webapp
5) The FileNotFoundException is thrown

Please note that I am doing all of this under Netbeans 6.5

Gili
[Message sent by forum member 'cowwoc' (cowwoc)]

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