tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Schönhaber <>
Subject Re: Initial Feedback on Tomcat 6.0.2 build system
Date Mon, 20 Nov 2006 16:24:56 GMT
William L. Thomson Jr. wrote:

> Now for my problem. I got most of the way through compile then ran into
> this.
> /usr/portage/tmp/portage/www-servers/tomcat-6.0.2/work/apache-tomcat-6.0.2-
>src/build.xml:388: Warning: Could not find file
> /usr/portage/tmp/portage/www-servers/tomcat-6.0.2/temp/tomcat-native-1.1.7/
>tomcat-native.tar.gz to copy.
> I am a bit confused. Now granted we are not running the download targets
> for a variety of reasons. But the native sources seem to be inside of
> Tomcat. Why does it need a tar.gz as well as the sources? Shouldn't it
> build that out of the sources. Or is that being shipped on it's own or
> etc. Excuse me if I am totally in left field on this.

The tar.gz contains the sources. More below.

> My plan for the native stuff on Gentoo is to have a USE flag, more than
> likely jni, control if the native connector is built or not. Maybe
> optional openssl or require that since it seems most of the point to the
> native accelerator.
> However I am not getting what the native stuff has to do with building
> the java parts?

AFAICT - nothing. But beware: I'm not a Tomcat developer. Hopefully one of the 
Devs chimes in if the following is not correct.
The source archive for the native connector (tomcat-native.tar.gz) is handled 
by Tomcat's build process in a similar way as the binary dependencies - for 
example the Eclipse compiler, Xerces, the different Jakarta Commons packages 
etc. - i. e. it is pulled by the "download" target of the main build.xml and 
is saved to a subdir in ${base.path}. For the build of the Tomcat Java 
sources the contents of tomcat-native.tar.gz are not needed but the whole 
archive is copied to the binary distribution. That way, users of the binary 
distribution get the source for the native connector automatically and can 
build the connector without the need to fetch the sources separately. This 
build is independent of Tomcat itself. What's needed is the APR (and 
To me it seems reasonable to make the native connector a standalone Gentoo 
package on which the Tomcat package depends if it has corresponding USE-flag 
("jni" as you say) set.


BTW: if there's something I can do to help - for example testing - feel free 
to contact me.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message