Compileproblem with Jakarta 4.0b3

2001-04-27 Thread Erik Hellman

Ok. I finally found out what I needed for installing tomcat 4.0b3 on apache.
Installed all necessary distributions (JNDI,JAXP etc) and set the enviroment
variables correctly (checked and double checked ;).

Now I get this compile error when running './build.sh dist'

build-main:
[javac] Compiling 245 source files to
/usr/java/jakarta/jakarta-tomcat-4.0/catalina/build/classes
[javac]
/usr/java/jakarta/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/
core/ApplicationFilterConfig.java:251: Method
init(org.apache.catalina.core.ApplicationFilterConfig) not found in
interface javax.servlet.Filter.
[javac] filter.init(this);
[javac]^
[javac]
/usr/java/jakarta/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/
core/ApplicationFilterConfig.java:274: Method destroy() not found in
interface javax.servlet.Filter.
[javac] filter.destroy();
[javac]   ^
[javac]
/usr/java/jakarta/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/
core/ApplicationFilterConfig.java:305: Method destroy() not found in
interface javax.servlet.Filter.
[javac] this.filter.destroy();
[javac]^
[javac] Note: 8 files use or override a deprecated API.  Recompile with
"-deprecation" for details.
[javac] 3 errors, 1 warning

BUILD FAILED

/usr/java/jakarta/jakarta-tomcat-4.0/catalina/build.xml:108: Compile failed,
messages should have been provided.

Any idea what's wrong? I use the jakarta-servletapi-4.0.

rgds
Erik Hellman




Re: Compileproblem with Jakarta 4.0b3

2001-04-27 Thread gcs

Hi Erik,

* Erik Hellman <[EMAIL PROTECTED]> [010427 22:20]:

> Now I get this compile error when running './build.sh dist'
 Is there any special reason to pass "dist" as a parameter? I did
./build.sh only.

> Any idea what's wrong? I use the jakarta-servletapi-4.0.
 Are you sure? I mean maybe an other servlet.jar or an unpacked version
is in your $CLASSPATH , before the correct one. Check that first, and
move it out of the way somehow. Also, may set the SERVLETAPI_HOME
variable, ommitting the lib directory at the end afair. So if it is
located under /usr/local/lib, then set as /usr/local . Last chance:
unset it, and use the one supplied for Cataline (if I can remember,
there is one).

Hope it helps, Laszlo