https://issues.apache.org/bugzilla/show_bug.cgi?id=48366
           Summary: Class HostConfig uses File.list() method result to
                    deploy webapp
           Product: Tomcat 6
           Version: 6.0.20
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: buffoon...@gmail.com


The method ,File.list(),is not always returned a sorted array of String. In my
test, under WinXPSP3/SunJDK1.5 or Debian5.02/SunJDK1.6 or AIX5.3/IBMJDK1.5, it
works well. But, under RHEL4/SunJDK1.5, this method returned an out-of-order
array of String. My webapps need to be loaded in order. This result let them
breakdown.
So,I think HostConfig.java should be modified like this:
HostConfig.java Line490:
before
        // Deploy XML descriptors from configBase
        deployDescriptors(configBase, configBase.list());
        // Deploy WARs, and loop if additional descriptors are found
        deployWARs(appBase, appBase.list());
        // Deploy expanded folders
        deployDirectories(appBase, appBase.list());
after
        // Deploy XML descriptors from configBase
        String[] configFiles = configBase.list();
        Arrays.sort(configFiles, 0, configFiles.length);
        deployDescriptors(configBase, configFiles);
        // Deploy WARs, and loop if additional descriptors are found
        String[] appFiles = appBase.list();
        Arrays.sort(appFiles, 0, appFiles.length);
        deployWARs(appBase, appFiles);
        // Deploy expanded folders
        deployDirectories(appBase, appFiles);

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to