Geronimo
  1. Geronimo
  2. GERONIMO-4658

Console should let you add/edit artifact-aliases. When installing a jar, you should be able to add an artifact alias so it replaces something else.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2, 3.0.0
    • Component/s: console
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      Should be able to edit artifact-aliases in the console. I think they are available through the local attribute manager gbean. They can certainly be installed there.

      In particular, when adding a jar, you should be able to add an artifact alias at the same time so it replaces something else.

      1. GERONIMO-4658.patch
        39 kB
        Victor Fang
      2. GERONIMO-4658_MissingMessages.patch
        2 kB
        Kan Ogawa
      3. GERONIMO-4658_2.patch
        44 kB
        Victor Fang

        Issue Links

          Activity

          Hide
          Kan Ogawa added a comment -

          Hi,

          There are some missing i18n messages.
          I created the patch to fix it. Please review and commit it.
          (This patch contains Japanese translation.)

          Show
          Kan Ogawa added a comment - Hi, There are some missing i18n messages. I created the patch to fix it. Please review and commit it. (This patch contains Japanese translation.)
          Hide
          Chi Runhua added a comment -

          The following exception showed up and blocked the server startup after built a new server with this patch. Please help to verify.

          2009-10-28 12:58:05,932 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.plugins/console-tomcat/2.2-SNAPSHOT/car?J2EEApplication=org.apache.geronimo.plugins/console-tomcat/2.2-SNAPSHOT/car,WebModule=base-portlets.war,j2eeType=GBean,name=PropertiesLoginManager"
          org.apache.xbean.recipe.MissingFactoryMethodException: Constructor has signature public static org.apache.geronimo.console.core.security.PropertiesLoginModuleManager(org.apache.geronimo.system.serverinfo.ServerInfo, java.util.Collection) but expected signature public static org.apache.geronimo.console.core.security.PropertiesLoginModuleManager(org.apache.geronimo.system.serverinfo.ServerInfo, org.apache.geronimo.security.jaas.LoginModuleSettings)
          at org.apache.xbean.recipe.ConstructionException.<init>(ConstructionException.java:31)
          at org.apache.xbean.recipe.ReflectionUtil.findConstructor(ReflectionUtil.java:565)
          at org.apache.xbean.recipe.ObjectRecipe.findFactory(ObjectRecipe.java:563)
          at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:274)
          at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96)
          at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:910)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103)
          at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:538)
          at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377)
          at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456)
          at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:493)
          at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190)
          at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546)
          at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
          at java.lang.reflect.Method.invoke(Method.java:599)
          at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34)
          at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130)
          at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:815)
          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$$f339e22c.startConfiguration(<generated>)
          at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161)
          at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78)
          at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)
          at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65)
          at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30)
          2009-10-28 12:58:07,177 INFO [PortalStartupListener] Shutting down Pluto Portal Driver...

          Show
          Chi Runhua added a comment - The following exception showed up and blocked the server startup after built a new server with this patch. Please help to verify. 2009-10-28 12:58:05,932 ERROR [GBeanInstanceState] Error while starting; GBean is now in the FAILED state: abstractName="org.apache.geronimo.plugins/console-tomcat/2.2-SNAPSHOT/car?J2EEApplication=org.apache.geronimo.plugins/console-tomcat/2.2-SNAPSHOT/car,WebModule=base-portlets.war,j2eeType=GBean,name=PropertiesLoginManager" org.apache.xbean.recipe.MissingFactoryMethodException: Constructor has signature public static org.apache.geronimo.console.core.security.PropertiesLoginModuleManager(org.apache.geronimo.system.serverinfo.ServerInfo, java.util.Collection) but expected signature public static org.apache.geronimo.console.core.security.PropertiesLoginModuleManager(org.apache.geronimo.system.serverinfo.ServerInfo, org.apache.geronimo.security.jaas.LoginModuleSettings) at org.apache.xbean.recipe.ConstructionException.<init>(ConstructionException.java:31) at org.apache.xbean.recipe.ReflectionUtil.findConstructor(ReflectionUtil.java:565) at org.apache.xbean.recipe.ObjectRecipe.findFactory(ObjectRecipe.java:563) at org.apache.xbean.recipe.ObjectRecipe.internalCreate(ObjectRecipe.java:274) at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:96) at org.apache.xbean.recipe.AbstractRecipe.create(AbstractRecipe.java:61) at org.apache.geronimo.gbean.runtime.GBeanInstance.createInstance(GBeanInstance.java:910) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.attemptFullStart(GBeanInstanceState.java:269) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.start(GBeanInstanceState.java:103) at org.apache.geronimo.gbean.runtime.GBeanInstanceState.startRecursive(GBeanInstanceState.java:125) at org.apache.geronimo.gbean.runtime.GBeanInstance.startRecursive(GBeanInstance.java:538) at org.apache.geronimo.kernel.basic.BasicKernel.startRecursiveGBean(BasicKernel.java:377) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:456) at org.apache.geronimo.kernel.config.ConfigurationUtil.startConfigurationGBeans(ConfigurationUtil.java:493) at org.apache.geronimo.kernel.config.KernelConfigurationManager.start(KernelConfigurationManager.java:190) at org.apache.geronimo.kernel.config.SimpleConfigurationManager.startConfiguration(SimpleConfigurationManager.java:546) at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:599) at org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(ReflectionMethodInvoker.java:34) at org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperation.java:130) at org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.java:815) 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$$f339e22c.startConfiguration(<generated>) at org.apache.geronimo.system.main.EmbeddedDaemon.doStartup(EmbeddedDaemon.java:161) at org.apache.geronimo.system.main.EmbeddedDaemon.execute(EmbeddedDaemon.java:78) at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45) at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:65) at org.apache.geronimo.cli.daemon.DaemonCLI.main(DaemonCLI.java:30) 2009-10-28 12:58:07,177 INFO [PortalStartupListener] Shutting down Pluto Portal Driver...
          Hide
          David Jencks added a comment -

          2.2 rev rev 830386, 830411 in trunk

          The patch had duplicates in the new files, easy to fix. I also fixed up exception handling a bit and alphateized the aliases.

          This could use some documentation since if you edit the LHS of an alias it creates a new entry rather than replacing the old one.

          Show
          David Jencks added a comment - 2.2 rev rev 830386, 830411 in trunk The patch had duplicates in the new files, easy to fix. I also fixed up exception handling a bit and alphateized the aliases. This could use some documentation since if you edit the LHS of an alias it creates a new entry rather than replacing the old one.
          Hide
          Victor Fang added a comment -

          I already created a new menu item named JAR aliases, and places it in Server category. Any comment? Thanks.

          Show
          Victor Fang added a comment - I already created a new menu item named JAR aliases, and places it in Server category. Any comment? Thanks.
          Hide
          Ivan added a comment -

          If the time is not tight, I wish that we could include this improvment in 2.2.
          About the menu location, I think we could create a new menu itme in the navigation tree, let's call it alias configuration, and place it in the Server category ?
          Any comment ? Thanks !

          Show
          Ivan added a comment - If the time is not tight, I wish that we could include this improvment in 2.2. About the menu location, I think we could create a new menu itme in the navigation tree, let's call it alias configuration, and place it in the Server category ? Any comment ? Thanks !
          Hide
          Victor Fang added a comment -

          Which page should the new portlet be added into?

          Show
          Victor Fang added a comment - Which page should the new portlet be added into?

            People

            • Assignee:
              Kevan Miller
              Reporter:
              David Jencks
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development