geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Bohn (JIRA)" <j...@apache.org>
Subject [jira] Commented: (GERONIMO-3993) Server fails to relaunch after deploying an application to a WADI cluster
Date Thu, 29 May 2008 00:02:45 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-3993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12600650#action_12600650
] 

Joe Bohn commented on GERONIMO-3993:
------------------------------------

OK ... I was able to recreate the problem by creating a second config store and deploying
an application to that store (as suggested by David and documented here http://cwiki.apache.org/GMOxDOC20/multiple-repositories.html
).  When I attempted to restart the server I hit the problem.  

Looking in the config.xml I noticed that the start of the module for the application I deployed
is already listed after the config store that I deployed.  It seems that they are listed in
config.xml in the order that they were deployed.  However, this doesn't seem to affect the
start order.  David mentioned that there is some sorting going on. 

I'll look into what it would take to add the dependency between the deployed module and the
config store at deploy time as David suggested.  Are there any other considerations where
this might not be a good approach?  Will it work well in clustered configuration?   The only
problem I can think of is the case where a module is deployed to more than one target.  It
would seem that if you removed a target it would end up stopping the module even though it
could still run on the other targets.  Is that something that we should be concerned about
or are there other scenarios where this approach might not work?   

The other approach I can think of is to do some processing to ensure that ALL config-stores
were started prior to any other modules regardless the module to config-store relationship.
 Is there an easy way to detect if a module includes a config store?  Can we dig into the
module looking for gbeans of class Maven2Repository and/or RespositoryConfigurationStore?
  If so, is that any better?  

> Server fails to relaunch after deploying an application to a WADI cluster
> -------------------------------------------------------------------------
>
>                 Key: GERONIMO-3993
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3993
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: startup/shutdown
>    Affects Versions: 2.1.1, 2.1.2, 2.1.x
>         Environment: Windows
>            Reporter: YunFeng Ma
>            Assignee: Gianny Damour
>             Fix For: 2.1.2, 2.1.x, 2.2
>
>
> 1.  A WADI cluster with two Nodes: Node1 and Node2
> 2. Deploy an application to Node1
> 3. Stop Node1 and Node2
> 4. Start Node1 and get the following exception:
> {noformat}
> org.apache.geronimo.kernel.config.NoSuchConfigException: samples/cviewer/2.1.0.0/war
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfigurationData(SimpleConfigurationManager.java:476)
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.sort(SimpleConfigurationManager.java:456)
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.sort(SimpleConfigurationManager.java:448)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
>         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>         at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$4d5fdcaa.sort(<generated>)
>         at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:152)
>         at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:79)
>         at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
>         at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
>         at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
> {noformat}
> 5. Start Node2 and get the following exception:
> {noformat}
> org.apache.geronimo.kernel.config.NoSuchConfigException: samples/cviewer_G_SLAVE/2.1.0.0/war
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfigurationData(SimpleConfigurationManager.java:476)
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.sort(SimpleConfigurationManager.java:456)
>         at org.apache.geronimo.kernel.config.SimpleConfigurationManager.sort(SimpleConfigurationManager.java:448)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:615)
>         at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
>         at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:124)
>         at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:832)
>         at org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:57)
>         at org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperationInvoker.java:35)
>         at org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(ProxyMethodInterceptor.java:96)
>         at org.apache.geronimo.kernel.config.EditableConfigurationManager$$EnhancerByCGLIB$$4d5fdcaa.sort(<generated>)
>         at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:152)
>         at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:79)
>         at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
>         at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)
>         at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message