Geronimo
  1. Geronimo
  2. GERONIMO-5525

Geronimo launch failed for Multiple Geronimo Instances

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 3.0.0
    • Fix Version/s: None
    • Component/s: startup/shutdown
    • Security Level: public (Regular issues)
    • Labels:
      None

      Description

      According to the configuration https://cwiki.apache.org/GMOxDOC22/running-multiple-geronimo-instances.html, I configure Geronimo 3.0 trunk build, but it can't start in case of multi instances.

      Here is the error message after "geronimo run",

      "Error launching framework: java.lang.NullPointerException"

        Activity

        Hide
        Shawn Jiang added a comment -

        Closing this invalid jira.

        Show
        Shawn Jiang added a comment - Closing this invalid jira.
        Hide
        Chi Runhua added a comment -

        Thanks Shawn for the information, I updated G3.0 doc accordingly at https://cwiki.apache.org/confluence/display/GMOxDOC30/Running+multiple+Geronimo+instances

        Jeff Chi

        Show
        Chi Runhua added a comment - Thanks Shawn for the information, I updated G3.0 doc accordingly at https://cwiki.apache.org/confluence/display/GMOxDOC30/Running+multiple+Geronimo+instances Jeff Chi
        Hide
        Shawn Jiang added a comment -

        I just noticed the code below:

        org.apache.geronimo.main.FrameworkLauncher.loadStartupProperties()

         private List<BundleInfo> loadStartupProperties() throws Exception {        
                File etc = new File(geronimoBase, "etc");
                        
                File file = new File(etc, startupFile);
                Properties startupProps = Utils.loadPropertiesFile(file, true);
                
                ArrayList<File> bundleDirs = new ArrayList<File>();
                
                String defaultRepo = System.getProperty(DEFAULT_REPO, "repository");
        
                if (geronimoBase.equals(geronimoHome)) {
                    bundleDirs.add(new File(geronimoHome, defaultRepo));
                } else {
                    bundleDirs.add(new File(geronimoBase, defaultRepo));
                    bundleDirs.add(new File(geronimoHome, defaultRepo));
                }
                
                return loadStartupProperties(startupProps, bundleDirs);
            }
        

        Which means, in addition to "var" and "etc", "repository" directory must also be copied into the new instance path for 3.0.

        Show
        Shawn Jiang added a comment - I just noticed the code below: org.apache.geronimo.main.FrameworkLauncher.loadStartupProperties() private List<BundleInfo> loadStartupProperties() throws Exception { File etc = new File(geronimoBase, "etc" ); File file = new File(etc, startupFile); Properties startupProps = Utils.loadPropertiesFile(file, true ); ArrayList<File> bundleDirs = new ArrayList<File>(); String defaultRepo = System .getProperty(DEFAULT_REPO, "repository" ); if (geronimoBase.equals(geronimoHome)) { bundleDirs.add( new File(geronimoHome, defaultRepo)); } else { bundleDirs.add( new File(geronimoBase, defaultRepo)); bundleDirs.add( new File(geronimoHome, defaultRepo)); } return loadStartupProperties(startupProps, bundleDirs); } Which means, in addition to "var" and "etc", "repository" directory must also be copied into the new instance path for 3.0.

          People

          • Assignee:
            Chi Runhua
            Reporter:
            Delos Dai
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development