You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Ola Sundell <m9...@student.tdb.uu.se> on 1999/11/08 20:37:52 UTC
Linux patch for compilation with jdk-1.1.7v3
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
Re: Linux patch for compilation with jdk-1.1.7v3
Posted by "Anil K. Vijendran" <An...@eng.sun.com>.
Hi Ola,
I fixed that y'day and got it all running on Linux glibc-2.1.2/IBM JDK1.1.8.
Ola Sundell wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
--
Peace, Anil +<:-)