You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Paul Phillips <pa...@go2net.com> on 1997/06/06 11:02:03 UTC

JSDK 1.0 w/ Apache 1.2.0

These are all the diffs I had to make to get JSDK 1.0
mod_servlet.c working with Apache 1.2.0 (the relase notes
claim it does not work with 1.2) on Solaris 2.5.1. I
successfully ran a couple servlets, but haven't done much other
testing as I had to bail.  So in case yer interested in
avoiding the trivial tweaking effort...

-- 
Paul Phillips      |         Time is the best teacher, because it
Lost Sheep         |               kills all the students.
<pa...@go2net.com> | 
+1 206 447 1595    |------* http://www.go2net.com/internet/sequitur/ *------


*** ./mod_servlet.c.orig	Fri Jun  6 01:56:13 1997
--- ./mod_servlet.c	Fri Jun  6 01:55:53 1997
***************
*** 86,92 ****
  #define SERVLET_CONFIG "/opt/local/pkgs/ServAPI/servlets.properties"
  #endif
  #ifndef NCGI_CLASS
! #define NCGI_CLASS "sun.servlet.embedding.ncgi.NcgiServletGate"
  #endif
  #ifndef NCGI_HOST
  #define NCGI_HOST "localhost"
--- 86,92 ----
  #define SERVLET_CONFIG "/opt/local/pkgs/ServAPI/servlets.properties"
  #endif
  #ifndef NCGI_CLASS
! #define NCGI_CLASS "sun.servlet.apache.NcgiServletGate"
  #endif
  #ifndef NCGI_HOST
  #define NCGI_HOST "localhost"
***************
*** 498,504 ****
  
  
  /* ServletConfig command. */
! static char*
  servlet_config( cmd_parms* parms, void* dummy, char* var, char* val )
      {
      server_rec* s = parms->server;
--- 498,504 ----
  
  
  /* ServletConfig command. */
! const char*
  servlet_config( cmd_parms* parms, void* dummy, char* var, char* val )
      {
      server_rec* s = parms->server;
***************
*** 695,701 ****
  	    int len_read, len_to_read = remaining;
  	    if ( len_to_read > sizeof(databuffer) )
  		len_to_read = sizeof(databuffer);
! 	    len_read = read_client_block( r, databuffer, len_to_read );
  	    if ( len_read == 0 )
  		break;
  	    if ( ok_to_write )
--- 695,701 ----
  	    int len_read, len_to_read = remaining;
  	    if ( len_to_read > sizeof(databuffer) )
  		len_to_read = sizeof(databuffer);
! 	    len_read = get_client_block( r, databuffer, len_to_read );
  	    if ( len_read == 0 )
  		break;
  	    if ( ok_to_write )



Re: JSDK 1.0 w/ Apache 1.2.0

Posted by Brian Behlendorf <br...@organic.com>.
On Fri, 6 Jun 1997, Paul Phillips wrote:
> These are all the diffs I had to make to get JSDK 1.0
> mod_servlet.c working with Apache 1.2.0 (the relase notes
> claim it does not work with 1.2) on Solaris 2.5.1. I
> successfully ran a couple servlets, but haven't done much other
> testing as I had to bail.  So in case yer interested in
> avoiding the trivial tweaking effort...

This is great.  Paul, does it launch the java interpreter with every access (a
la CGI) or does it pass requests off to a java daemon, a la FastCGI?

	Brian

--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--
brian@organic.com  www.apache.org  hyperreal.com  http://www.organic.com/JOBS