W3C home > Mailing lists > Public > www-jigsaw@w3.org > September to October 1996

Simple Java CGI, run under Jigsaw

From: steve nunez <Steve=Nunez%CS%Contractors@bangate.compaq.com>
Date: Thu, 12 Sep 96 11:09:30 CDT
Message-ID: <vines.HWN6+uK1CmA@bangate.compaq.com>
To: <www-jigsaw@w3.org>
Has anyone run a java cgi program under Jigsaw?

Included with this message is a simple java-based cgi example that runs 
well under most webservers, except for Jigsaw, under WinNT/95 (it also 
fails under Solaris). It is invoked via a batch file (on the M$ platforms). 
I've tested this on NCSA, Apache and the Netscape server, as well a number 
of shareware Win95 webservers and all of them worked. Does anyone have an 
idea as to why this is not working under Jigsaw? I need to be able to run a 
(much more complex) legacy app in basically the same way. Basically the 
batch file calls the java interpreter on the class file, which is located 
in the cgi-bin directory along with the batch file.

I've configured the Jigsaw server properly. If I telnet to Jigsaw and talk 
directly to it, I get an immediate close of connection when requesting this 
file. I realize that the "right" way to do this would be to write a 
resource for Jigsaw, but time is short and Jigsaw wasn't around when this 
app was developed.

_Please_ respond to me via email at "snunez@netgate.compaq.com", since I 
have not received a single message from the list since I signed up about 
two weeks ago. I've received responses on other questions, so I must assume 
that the postings are going out somewhere.

TIA,
	- Steve Nunez

nph-test.bat

	@echo off
	c:\java\bin\java.exe test

and the test class:

import java.io.*;
public class test
{
  public static void main(String args[])
  {
    System.out.println("Hello World");
  }
}
Received on Thursday, 12 September 1996 13:18:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:25 GMT