Hi,
I am trying to get Apache Jserv running:
* SUN Sparcstation 20, Solaris 2.6, hostname alias win-www
* netscape 4.5
* Java 1.2 (=Java 2 SDK) in /usr/java1.2
* Apache_1.3.6 in /usr/local/apache136 (also PHP3 statically compiled-in)
* jserv-0.9.12 statically compiled-in (Automatic mode)
* jsdk20-solaris2-sparc installed in /usr/local/jsdk
although the README of JSDK2.0 says:
"If your are interested in developing servlets with JDK 1.2, there is
no need to use the JSDK as the servlet API is bundled with JDK1.2"
I did not find javax.servlet in /usr/java1.2/src.jar
Q1: Is this statement wrong ?
I installed JSDK2.0 and included in my CLASSPATH:
CLASSPATH=${LOCAL}/jserv/classes/servclasses.zip:${LOCAL}/jserv/classes/jserv-0.9.12.jar:${CLASSPATH}
* My /usr/local/apache136/conf/httpd.conf contains:
(modelled after the example in the INSTALL file)
ServletPort 8007
ServletAlias /servlets /usr/local/jserv/servlets
ServletAlias /jserv /usr/local/jserv/classes/jserv-0.9.12.jar
#ServletClassPath /usr/local/java/lib/classes.zip
Q2: /usr/java1.2/lib has no classes.zip file. Why ?
ServletClassPath /usr/local/jserv/classes/servclasses.zip
ServletClassPath /usr/local/jserv/classes/jserv-0.9.12.jar
ServletClassPath /usr/local/jserv/servlets
ServletBinary /usr/java1.2/bin/java
ServletProperties /usr/local/jserv/conf/servlet.properties
ServletErrorLog logs/jserv_errors.log
ServletAlias /PDservlets /symrt/win/pdon/java/servlets
Trying a test servlet via:
file:/symrt/win/pdon/java/servlets/HelloWorldServlet.class
is being executed ..
Trying http://win-www/PDservlets/HelloWorldServlet.class
tries to connect for a few minutes then gives up ("no response").
Q3: What could be wrong with my ServletAlias ?
If copying HelloWorldServlets to /usr/local/jserv/servlets, and trying
http://win-www/servlets/HelloWorldServlet.class
I get an Internal Server Error, /usr/local/apache136/logs/jserv_errors.log:
java.lang.VerifyError: org/apache/jserv/JServConnection.run()V at pc 811: stack
height conflict: 0 vs. 1
at java.lang.Thread.run(Thread.java:485)
Bus Error
si_signo [10]: Bus Error
si_errno [0]: Error 0
si_code [1]: BUS_ADRALN [addr: 0x470049]
stackpointer=EC2904E8
*** panic: JIT signal handler did not take the signal
Test for suspension on thread: 12 in process 1729 ...
[28/04/1999 15:30:08 CEST]: JServ Startup complete. Listening for connections on
port 8007
Q4: What is wrong here ??
I tried setting up servletrunner
$ /usr/local/jsdk/bin/servletrunner -p 8081 -d /symrt/win/pdon/java/servlets &
servletrunner starting with settings:
port = 8081
backlog = 50
max handlers = 100
timeout = 5000
servlet dir = /symrt/win/pdon/java/servlets
document dir = ./examples
servlet propfile = /symrt/win/pdon/java/servlets/servlet.properties
And tried in netscape: http://win-www.uia.ac.be:8081/HelloWorldServlet
but I get:
403 Forbidden, Will not serve files, only servlets
Q5: what could be wrong with this ?
In advance, many thanks for any help in getting all this working.
Pieter
------------------------------------------------------------------------
Pieter Donche, I.T. Manager E-mail: [EMAIL PROTECTED]
Dept. Math. & Computer Science Voice: +32(0)3/820.22.02
University of Antwerp (UIA), room A2.23 Fax: +32(0)3/820.24.21
Universiteitsplein 1, B 2610 Wilrijk, BELGIUM
------------------------------------------------------------------------
----------------------------------------------------------------
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]