Hello I am using servlet 2.4 and have made no change to CLASSPATH.
Below is the output from the command # ant >output
Buildfile: build.xml
check.source:
get.source:
build:
proxyflags:
download:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-beanutils-1.7.0/commons-beanutils.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-collections-3.1/commons-collections-3.1.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for /usr/share/java/commons-el-1.0/commons-el.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-logging-1.0.4/commons-logging.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-modeler-1.1/commons-modeler.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/logging-log4j-1.2.12/dist/lib/log4j-1.2.12.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-digester-1.7/commons-digester-1.7.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-fileupload-1.0/commons-fileupload-1.0.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for /usr/share/java/xerces-2_7_1/xml-apis.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for /usr/share/java/mx4j-3.0.1/lib/mx4j.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for /usr/share/java/junit3.8.1/junit.jar
downloadzip:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-launcher-0.9/bin/commons-launcher.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-httpclient-2.0/commons-httpclient-2.0.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for /usr/share/java/nsis-2.0/makensis.exe
downloadfile:
setproxy:
testexist:
[echo] Testing for /usr/share/java/struts-1.2.7/lib/struts.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/commons-daemon-1.0.1/commons-daemon.jar
downloadgz:
setproxy:
testexist:
[echo] Testing for
/usr/share/java/tomcat-native-1.1.1/tomcat-native.tar.gz
downloadfile:
init:
build-depends:
build-servletapi:
[echo] == Building:
/usr/share/java/servlet-api-2.4/lib/servlet-api.jar
prepare:
static:
compile:
examples:
[javac] Compiling 11 source files to
/ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/build/examples/W
EB-INF/classes
[javac]
/ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/examples/WEB-INF
/classes/listeners/ContextListener.java:22: cannot find symbol
[javac] symbol : class ServletContextAttributeListener
[javac] location: package javax.servlet
[javac] import javax.servlet.ServletContextAttributeListener;
[javac] ^
[javac]
/ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/examples/WEB-INF
/classes/listeners/ContextListener.java:38: cannot find symbol
[javac] symbol: class ServletContextAttributeListener
[javac] implements ServletContextAttributeListener,
ServletContextListener {
[javac]^
[javac]
/ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/examples/WEB-INF
/classes/listeners/SessionListener.java:23: cannot find symbol
[javac] symbol : class HttpSessionAttributeListener
[javac] location: package javax.servlet.http
[javac] import javax.servlet.http.HttpSessionAttributeListener;
[javac] ^
[javac]
/ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/examples/WEB-INF
/classes/listeners/SessionListener.java:41: cannot find symbol
[javac] symbol: class HttpSessionAttributeListener
[javac]HttpSessionAttributeListener, HttpSessionListener
{
[javac]^
[javac] 4 errors
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Yoav Shapira
Sent: 06 April 2006 13:59
To: Tomcat Developers List
Subject: Re: Tomcat 5.5.16 compile problem on Solaris 10
Hi,
Start from a clean build setup: you have a servlet.jar file from Servlet
Spec v2.3 (or earlier) which doesn't have the Listener(s) added in
Servlet Spec v2.4. To build Tomcat, you don't need to (and
shouldn't) set a CLASSPATH environment variable or otherwise muck with
the classpaths setup by Tomcat's build.xml files.
Yoav
On 4/6/06, Seed, Neville <[EMAIL PROTECTED]> wrote:
> Hello
>
> If this is the wrong mailing list then I appoligise.
>
> When compiling tomcat 5.5.16 on a solaris 10 (sparc) I get the
> following error.
> Can anyone please advice as to the problem so that I can continue?
>
> I have simply downloaded the prerequirites into /usr share/jave and
> ran ant in the tomcat directory.
>
> Regards
> Neville
>
> compile:
> [javac] Compiling 33 source files to
> /ora/neville/apache-tomcat-5.5.16-src/s
> ervletapi/jsr154/build/classes
&