Re: Port 80 under unix

> I'm attempting to run off port 80 and therefore need libUnix.so
> 
> The documentation mentions somewhere that libUnix.so is compiled for
> sparc and will need to be recompiled for other Unix's.
> 
> I'm running AIX and I assume that 'Jigsaw/src/lib/unix/unix.c' is the
> file I need to compile. If this is the case, I believe I need
> 'org_w3c_util_Unix.h' which I can't find.
> 
> Where should I look.
> 
> Thanks again,
> 
> Phil

----

I've ported the old "port 80 allocation code for unix" to the newer JNI
1.1, maybe you'll get happy with this.
The "only" thing to do for you is to modify the Makefile included to
match you local paths.

The code was deleoped under jigsaw 2.0.1, SunOS puck 5.7 Generic sun4m
sparc SUNW,SPARCstation-5, Solaris VM (build
Solaris_JDK_1.2_01_dev06_fcsV, native threads, sunwjit).

I'll send you here a snapshot from an older (and stable working) build
as an attachment (jigsaw_unix_jni1_1_v001.tar.gz).
Yves Lafon got the code, too, for re-integration into jigsaw's source
tree.

----

COMPILATION:

Simply modify the suppied Makefile to match your local java and
(g)cc-installations; most times it should be enougth to modify the
CLASSPATH statement.

INSTALLATION:


Please add a small FAQ entry with the following stuff (we're running
various jigsaw servers here in the University, and some things went
wrong after
jigsaw wasn't running under root rights any more. I cannot say the list
is complete, but it describes IMHO the main problems...):

And what to do to install it (I'm assuming bash 2.x syntax below):
(be carefull, some of the stuff below must be done with root rights)

    1.Create a backup of the class archive:
       cd ~/Jigsaw/classes
       cp jigsaw.zip jigsaw.zip.original
    2.Get rid of the old libUnix.so and copy the new one to the
directory:
       cd ~/Jigsaw/lib
       mv libUnix.so libUnix.so.original
       OR
       set your LIBRARY_LD_PATH to the place where the new libUnix.so
sits...
    3.Get rid of the old classes (we've to use zip here because jar does
not have a delete option):
       zip -d jigsaw.zip org/w3c/util/Unix.class
       zip -d jigsaw.zip org/w3c/util/UnixException.class
       (don't forget to add the path where the new Unix*.class sits to
the CLASSPATH of jigsaw (for example, by modifying the
~/Jigsaw/Jigsaw/bin/jigsaw script) !!)
    4.chown/chmod the configuration files, otherwise jigsaw can't
read/write it's config files/stores due lack of permissions :-(
       Following is bash syntax, be carefull !!
       chown -R jigsaw:www ~/Jigsaw/Jigsaw/config
    5.Same procedure for the log files:
       chown -R jigsaw:www ~/Jigsaw/Jigsaw/logs
    6.And the same for all files created by servlets...
    7.Run a test session and watch jigsaw's output, or wait until your
users will send you a mail (not happened to me, but...) if something
doesn't
       work any more.
       Most problems may occur if some stuff was accessible by user
root, but not any more by user jigsaw...

TODO:

I'd like to change the naming of the shared library objects that
different *.so for different architectures can sit in the Jigsaw/lib
directory.
jigsaw's distribution should contain at least shared libraries for Sun
Sparc, Linux and AIX (see TODO somewhere in the sources for details...).

----

Bye,
Roland

--
  __ .  . __
 (o.\ \/ /.o)  Roland Mainz                               C programmer
  \__\/\/__/   Roland.Mainz@informatik.med.uni-giessen.de MPEG specialist
  /O /==\ O\   gisburn@w-specht.rhein-ruhr.de             Sun&&Amiga programmer
 (;O/ \/ \O;)  TEL +49 (0) 2426901568  FAX +49 (0) 2426901569


---------------------------------------------------------
Phil Blake                                phil@tcp.net.au
Translation Creation Production     http://www.tcp.net.au
32 Harrow Road                         tel +612 9519 4235
Stanmore NSW 2048                      fax +612 9519 9445
Australia                          toll free 1800 242 954

Received on Tuesday, 16 February 1999 08:40:40 UTC