I've got a test case that it's possible to achieve the same result.
Just deploy it on autodeploy/bundles then uninstall (using felix console),
manually remove the file from autodeploy and put it again, check ps on felix
console and when it's active try to access its webcontext (/test).
The RAR file contains the source code.
Thanks in advance.
-------------------------------
Paulo Reis
On Mon, Jul 26, 2010 at 9:21 AM, CasMeiron <casmeiron_at_gmail.com> wrote:
> Hello guys,
>
> When I try to redpeloy a WAB module (uninstall the old one through felix
> console and then put the new file on autodeploy folder) glassfish writes the
> follow log:
>
> [#|2010-07-26T09:13:32.710-0300|SEVERE|glassfish3.1|org.glassfish.osgijavaeebase|_ThreadID=18;_ThreadName=Thread-1;|Exception
> deploying bundle
> file:/D:/Developer/web-containers/glassfish-v3.1/glassfish/domains/domain1/autodeploy/bundles/git-app-1.0-SNAPSHOT.war|#]
>
> [#|2010-07-26T09:13:32.710-0300|SEVERE|glassfish3.1|org.glassfish.osgijavaeebase|_ThreadID=18;_ThreadName=Thread-1;|Exception
> Stack Trace
> java.lang.Exception: Deployment of br.com.sonner.git.app [243] failed
> because of following reason: Exception while loading the app :
> java.lang.Exception: java.lang.Exception: WEB0113: Virtual server [server]
> already has a web module [br.com.sonner.git.app_1.0.0.SNAPSHOT] loaded at
> [/git]; therefore web module [br.com.sonner.git.app_1.0.0.SNAPSHOT] cannot
> be loaded at this context path on this virtual server.
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:103)
> at org.glassfish.osgiweb.WebExtender.deploy(WebExtender.java:170)
> at org.glassfish.osgiweb.WebExtender.bundleChanged(WebExtender.java:119)
> at
> org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback(EventDispatcher.java:800)
> at
> org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:728)
> at
> org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:610)
> at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3734)
> at org.apache.felix.framework.Felix.startBundle(Felix.java:1807)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
> at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1133)
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.java:1119)
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:432)
> at
> org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:238)
> |#]
>
> [#|2010-07-26T09:13:32.710-0300|INFO|glassfish3.1|null|_ThreadID=18;_ThreadName=Thread-1;|Started
> bundle:
> file:/D:/Developer/web-containers/glassfish-v3.1/glassfish/domains/domain1/autodeploy/bundles/git-app-1.0-SNAPSHOT.war|#]
>
> If I try to access the context I get this error:
>
> HTTP Status 403 - Access to the requested resource has been denied
> ------------------------------
>
> *type* Status report
>
> *message*Access to the requested resource has been denied
>
> *description*Access to the specified resource (Access to the requested
> resource has been denied) has been forbidden.
> ------------------------------
> GlassFish Server Open Source Edition 3.1-SNAPSHOT
>
>
> If I restart the domain everythin' works as expected. Don't know whether
> I'm doin' anythin' wrong but it seems to be a bug?
>
> Thanks in advance.
>
> -------------------------------
> Paulo Reis
>
>