Closed glassfishrobot closed 14 years ago
@glassfishrobot Commented casmeiron said: Created an attachment (id=4611) test case, the webcontext path is /test
@glassfishrobot Commented ss141213 said: I believe this regression is caused by changes to undeployment code in trunk. I don't see ApplicationContainer.stop() being called when an OSGi app is undeployed, so the context root continues to exist in virtual server.
ss141213@Sahoo:/space/ss141213/WS/gf/v3$ svn commit -m "Issue 12815: context root was not cleaned up in virtual server when WAB is undeployed" osgi-javaee/osgi-javaee-base/src/main/java/org/glassfish/osgijavaeebase/OSGiUndeploymentRequest.java Sending osgi-javaee/osgi-javaee-base/src/main/java/org/glassfish/osgijavaeebase/OSGiUndeploymentRequest.java Transmitting file data . Committed revision 39107.
@glassfishrobot Commented File: simple-cdi-osgi-test-1.0.war Attached By: casmeiron
@glassfishrobot Commented Was assigned to ss141213
@glassfishrobot Commented This issue was imported from java.net JIRA GLASSFISH-12815
@glassfishrobot Commented Reported by casmeiron
@glassfishrobot Commented Marked as fixed on Tuesday, July 27th 2010, 3:32:20 am
When you try to redeploy WAB file you get weird error from glassfish (see below). If you restart the domain everythin' works as expected.
|2010-07-26T09:13:32.710-
0300|SEVERE|glassfish3.1|org.glassfish.osgijavaeebase|_ThreadID=18;_ThreadName=T hread-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=T hread-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(Eve ntDispatcher.java:800) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispat cher.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.ja va:1133) at org.apache.felix.fileinstall.internal.DirectoryWatcher.start(DirectoryWatcher.ja va: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
messageAccess to the requested resource has been denied
descriptionAccess to the specified resource (Access to the requested resource has been denied) has been forbidden.
GlassFish Server Open Source Edition 3.1-SNAPSHOT
Environment
Operating System: Windows 7 Platform: All
Affected Versions
[3.1]