geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bohn (JIRA)" <...@geronimo.apache.org>
Subject [jira] Commented: (GERONIMO-1132) Undeploy using Deployment Manager fails to undeploy application
Date Fri, 04 Nov 2005 13:58:20 GMT
    [ http://issues.apache.org/jira/browse/GERONIMO-1132?page=comments#action_12356780 ] 

Joe Bohn commented on GERONIMO-1132:
------------------------------------

To fix this problem in the console we simply stop the configuration before we undeploy.  To
"stop" the configuration means really two things (from the code I've seen).   1) stopping
the GBeans   2) unloading the configuration.    The problem we were having in the console
is that one of the GBeans (the one representing the configuration itself) was never being
unloaded.   In the console we simply explicitly called stop prior to unload.

When I look in o\a\g\kernel\config\ConfigurationManagerImpl I notice in the unload() method
 that if  the configuration is running it attempts to unload the GBeans and then stop the
GBeans.   This seems backward to me (but of course I'm no expert in this area).   Perhaps
the kernel unload needs to stop the GBeans for the configuration prior to calling unloadGBeans()
on the configuration?  You might want to give that a try as an experiment.

> Undeploy using Deployment Manager fails to undeploy application
> ---------------------------------------------------------------
>
>          Key: GERONIMO-1132
>          URL: http://issues.apache.org/jira/browse/GERONIMO-1132
>      Project: Geronimo
>         Type: Bug
>   Components: deployment
>     Versions: 1.0
>     Reporter: Sachin Patel
>     Priority: Blocker
>      Fix For: 1.0

>
> This defect is opened as an due to my append on jira 1047.  This problem is reproducable
100% of the time.  Below explains the scenario through devtools tracing and the geronimo log.
> DEVTOOLS: APPLICATION IS INSTALLED WITH SUCCESSFULL NOTIFICATIONS FROM SERVER
> org.apache.geronimo.devtools.eclipse.core:  publishModule()[Lorg.eclipse.wst.server.core.IModule;@6a2a2b
1 deltaKind=1
> org.apache.geronimo.devtools.eclipse.core:  calling invokeComand()Module[hh,org.eclipse.jst.j2ee.server:hh]
> org.apache.geronimo.devtools.eclipse.core:  calling doDeploy()
> org.apache.geronimo.devtools.eclipse.core:  Distributing project hh completed.
> org.apache.geronimo.devtools.eclipse.core:  	Completed with id hh/hh
> org.apache.geronimo.devtools.eclipse.core:  Wait thread interrupted
> org.apache.geronimo.devtools.eclipse.core:  Starting project hh completed.
> org.apache.geronimo.devtools.eclipse.core:  	Completed
> org.apache.geronimo.devtools.eclipse.core:  Wait thread interrupted
> GERONIMO: LOG SHOWS APPLICATION WAS INSTALLED AND STARTED
> 08:16:12,612 INFO  [LocalConfigStore:config-store] Installed configuration (file) hh/hh
in location 33
> 08:16:12,759 INFO  [LocalConfigStore:config-store] Loaded Configuration geronimo.config:name="hh/hh"
> 08:16:12,766 INFO  [Configuration] Started configuration hh/hh
> 08:16:12,897 INFO  [Container] Started org.mortbay.jetty.servlet.WebApplicationHandler@b20090
> 08:16:12,899 INFO  [/hh] JSR154 unwrappedDispatchSupported=true
> 08:16:12,899 INFO  [JettyWebAppContext] JettyWebAppContext started
> 08:16:12,899 INFO  [Container] Started WebApplicationContext[/hh,hh]
> DEVTOOLS: APPLICATION INSTALLED, NOTIFICATIONS IMPLY SUCCESSFULL UNDEPLOYMENT
> org.apache.geronimo.devtools.eclipse.core:  publishModule()[Lorg.eclipse.wst.server.core.IModule;@6c4fe
1 deltaKind=3
> org.apache.geronimo.devtools.eclipse.core:  calling invokeComand()Module[hh,org.eclipse.jst.j2ee.server:hh]
> org.apache.geronimo.devtools.eclipse.core:  calling doUndeploy()
> org.apache.geronimo.devtools.eclipse.core:  Undeploying project hh running...
> org.apache.geronimo.devtools.eclipse.core:  	Module hh/hh stopped.
> org.apache.geronimo.devtools.eclipse.core:  	Module hh/hh unloaded.
> org.apache.geronimo.devtools.eclipse.core:  	Module hh/hh uninstalled.
> org.apache.geronimo.devtools.eclipse.core:  Undeploying project hh completed.
> org.apache.geronimo.devtools.eclipse.core:  	Completed
> org.apache.geronimo.devtools.eclipse.core:  Wait thread interrupted
> GERONIMO: AS DOES THE GERONIMO LOG
> 08:17:12,969 INFO  [Container] Stopped org.mortbay.jetty.servlet.WebApplicationHandler@b20090
> 08:17:13,301 INFO  [JettyWebAppContext] JettyWebAppContext stopped
> 08:17:13,301 INFO  [Container] Stopped WebApplicationContext[/hh,hh]
> 08:17:13,302 INFO  [Configuration] Stopping configuration hh/hh
> 08:17:13,322 INFO  [LocalConfigStore:config-store] Uninstalled configuration hh/hh
> RESTART THE SERVER AND START UP FAILS, CONFIGURATION THAT WAS UNDEPLOY IS ATTEMPTING
TO START
> Geronimo startup failed:
> org.apache.geronimo.kernel.config.NoSuchConfigException: No configuration with id: hh/hh
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.load(ConfigurationManagerImpl.java:111)
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.loadRecursive(ConfigurationManagerImpl.java:178)
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl.loadRecursive(ConfigurationManagerImpl.java:167)
> 	at org.apache.geronimo.kernel.config.ConfigurationManagerImpl$$FastClassByCGLIB$$fbed85d2.invoke(<generated>)
> 	at net.sf.cglib.reflect.FastMethod.invoke(FastMethod.java:53)
> 	at org.apache.geronimo.gbean.runtime.FastMethodInvoker.invoke(FastMethodInvoker.java:38)
> 	at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:118)
> 	at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:779)
> 	at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
> 	at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:36)
> 	at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
> 	at org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGLIB$$b1334717.loadRecursive(<generated>)
> 	at org.apache.geronimo.system.main.Daemon.doStartup(Daemon.java:232)
> 	at org.apache.geronimo.system.main.Daemon.<init>(Daemon.java:78)
> 	at org.apache.geronimo.system.main.Daemon.main(Daemon.java:320)
> 08:18:21,809 INFO  [BasicKernel] Starting kernel shutdown

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message