head	1.11;
access;
symbols;
locks
	nobody:1.11; strict;
comment	@# @;


1.11
date	99.05.19.18.26.06;	author nobody;	state Exp;
branches;
next	1.10;

1.10
date	99.05.19.18.23.54;	author nobody;	state Exp;
branches;
next	1.9;

1.9
date	99.05.19.18.23.27;	author nobody;	state Exp;
branches;
next	1.8;

1.8
date	99.05.19.18.23.04;	author nobody;	state Exp;
branches;
next	1.7;

1.7
date	99.04.27.01.26.50;	author nobody;	state Exp;
branches;
next	1.6;

1.6
date	99.04.27.01.25.46;	author nobody;	state Exp;
branches;
next	1.5;

1.5
date	99.04.01.17.36.02;	author nobody;	state Exp;
branches;
next	1.4;

1.4
date	99.03.31.03.15.52;	author nobody;	state Exp;
branches;
next	1.3;

1.3
date	99.03.23.20.40.51;	author nobody;	state Exp;
branches;
next	1.2;

1.2
date	99.03.23.20.40.42;	author nobody;	state Exp;
branches;
next	1.1;

1.1
date	99.03.23.20.40.28;	author nobody;	state Exp;
branches;
next	;


desc
@null
@


1.11
log
@null
@
text
@IDependOn-Set: 1
IDependOn-Set: 3
IDependOn-Set: 59
IDependOn-Set: 69
IDependOn-Set: 78
LastModifiedSecs: 927138366
Parent: 3
SequenceNumber: 9
Title: Configuration questions...
Part: 0
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 922221600
Type: monospaced
Lines: 65
>Redhat 5.2, Linux 2.2.1
>Apache 1.3.4 + ssl
>JServ 1.0b3
>
>I have been trying to get JServ SSI to work with my setup, but I haven't
>quite got it right.  I got the JServSSI jar file made, and I've created a
>servlets zone.  All that works right.  I have added "AddType" and
>"AddHandler" statements for .jhtml files in both the Apache conf and JServ
>conf files but nothing I do seems to work.  I either get a 404 error, a 500
>error, or the connection times out.  My question is what is the proper
>configuration for the .jhtml setup?  Do I put the AddHandler statement into
>my httpd.conf file and not into jserv.conf, do I put it both places?  The
>.jar file is included in the source path, but I get this 404 error when I
>try to get the .jhtml file "(ERROR) ajp11: Servlet Error:
>ClassNotFoundException: org.apache.ssi.SSIServlet".  Do I need to move the
>.jar file into the servlets directory?  Or do I have a different
>configuration error?

I did this just days ago.  Maybe what I did will help.

In jserv.conf, I added

        ApJServAction .jhtml /servlet/org.apache.jservssi.JServSSI

to point to my servlet zone.

In jserv.properties, I added

        wrapper.classpath=/usr/local/Apache-JServ-SSI/src/ApacheJServSSI.jar

to add ApacheJServSSI to my classpath.

I've tried that with Example 2-4 from Jason Hunter's book.  The times.jhtml
runs from a directory that does *not* have SSI privelages.  That *might* be
a bug.  Also, I get a NullExceptionPointer on the first <SERVLET> tag
though I modified Hunter's code:

From:

    String zone = req.getParameter("zone");
    if (zone != null) {
      TimeZone tz = TimeZone.getTimeZone(zone);
      df.setTimeZone(tz);
    }

To:

    String zone = req.getParameter("zone");
    TimeZone tz;
    if (zone != null) {
      tz = TimeZone.getTimeZone(zone);
    }
    else {
      tz = TimeZone.getDefault();
    }

Finally, I see no signs of the "Known Bug" cited in the JServSSI docs:
"Currently, the parameters set for the first servlet on a page will still
be set in the next servlet."


--------------------------------------------------------------------------
Thad Humphries                       "'Open Systems' means no fences. And
Software Engineer (aka, Nerd)          no fences means no need for Gates."
Phone: 540/675-3015, ext. 225                           - Sun Microsystems
EndPart: 0
Part: 1
Author-Set: jon@@working-dogs.com
HideAttributions: 1
LastModifiedSecs: 927138207
Type: 
Lines: 20
I am running Apache (1.3.3) on Linux (RH 5.1).  I have found several things I had to change from the default or instructions in the book to get JServSSI to work:


1) Make sure the class name in the ApJServAction .jhtml ... line in the master properties file (jserv.properties in my case) is org.apache.jservssi.JServSSI.  The last two items in the default were incorrect.


2) I can either include the ApacheJServSSI.jar in my classpath, or I can point to it in a repositories statement in my zone properties file for the zone indicated by the ApJServAction line in the master properties file.  Either (or both) seem to work.


3) When passing parameters from the called servlet to the .jhtml file, put the parameters in quotes in the .jhtml file, like so:


  <PARAM NAME="name" VALUE="doug">


  otherwise I get a NullPointerException when I call GetParameter.


4) I also tried putting the "jar" file with JServSSI in it into my classpath, and referencing it in jserv.properties like this:  ApJServAction .jhtml org.apache.jservssi.JServSSI - without the zone, and it would not work.  I had to use a zone.

EndPart: 1
Part: 2
Author-Set: anonymous
Author-Set: doug.peck@@nsmg.seagatesoftware.com
HideAttributions: 1
Type: directory
Lines: 4
Subcategories:


Answers in this category:
EndPart: 2
@


1.10
log
@null
@
text
@a1 1
IDependOn-Set: 126
d6 1
a6 1
LastModifiedSecs: 927138234
d8 1
a8 1
SequenceNumber: 8
d114 1
a114 1
Lines: 6
a118 2

faqomatic:126
@


1.9
log
@null
@
text
@a2 1
IDependOn-Set: 127
d7 1
a7 1
LastModifiedSecs: 927138207
d9 1
a9 1
SequenceNumber: 7
d87 1
d115 1
a115 1
Lines: 8
a121 2

faqomatic:127
@


1.8
log
@null
@
text
@d8 1
a8 1
LastModifiedSecs: 927138184
d10 1
a10 1
SequenceNumber: 6
d87 2
a88 3
LastModifiedSecs: 927138184
Type: monospaced
Lines: 14
d91 1
d94 1
d97 1
d100 1
d103 1
d105 1
@


1.7
log
@null
@
text
@d8 1
a8 1
LastModifiedSecs: 925176410
d10 1
a10 1
SequenceNumber: 5
d85 21
d119 1
a119 1
EndPart: 1
@


1.6
log
@null
@
text
@d3 1
d8 1
a8 1
LastModifiedSecs: 925176346
d10 1
a10 1
SequenceNumber: 4
d89 1
a89 1
Lines: 6
d96 2
@


1.5
log
@null
@
text
@d2 1
d7 1
a7 1
LastModifiedSecs: 922988162
d9 1
a9 1
SequenceNumber: 3
d85 1
d88 1
a88 1
Lines: 4
d93 2
@


1.4
log
@null
@
text
@d6 1
a6 1
LastModifiedSecs: 922221651
d8 1
a8 1
SequenceNumber: 2
d82 10
@


1.3
log
@null
@
text
@d5 1
a11 1
DateOfPart: 1999-Mar-23 12:40pm
d13 1
@


1.2
log
@null
@
text
@d5 1
a5 1
LastModifiedSecs: 922221642
d7 1
a7 1
SequenceNumber: 1
d9 72
@


1.1
log
@null
@
text
@d3 1
d5 1
a5 1
LastModifiedSecs: 922221628
d7 2
a8 2
SequenceNumber: 0
Title: New Item
@
