tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Compiling Tomcat 6.0.x trunk
Date Mon, 20 Sep 2010 18:25:29 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

All,

I just got the most recent trunk for 6.0.x and I'm having trouble
compiling it.

First, I just tried "ant compile" and I got this message:

"
BUILD FAILED
/home/.../apache-tomcat-6.0.x/trunk/build.xml:149: destination directory
"/home/.../apache-tomcat-6.0.x/trunk/output/classes" does not exist or
is not a directory
"

That's pretty obvious how to fix that, but it would be nice if the build
was capable of making its own directories. :)

After creating that directory, I tried again:

$ ant compile

[...]

    [javac]
/home/cschultz/projects/non-chadis/apache-tomcat-6.0.x/trunk/java/org/apache/jasper/compiler/JDTCompiler.java:418:
cannot find symbol
    [javac] symbol  : class ICompilationUnit
    [javac] location: class org.apache.jasper.compiler.JDTCompiler
    [javac]             new ICompilationUnit[classNames.length];
    [javac]                 ^
    [javac]
/home/.../apache-tomcat-6.0.x/trunk/java/org/apache/jasper/compiler/JDTCompiler.java:423:
org.apache.jasper.compiler.Compiler is abstract; cannot be instantiated
    [javac]         Compiler compiler = new Compiler(env,
    [javac]                             ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 80 errors

BUILD FAILED
/home/.../apache-tomcat-6.0.x/trunk/build.xml:149: Compile failed; see
the compiler error output for details.

Hmm... time to read BUILDING.txt:

"
(2.2) Building

* Go to that directory, and do:

    cd ${tomcat.source}
    ant download
"

Okay:

$ ant download
Buildfile: /home/.../apache-tomcat-6.0.x/trunk/build.xml

build-manifests:
     [copy] Copying 10 files to
/home/.../apache-tomcat-6.0.x/trunk/output/manifests

download:

proxyflags:

setproxy:

testexist:
     [echo] Testing  for
/usr/share/java/tomcat-native-1.1.20/tomcat-native.tar.gz

downloadfile:

BUILD FAILED
/home/.../apache-tomcat-6.0.x/trunk/build.xml:699: The following error
occurred while executing this line:
/home/.../apache-tomcat-6.0.x/trunk/build.xml:691: Directory
/usr/share/java/tomcat-native-1.1.20 creation was not successful for an
unknown reason

Total time: 1 second

I need root access to build Tomcat? Boo.

I know my way around ant, so let's see. If I re-define "base.path" to
be, say, "./downloads", I should be good to go:

$ ant -Dbase.path=/home/.../apache-tomcat-6.0.x/trunk/downloads download

[works!]

Then,

$ ant -Dbase.path=/home/.../apache-tomcat-6.0.x/trunk/downloads compile

[works!]

So, I have a couple of questions/gripes:

1. Why does "compile" not know how to create it's own destination directory?

2. Why doesn't "base.path" default to something /inside/ the working
copy of the code? I realize that sharing a whole bunch of these
dependencies is a great thing when you're working with a lot of
projects, but I'm guessing that most people frequently working on Tomcat
know how to configure the build to share these deps, and that most other
people have no idea what is going on.

Can we change these two things?

I haven't tried Tomcat 7.0.x, but Mark said at some point that the build
has been (further) simplified, so I'm hoping it will be better.

Thanks,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyXpxkACgkQ9CaO5/Lv0PAHDwCgoSB811qGnM17ebVsHmVXExWr
ddcAnRpFcg8jrKvEE3LQ2/bnVScogagR
=59p4
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message