cziegeler    01/04/06 07:18:11

  Modified:    src/org/apache/cocoon/servlet Tag: xml-cocoon2
                        CocoonServlet.java
  Log:
  jar files are loaded in alphabetical order
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.4.80  +5 -4      
xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java
  
  Index: CocoonServlet.java
  ===================================================================
  RCS file: 
/home/cvs/xml-cocoon/src/org/apache/cocoon/servlet/Attic/CocoonServlet.java,v
  retrieving revision 1.1.4.79
  retrieving revision 1.1.4.80
  diff -u -r1.1.4.79 -r1.1.4.80
  --- CocoonServlet.java        2001/04/05 16:57:10     1.1.4.79
  +++ CocoonServlet.java        2001/04/06 14:18:09     1.1.4.80
  @@ -17,6 +17,7 @@
   import java.net.MalformedURLException;
   import java.net.URL;
   
  +import java.util.Arrays;
   import java.util.StringTokenizer;
   
   import javax.servlet.ServletConfig;
  @@ -62,7 +63,7 @@
    * @author <a href="mailto:[EMAIL PROTECTED]">Stefano Mazzocchi</a>
    * @author <a href="mailto:[EMAIL PROTECTED]">Nicola Ken Barozzi</a> Aisa
    * @author <a href="mailto:[EMAIL PROTECTED]">Berin Loritsch</a>
  - * @version CVS $Revision: 1.1.4.79 $ $Date: 2001/04/05 16:57:10 $
  + * @version CVS $Revision: 1.1.4.80 $ $Date: 2001/04/06 14:18:09 $
    */
   
   public class CocoonServlet extends HttpServlet {
  @@ -159,8 +160,8 @@
        * does so in a Servlet Engine neutral way.  It uses the
        * <code>ServletContext</code>'s <code>getRealPath</code> method
        * to get the Servlet 2.2 identified classes and lib directories.
  -     * It iterates through every file in the lib directory and adds
  -     * it to the classpath.
  +     * It iterates in alphabetical order through every file in the
  +     * lib directory and adds it to the classpath.
        *
        * Also, we add the files to the ClassLoader for the Cocoon system.
        * In order to protect ourselves from skitzofrantic classloaders,
  @@ -180,7 +181,7 @@
   
           if (root.isDirectory()) {
               File[] libraries = root.listFiles();
  -
  +            Arrays.sort(libraries);
               for (int i = 0; i < libraries.length; i++) {
                   buildClassPath.append(File.pathSeparatorChar)
                                 .append(IOUtils.getFullFilename(libraries[i]));
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to