tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geoff Soutter" <ge...@whitewolf.com.au>
Subject [t4] FYI: usual problems building according to README...
Date Fri, 15 Jun 2001 04:17:46 GMT
Hi tc4 people,

I'm putting myself through the regular "build TC4 from source" hell that I
do whenever I want to test the latest version. (this is on WinNT4)

I came across the following issues, you may be aware of them already but I
thought I'd report 'em just in case...

1) It no longer builds on JDK1.2. The README indicates 1.2 or later is
required.

I get the following errors on build dist for tomcat:

build-main:
    [javac] Compiling 2 source files to
D:\apps\jakarta\src\40b5\jakarta-tomcat-4.0\catalina\build\classes
    [javac]
D:\apps\jakarta\src\40b5\jakarta-tomcat-4.0\catalina\src\share\org\apache\ca
talina\servlets\CGIServlet.java:1567: Wrong number of arguments in metho
d.
    [javac]         proc = rt.exec(cmdAndArgs.toString(),
hashToStringArray(env), wd);
    [javac]                       ^
    [javac]
D:\apps\jakarta\src\40b5\jakarta-tomcat-4.0\catalina\src\share\org\apache\ca
talina\util\ProcessHelper.java:381: Wrong number of arguments in method.

    [javac]     proc = rt.exec(cmdAndArgs.toString(),
hashToStringArray(env), wd);
    [javac]                   ^
    [javac] 2 errors

BUILD FAILED

Seems it's relying on a Runtime.exec() method overload which was added in
JDK1.3 (interesting, the @since tag is missing? weird. Hope I'm not
suffering brain-fade on this one...)

2) it seems to be depending on old versions of the projects it depends on:

For example, the bootstrap.bat file for building jakarta-ant from source
doesn't co-operate well with the other stuff.

It sets

- ANT_HOME=.
- stuffs up the classpath (adds extra ""'s in there)
- puts ant.jar in /bootstrap/lib rather than /lib where the other build
scripts expect it.

Also, jakarta-regexp currently builds jakarta-regexp-1.3-dev.jar rather than
the jakarta-regexp-1.2.jar that the catalina build.xml expects. Seems you
can just rename the jar file or I guess you could use

cvs checkout -r RELEASE_1_2 jakarta-regexp

3) seems theres co-ordination problem between the jakarta-servletapi-4 and
jakarta-tomcat.

When I build I get the following error:

BUILD FAILED

D:\apps\jakarta\src\40b5\jakarta-tomcat-4.0\build.xml:129:
D:\apps\jakarta\src\40b5\jakarta-servletapi-4\docs\api not found.

build dist for the servlet API does create javadoc, but they are in the
dist\docs\api dir...

Apart from that it went well though :-) I'm cookin' with gas now...

Geoff
--
Keep cool till after school!


Mime
View raw message