Thanks for the suggestion. I got it to compile successfully by upgrading
from Ant 1.6.1 to 1.6.2. I assumed that RedirectorElement was part of
the ant distribution, and an upgrade seemed to be a good shotgun approach.
-Mark
Mark Thomas wrote:
Sounds like you need to edit/create the build.properties file for your
environment.
For what it is worth, mine looks something like this (I have removed a
couple of CVS settings)
# ----- Default Base Path for Dependent Packages -----
# Replace this path with the directory path where dependencies binaries
# should be downloaded
base.path=D:/JavaDev/libs
commons-daemon.project=jakarta-commons/daemon
full.dist=on
mail.jar=${base.path}/javamail-1.3.1/lib/mailapi.jar
Mark
Mark Leone wrote:
I've been running Tomcat from a binary distribution for a couple
years (4.1.24 for most of the time, 5.5.7 for a month or so) on a
Windows XP platform. Today I decided to download the source
distribution of 5.5.7 and do a build. I downloaded the .zip file,
unzipped it, and typed "ant" on the command line in the
"jakarta-tomcat-5.5.7-src" directory. The ant script executed, but
the build failed, with the last part of the ant output provided below.
Looks like the problem is the missing RedirectorElement class. I
didn't see anything about this in the release notes- anyone know how
I can get it to build?
I noticed that a usr/ directory with lots of subdirectories got
created by the ant script. Is that normal for a Windows build? Looks
like unix. Also, anyone know why the ant script downloads a zip file
with mx4j every time I execute it? It doesn't seem to get saved,
since it downloads it again the next time I run the script. Kind of
annoying, cause it takes a long time to download, even though I have
4 Mbps bandwidth.
-Mark
build-catalina-core:
[javac] Compiling 305 source files to C:\Apache
Tomcat\jakarta-tomcat-5.5.7-
src\jakarta-tomcat-5\build\classes
[javac] C:\Apache
Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca
talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:29:
canno
t find symbol
[javac] symbol : class RedirectorElement
[javac] location: package org.apache.tools.ant.types
[javac] import org.apache.tools.ant.types.RedirectorElement;
[javac] ^
[javac] C:\Apache
Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca
talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:60:
canno
t find symbol
[javac] symbol : class RedirectorElement
[javac] location: class
org.apache.catalina.ant.BaseRedirectorHelperTask
[javac] protected RedirectorElement redirectorElement = null;
[javac] ^
[javac] C:\Apache
Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca
talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:216:
cann
ot find symbol
[javac] symbol : class RedirectorElement
[javac] location: class
org.apache.catalina.ant.BaseRedirectorHelperTask
[javac] public void addConfiguredRedirector(RedirectorElement
redirector
Element) {
[javac] ^
[javac] C:\Apache
Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\ca
talina\src\share\org\apache\catalina\ant\BaseRedirectorHelperTask.java:208:
cann
ot find symbol
[javac] symbol : method setCreateEmptyFiles(boolean)
[javac] location: class org.apache.tools.ant.taskdefs.Redirector
[javac] redirector.setCreateEmptyFiles(createEmptyFiles);
[javac] ^
[javac] Note: * uses or overrides a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 4 errors
BUILD FAILED
C:\Apache Tomcat\jakarta-tomcat-5.5.7-src\build.xml:50: Following
error occured
while executing this line
C:\Apache
Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-5\build.xml:510: Follow
ing error occured while executing this line
C:\Apache
Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-5\build.xml:475: Follow
ing error occured while executing this line
C:\Apache
Tomcat\jakarta-tomcat-5.5.7-src\jakarta-tomcat-catalina\catalina\build
.xml:604: Compile failed; see the compiler error output for details.
Total time: 4 minutes 16 seconds
C:\Apache Tomcat\jakarta-tomcat-5.5.7-src>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]