Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 8050 invoked from network); 8 Nov 1999 19:38:09 -0000 Received: from sunny.bahnhof.se (193.44.91.1) by apache.org with SMTP; 8 Nov 1999 19:38:09 -0000 Received: from student.tdb.uu.se (pm3-47.bahnhof.se [195.178.166.180]) by sunny.bahnhof.se (8.8.8+Sun/8.8.8) with ESMTP id UAA24996 for ; Mon, 8 Nov 1999 20:37:54 +0100 (MET) Sender: root@sunny.bahnhof.se Message-ID: <38272690.FA414940@student.tdb.uu.se> Date: Mon, 08 Nov 1999 20:37:52 +0100 From: Ola Sundell X-Mailer: Mozilla 4.61 [en] (X11; I; Linux 2.2.12 i686) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: Linux patch for compilation with jdk-1.1.7v3 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! I've been tracking both java-apache and jakarta for some time now, and I feel that I want to get into the coding, and not just being a lurker. I checked out the tomcat sources, just to find that I couldn't build it on my linux box with my Blackdown jdk-1.1.7-v3 for glibc-2.1.2. Just a minor problem in jakarta-tomcat/src/share/org/apache/tomcat/core/ServletLoader.java, and it was easily fixed. Three of the tests failed, though, when I tried running them. I looked at the test pages, and tried some JSPs and servlets. They seemed to be working nicely. Ola diff -u -w -r1.4 ServletLoader.java --- jakarta-tomcat/src/share/org/apache/tomcat/core/ServletLoader.java 1999/11/03 23:43:56 1.4 +++ jakarta-tomcat/src/share/org/apache/tomcat/core/ServletLoader.java 1999/11/07 16:59:42 @@ -527,10 +527,10 @@ } private String[] getJars(File dir, String path) { - File[] files = dir.listFiles(); + String[] files=dir.list(); for (int i = 0; i < files.length; i++) { - File file = files[i]; + File file = new File(files[i]); String p = (path != null) ? path + File.separator : ""; if (file.canRead()) { --- Ola Sundell ola@miranda.org - olas@wiw.org - m95ola@student.tdb.uu.se http://miranda.org/~ola