tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yoav Shapira" <yo...@apache.org>
Subject Re: Tomcat 5.5.16 compile problem on Solaris 10
Date Thu, 06 Apr 2006 12:59:25 GMT
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 <Neville.Seed@tycoelectronics.com> 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
>     [javac] Note:
> /ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/src/sh
> are/javax/servlet/ServletRequestWrapper.java uses or overrides a
> deprecated API.
>     [javac] Note: Recompile with -Xlint:deprecation for details.
>     [javac] Note:
> /ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/src/sh
> are/javax/servlet/http/HttpUtils.java uses unchecked or unsafe
> operations.
>     [javac] Note: Recompile with -Xlint:unchecked for details.
>      [copy] Copying 7 files to
> /ora/neville/apache-tomcat-5.5.16-src/servletapi/
> jsr154/build/classes
>      [copy] Copying 12 files to
> /ora/neville/apache-tomcat-5.5.16-src/servletapi
> /jsr154/build/classes/javax/servlet/resources
>
> examples:
>      [copy] Copying 31 files to
> /ora/neville/apache-tomcat-5.5.16-src/servletapi
> /jsr154/build/examples
>     [javac] Compiling 11 source files to
> /ora/neville/apache-tomcat-5.5.16-src/s
> ervletapi/jsr154/build/examples/WEB-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,
> ServletContextListen
> er {
>     [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
>
> BUILD FAILED
> /ora/neville/apache-tomcat-5.5.16-src/build.xml:48: The following error
> occurred
>  while executing this line:
> /ora/neville/apache-tomcat-5.5.16-src/build/build.xml:1968: The
> following error
> occurred while executing this line:
> /ora/neville/apache-tomcat-5.5.16-src/build/build.xml:651: The following
> error o
> ccurred while executing this line:
> /ora/neville/apache-tomcat-5.5.16-src/build/build.xml:172: The following
> error o
> ccurred while executing this line:
> /ora/neville/apache-tomcat-5.5.16-src/servletapi/jsr154/build.xml:114:
> Compile f
> ailed; see the compiler error output for details.
>
>


--
Yoav Shapira
Nimalex LLC
1 Mifflin Place, Suite 310
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com

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


Mime
View raw message