On Fri, 15 Jun 2001, Geoff Soutter wrote:

> 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.
> 

Yep ... that's a known issue with the new CGI support.  It will get set up
so that this is (at least) optional until we resolve the underlying
dependency.

> 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.
> 

The revised instructions say to use a released version of Ant that has
"$ANT_HOME/bin" on your PATH.  Then, you can just say "ant dist" or
whatever.

> 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
> 

Classic reason I think putting version numbers in JAR filenames is not the
right answer ...

The other alternative (just copy all the JARs from that directory) runs
the risk of getting multiple copies.

> 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...
> 

You need to do a "ant dist" in jakarta-servletapi-4 to create the API
docs.  I'll add that to the How To stuff.

> Apart from that it went well though :-) I'm cookin' with gas now...
> 
> Geoff
> --
> Keep cool till after school!
> 
> 
Craig


Reply via email to