You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Nick Bauman <ni...@cortexity.com> on 2000/10/25 21:34:52 UTC

3.2b6 build fails ?!?!

Er, sorry this is probably a stupid question, but why is this not working
for me?

[jakarta-tomcat]$ ./build.sh 
Buildfile: build.xml

init:

prepare:
  [copydir] Copying 5 files to /home/nick/apache_1.3.14/build/tomcat/bin

tomcat:
    [javac] Compiling 1 source files to
/home/nick/apache_1.3.14/build/tomcat/classes
    [javac]
/home/nick/apache_1.3.14/jakarta-tomcat/src/share/org/apache/tomcat/core/ContextManager.java:335: Method
setProperty(java.lang.String, java.lang.String) not found in class
java.lang.System.
    [javac]         System.setProperty("tomcat.sessionid.randomclass",
randomClass);
    [javac]                           ^
    [javac] Note: 5 files use deprecated APIs.  Recompile with
"-deprecation" for details.
    [javac] 1 error, 1 warning

BUILD FAILED

build.xml:72: Compile failed

Total time: 18 seconds









Re: 3.2b6 build fails ?!?!

Posted by Casper Gjerris <ca...@mdb.ku.dk>.
From: "Nick Bauman" <ni...@cortexity.com>
> Er, sorry this is probably a stupid question, but why is this not working
> for me?
...
tomcat/src/share/org/apache/tomcat/core/ContextManager.java:335: Method
> setProperty(java.lang.String, java.lang.String) not found in class
> java.lang.System.
>     [javac]         System.setProperty("tomcat.sessionid.randomclass",
> randomClass);

Because you cannot build and run Tomcat 3.2b6 with JDK 1.1.x, you must use JDK 1.2/1.3 or change line 335 in ContextManager.java from

System.setProperty("tomcat.sessionid.randomclass", randomClass);

to

System.getProperties().put("tomcat.sessionid.randomclass", randomClass);

- Casper Gjerris