kaffe can handle servlets
Simon J. Gerraty
sjg at quick.com.au
Sun Oct 19 23:54:35 PDT 1997
>FYI, a trivial mod to apache's mod_jserv.c (replace "rb+" with "r+b")
>gets servlets running on SunOS 4.1.4 with kaffe-0.9.2.
>When I try this on NetBSD with kaffe-0.9.1 I just get:
>[Fri Oct 17 14:20:41 1997] access to /share/java/JSDK1.0.1/servlets/DateServlet failed for xx.xx.xx.xx, reason: Premature end of script headers
The solution to this was the following patch:
*** kaffe-0.9.1/packages/tjwassoc.co.uk/APInet/lib/java.net/PlainSocketImpl.c.~1~ Fri Jun 27 01:02:10 1997
--- kaffe-0.9.1/packages/tjwassoc.co.uk/APInet/lib/java.net/PlainSocketImpl.c Sun Jul 27 10:26:50 1997
***************
*** 233,243 ****
void
java_net_PlainSocketImpl_socketSetOption(struct Hjava_net_PlainSocketImpl* this, jint v1, jint /* bool */ v2, struct Hjava_lang_Object* v3)
{
! abort();
}
jint
java_net_PlainSocketImpl_socketGetOption(struct Hjava_net_PlainSocketImpl* this, jint val)
{
! abort();
}
--- 233,245 ----
void
java_net_PlainSocketImpl_socketSetOption(struct Hjava_net_PlainSocketImpl* this, jint v1, jint /* bool */ v2, struct Hjava_lang_Object* v3)
{
! /* abort(); /* no thanks --sjg */
}
jint
java_net_PlainSocketImpl_socketGetOption(struct Hjava_net_PlainSocketImpl* this, jint val)
{
! /* abort(); /* no thanks --sjg */
! val = 0;
! return 0;
}
--
Simon J. Gerraty <sjg at quick.com.au>
#include <disclaimer> /* imagine something _very_ witty here */
More information about the kaffe
mailing list