[kaffe] Resin 3.0.7 loaded, but not works correctly.
jserv@linux2.cc.ntu.edu.tw
jserv@linux2.cc.ntu.edu.tw
Mon Apr 12 05:15:02 2004
--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=big5
Content-Disposition: inline
Hi all,
I got Caucho Technology's Resin 3.0.7 [1] loaded in KaffeVM. Due to
Kaffe's lacking JVMDI implementation, I have to do a small patch for
building the native library. However, I found Resin 3.0.7 running on
Kaffe could not handle anything about dynamic web page, such as XTP
[2], JSP, and Java servlet.
I have no idea since Resin generated no informations, and I am
seeking for someone's help.
Thanks,
Jim Huang
[1] http://www.caucho.com/
[2] http://www.caucho.com/resin-3.0/xtp/intro.xtp
--d6Gm4EdcadzBjdND
Content-Type: text/plain; charset=big5
Content-Disposition: attachment; filename="resin3-kaffe.diff"
diff -x doc -x cache -x 'config*' -x Makefile -x init.resin -x webapps -urN resin-3.0.7/build resin-3.0.7-kaffe/build
--- resin-3.0.7/build 1970-01-01 08:00:00.000000000 +0800
+++ resin-3.0.7-kaffe/build 2004-04-12 18:51:08.000000000 +0800
@@ -0,0 +1,6 @@
+sh configure \
+ --enable-jni \
+ --enable-debug \
+ --with-java-home=/usr/lib/kaffe \
+ --with-jni-include=-I/usr/lib/kaffe/include
+
diff -x doc -x cache -x 'config*' -x Makefile -x init.resin -x webapps -urN resin-3.0.7/conf/resin.conf resin-3.0.7-kaffe/conf/resin.conf
--- resin-3.0.7/conf/resin.conf 2004-03-25 08:28:47.000000000 +0800
+++ resin-3.0.7-kaffe/conf/resin.conf 2004-04-12 19:31:39.000000000 +0800
@@ -23,7 +23,7 @@
- The default is "internal" only because it's the most
- likely to be available.
-->
- <javac compiler="internal" args=""/>
+ <javac compiler="jikes" args=""/>
<!-- Security providers.
- <security-provider>
diff -x doc -x cache -x 'config*' -x Makefile -x init.resin -x webapps -urN resin-3.0.7/run resin-3.0.7-kaffe/run
--- resin-3.0.7/run 1970-01-01 08:00:00.000000000 +0800
+++ resin-3.0.7-kaffe/run 2004-04-12 19:19:59.000000000 +0800
@@ -0,0 +1 @@
+RESIN_HOME=`pwd` LD_LIBRARY_PATH=`pwd`/src/c/plugin/resin JAVA_HOME=/usr/lib/kaffe bin/httpd.sh
diff -x doc -x cache -x 'config*' -x Makefile -x init.resin -x webapps -urN resin-3.0.7/src/c/plugin/resin/jni_vfs.c resin-3.0.7-kaffe/src/c/plugin/resin/jni_vfs.c
--- resin-3.0.7/src/c/plugin/resin/jni_vfs.c 2004-03-25 08:29:07.000000000 +0800
+++ resin-3.0.7-kaffe/src/c/plugin/resin/jni_vfs.c 2004-04-12 19:23:55.000000000 +0800
@@ -77,7 +77,7 @@
#include <errno.h>
/* probably system-dependent */
#include <jni.h>
-#include <jvmdi.h>
+// FIXME: #include <jvmdi.h>
#include "../common/cse.h"
#include "resin.h"
@@ -1519,6 +1519,7 @@
Java_com_caucho_loader_ClassEntry_canReloadNative(JNIEnv *env,
jobject obj)
{
+/* FIXME: Kaffe doesn't support JVMDI
JavaVM *jvm = 0;
JVMDI_Interface_1 *jvmdi = 0;
JVMDI_capabilities capabilities;
@@ -1537,6 +1538,8 @@
(jvmdi)->GetCapabilities(&capabilities);
return capabilities.can_redefine_classes;
+ */
+ return 0;
}
jint
@@ -1547,6 +1550,7 @@
jint offset,
jint length)
{
+/* FIXME: Kaffe doesn't support JVMDI
JavaVM *jvm = 0;
JVMDI_Interface_1 *jvmdi = 0;
int res;
@@ -1575,6 +1579,8 @@
}
return res;
+ */
+ return 0;
}
--d6Gm4EdcadzBjdND--