I've been trying to setup jservssi but not successful.
I first download the Apache_JServSSI_1.0.tar.gz and do a:
gunzip -c Apache_JServSSI_1.0.tar.gz | tar -xvf -
By following the README, I do :
javac -d . *.java
And it compliant :
JServSSI.java:62: Package org.apache.java.util not found in import.
import org.apache.java.util.*;
It will compile ok if I rerun: javac -d . *.java
I notice that it created the directory org/apache/... after the first
run.
So I went on with: jar cf0 ApacheJServSSI.jar .
and I obtain ApacheJServSSI.jar file.
Here are my configuration files:
httpd:
LoadModule jserv_module libexec/mod_jserv.so
ApJServManual off
ApJServProperties /usr/local/apache/conf/jserv.properties
ApJServLogFile /usr/local/apache/logs/mod_jserv.log
ApJServDefaultProtocol ajpv11
ApJServDefaultHost localhost
ApJServDefaultPort 8007
ApJServSecretKey DISABLED
ApJServMount /example /example
ApJServMountCopy on
ApJservAction .jhtml /example/jservssi
jserv.properties:
wrapper.bin=/usr/local/jdk1.1.7/bin/java
wrapper.class=org.apache.jserv.JServ
wrapper.classpath=/usr/local/jdk1.1.7/lib/classes.zip
wrapper.classpath=/usr/home/jhsieh/jserv/ApacheJServ-1.0b4/src/java/ApacheJServ.jar
wrapper.classpath=/usr/local/jsdk/jsdk.jar
port=8007
zones=example
example.properties=/usr/home/jhsieh/jserv/ApacheJServ-1.0b4/example/example.properties
security.selfservlet=true
security.maxConnections=50
security.allowedAddresses=127.0.0.1
security.authentication=false
security.challengeSize=5
log=true
example.properties:
repositories=/usr/home/jhsieh/jserv/ApacheJServ-1.0b4/example
repositories=/usr/home/jhsieh/jservssi/Apache-JServ-SSI-19981216/src/ApacheJServSSI.jar
servlet.jservssi.code=org.apache.jservssi.JServSSI
I can access http://localhost/example/Hello
and get the Hello servlet to work.
But if I try to access http://localhost/example/example1.jhtml
It complaints:
Java Server Side Include Error
Requested URI /example/example.jhtml is not a file. Please, make sure
you request a
java server side include file.
So I went on to the root directory and created /example directory and
copyed example.jhtml & the helloagain.class files in there.
THen I try to access http://localhost/example/example1.jhtml again.
This time my browser sees the example.jhtml but whatever in <SERVLET>
</SERVLET> is not called. ie the example.jhtml was not parsed by the
jservssi.
How can I config the jservssi to look at
/usr/home/jhsieh/jserv/ApacheJServ-1.0b4/example directory for jhtml
files? And why does the jservssi look at the path /example/ for files?
Thanks alot!!
----------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
READ THE FAQ!!!! <http://java.apache.org/faq/>
Archives and Other: <http://java.apache.org/main/mail.html/>
Problems?: [EMAIL PROTECTED]