You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Aaron Mulder (JIRA)" <de...@geronimo.apache.org> on 2006/06/10 19:08:30 UTC

[jira] Commented: (GERONIMO-2105) When redeploying with no version number, new entries in config.xml break

    [ http://issues.apache.org/jira/browse/GERONIMO-2105?page=comments#action_12415682 ] 

Aaron Mulder commented on GERONIMO-2105:
----------------------------------------

Not to mention if you have a reference to a GBean with the old version in its name in config.xml, but that should be pretty rare.

> When redeploying with no version number, new entries in config.xml break
> ------------------------------------------------------------------------
>
>          Key: GERONIMO-2105
>          URL: http://issues.apache.org/jira/browse/GERONIMO-2105
>      Project: Geronimo
>         Type: Bug
>     Security: public(Regular issues) 
>   Components: kernel
>     Versions: 1.1
>     Reporter: Aaron Mulder
>     Priority: Blocker
>      Fix For: 1.1

>
> Let's say you deploy foo with no version number and config.xml content.  Then through the console or some other mechanism, you set a property on a previously unlisted GBean.  Now you get something like this:
>   <module name="default/foo/1149955208117/war">
>     <gbean name="default/foo/1149955208117/war?J2EEApplication=null,WebModule=default/foo/1149955208117/war,j2eeType=GBean,name=MyGBean">
>       <attribute name="bar">value</attribute>
> Now you redeploy foo, and it migrates the config.xml entry to the new version number.  However, what you actually get is this:
>   <module name="default/foo/1149955408117/war">
>     <gbean name="default/foo/1149955223470/war?J2EEApplication=null,WebModule=default/foo/1149955223470/war,j2eeType=GBean,name=MyGBean">
>       <attribute name="bar">value</attribute>
> Note the different version numbers between module and gbean elements.  In other words, the version in the main config.xml entry is updated, but the version in the GBean entries is not.  This means that the module will fail to start, as it will treat the GBean as a brand new GBean declaration and crap out when it has no GBeanInfo defined.

-- 
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