circle.ch weblog / wiki

A weblog about open source development, law, technology, politics and the like.

Howto (probably outdated):
Install java 2 sdk to:		c:\java\jdk
install java runtime env. to: 	c:\java\jre
move jigsaw directory to:	c:\jigsaw

//***********************************************************************

0.0)
set PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRAMME\PICC;C:\APACHE\;C:\MYSQL\BIN\;C:\java\jdk\BIN\;

0.1)
set CLASSPATH=%CLASSPATH%;c:\Jigsaw\classes\jigsaw.jar;c:\Jigsaw\classes\sax.jar;c:\Jigsaw\classes\xp.jar;c:\Jigsaw\classes\servlet.jar;.

1)
cd c:\Jigsaw\Jigsaw

2)
java Install

3)
java org.w3c.jigsaw.Main -root C:\Jigsaw\Jigsaw

//***********************************************************************

admin
java -classpath %CLASSPATH% org.w3c.jigadm.Main -root c:\Jigsaw\Jigsaw http://127.0.0.1:8009/

//***********************************************************************

alternative run:

cd c:\Jigsaw\scripts
jigsaw.bat
jigadmin.bat			--> works nice!

//***********************************************************************

Installation complete with 0 warning.

type:
type 'c' to launch Jigsaw
java org.w3c.jigadmin.Main -root C:\Jigsaw\Jigsaw http://localhost:8009
java org.w3c.jigadm.Main -root C:\Jigsaw\Jigsaw http://localhost:8009


*** salvaging resource manager state...
*** resource store state salvaged, using: 1
*** Warning : JigAdmin[2.1.1]: no logger specified, not logging.
JigAdmin[2.1.1]: serving at http://gehrig:8009/
*** salvaging resource manager state...
*** resource store state salvaged, using: 26
Jigsaw[2.1.1]: serving at http://gehrig:8001/


NOTE: The default username/password for the admin server is admin/admin
It is strongly recommended to change it as soon as possible!

//***********************************************************************

How do I setup CGI scripts ?
They are two ways to setup CGI scripts. The manual way requires that you 
describe each script to the server. Let's say your script's path relative 
to the server root is WWW/cgi-bin/myscript. You will first have to create 
an appropriate org.w3c.tools.resources.FileResource with a 
org.w3c.jigsaw.frames.CgiFrame instance to wrap your script. 
See this tutorials to know how to create a resource in Jigsaw. 
Then edit the newly created resource, and setup it's command line 
(the command line the server will use to run your script). Each line 
of the text field should represent one argument, the first one being 
the script full path.

You can also register files of a given extension as scripts, by using a 
specialized indexer.  When required, you can even specify the interpreter 
to be run to execute the script (for example, under Windows 95, or NT).

How can I use php3 in Jigsaw ?
This is quite easy, the best way is to do it directly using an indexer. php3 
scripts will be handled as CGIs (so see the FAQ entry above). 
You need first to compile php3 as a cgi interpreter, then configure 
the "php3" extension in your indexer using a FileResource and a CgiFrame, 
like aforementionned. Then, in your CgiFrame, set the "interpreter" field 
to your php binary, and "Generates Form" to true. (Note, this will work with 
Jigsaw 2.0.2 and up)
Jigsaw Server batch file for Windows Systems:
cd C:\Jigsaw\scripts
set CLASSPATH=Jigsaw;..\classes\jigsaw.jar;..\classes\sax.jar;..\classes\xp.jar;..\classes\jigadmin.jar;.
java -cp %CLASSPATH% org.w3c.jigadmin.Main -root ..\jigsaw http://127.0.0.1:8009/
pause
Jigsaw Client batch file for Windows Systems:
cd C:\Jigsaw\scripts
set CLASSPATH=Jigsaw;..\classes\jigsaw.jar;..\classes\sax.jar;..\classes\xp.jar;..\classes\jigadmin.jar;.
java -classpath %CLASSPATH% org.w3c.jigsaw.Main -root c:\jigsaw\jigsaw\
pause