Recently, there was a post from [EMAIL PROTECTED], who was failing
to build 3.2 on JDK 1.1.8.  I'd run into the same problem, but due
to ISP dificulties (bad DNS lookups to the mail server) have recently
been unable to mail to the jakarta lists.  Since, I haven't seen anyone
put forth this answer, and I don't se a similar change in the code.
Here's what I've done to get around it.

Catch: 
While the change makes sense to me, and I can build, and I can run,
it's worth noting that I haven't had time to really test it.  Specifically,
I haven't actually tried supplying an alternate random class.

Drew Sudell

Index: build.sh
===================================================================
RCS file: /home/cvspublic/jakarta-tomcat/build.sh,v
retrieving revision 1.11
diff -c -r1.11 build.sh
*** build.sh    2000/05/01 15:46:47     1.11
--- build.sh    2000/10/23 04:55:15
***************
*** 20,26 ****
  
  JAVACMD=$JAVA_HOME/bin/java $ANT_OPTS
  
! 
cp=../jakarta-ant/lib/ant.jar:../jakarta-servletapi/lib/servlet.jar:../jakarta-tools/moo.jar:../build/tomcat/classes:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dev.jar
  
  $JAVACMD -classpath $cp:$CLASSPATH org.apache.tools.ant.Main "$@"
  
--- 20,26 ----
  
  JAVACMD=$JAVA_HOME/bin/java $ANT_OPTS
  
! 
cp=../jakarta-ant/lib/ant.jar:../jakarta-servletapi/lib/servlet.jar:../jakarta-tools/moo.jar:../build/tomcat/classes:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dev.jar:$JAVA_HOME/lib/classes.zip
  
  $JAVACMD -classpath $cp:$CLASSPATH org.apache.tools.ant.Main "$@"
  
Index: src/share/org/apache/tomcat/core/ContextManager.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/core/ContextManager.java,v
retrieving revision 1.100.2.11
diff -c -r1.100.2.11 ContextManager.java
*** src/share/org/apache/tomcat/core/ContextManager.java        2000/10/04 20:49:16    
 1.100.2.11
--- src/share/org/apache/tomcat/core/ContextManager.java        2000/10/23 04:55:46
***************
*** 332,338 ****
       *  session id generator. 
       */
      public void setRandomClass(String randomClass) {
!         System.setProperty("tomcat.sessionid.randomclass", randomClass);
      }
  
      /** Get the showDebugInfo property to be used for controlling the display of
--- 332,341 ----
       *  session id generator. 
       */
      public void setRandomClass(String randomClass) {
!                 // XXX - JDK 1.1 lacks System.setProperty()
!                 Properties sysProp = System.getProperties();
!                 sysProp.put("tomcat.sessionid.randomclass", randomClass);
! 
      }
  
      /** Get the showDebugInfo property to be used for controlling the display of
-- 
    Drew Sudell        [EMAIL PROTECTED]         http://www.op.net/~asudell

Reply via email to