[kaffe] Jetty 4.2.9 and JSPs

Jim Pick jim at kaffe.org
Sun Jul 27 00:34:02 PDT 2003


Hi,

I checked in a new kjc.jar which changes the default location where
.class files are dropped when compiling, so it matches Sun's javac.

So now JSPs work in Jetty.  I haven't tried Tomcat yet...

Give it a try, with Jetty 4.2.9:

$ export JAVA_HOME=/usr/local/kaffe
$ export JAVA_OPTIONS=-Dbuild.compiler=kjc

Unfortunately, bin/jetty.sh needs a tiny patch, because it
looks at the output of "java -version":

--- bin/jetty.sh.old    2003-07-27 00:24:16.000000000 -0700
+++ bin/jetty.sh        2003-07-27 00:24:32.000000000 -0700
@@ -397,7 +397,8 @@
     exit 1
 fi

-JAVA_VERSION=`expr "$($JAVA -version 2>&1 | head -1)" :
'.*1\.\([0-9]\)'`
+#JAVA_VERSION=`expr "$($JAVA -version 2>&1 | head -1)" :
'.*1\.\([0-9]\)'`
+JAVA_VERSION=2

 #####################################################
 # See if JETTY_PORT is defined

Then you should be able to run the demos:

$ bin/jetty.sh start etc/demo.xml

Connect to http://localhost:8080/ and try the demos.

Cheers,

 - Jim







More information about the kaffe mailing list