This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
'requre' under J2EE environment
- From: Wen-Chun Ni <wcn at tbcommerce dot com>
- To: Kawa List <kawa at sources dot redhat dot com>
- Date: Mon, 17 May 2004 20:41:17 -0700
- Subject: 'requre' under J2EE environment
I've written some Java code implementing gnu.mapping.ProcedureN
that are "required" into scheme code, which are compiled into
Java class files.
If I run it from the repl interface, it works fine. However,
if I use the compiled classes from a servlet, it crashes
the JVM with
Unexpected Signal : 11 occurred at PC=0x403A0C8C
Function=JVM_FindSignal+0x339A4
Library=/opt/Java/j2sdk1.4.2_03/jre/lib/i386/client/libjvm.so
Current Java thread:
at gnu.mapping.Symbol.getFunctionValue(Symbol.java:339)
at gnu.expr.Interpreter.getSymbolProcedure(Interpreter.java:657)
at foo.FooClient.foldlrSeq(../src/java/foo/stat.scm:449)
....
The servlet has something like
static {
Scheme.registerEnvironment();
}
as instructed in the manual. If I don't use 'require' and use direct
Java 'invoke' (to the Java class extending ProcedureN) instead, the
program works alright.
I think I must have done something wrong regarding the global environment
but I can't find the anything about how I can deal with a multi-threaded,
multi-classloader environment like a servlet container in weblogic.
Thanx!
Wen-Chun Ni