----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

What is your repository in your servlet property file set to? Do you
utilize the default zone.properties file? If you do, the form of the URL
is /servlets/IsItWorking, not /servlet/IsItWorking. You need that 's' on
'servlets'.

Jserv has two classloaders: the system and repository. The system
classpath is set by the wrapper.classpath directive in jserv.properties.
You should only load classes that stary static through that classloader
as you can reload the classes except by restarting the server. The
repository classpath can be set to reload classes as the classes change,
forgoing the restarts. The repository classpath is in the third property
file; by default it is called zone.properties. 

You seem to also have another problem: Jserv does not seem to be binding
to port 8007. Here is the line from the logs below which denote this:

>[23/08/2000 08:34:46:151] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007
> [23/08/2000 08:34:46:151] (EMERGENCY) ajp12: connection fail
> [23/08/2000 08:34:46:151] (ERROR) an error returned handling request via protocol 
>>"ajpv12"

You also do not have your classpath set up correctly. Here is my
classpath in the jserv.properties file:

wrapper.classpath=/usr/local/apache/libexec/ApacheJServ.jar
wrapper.classpath=/usr/local/JSDK2.0/lib/jsdk.jar
wrapper.classpath=/usr/local/jdk1.2.2/jre/lib/rt.jar

Notice that the first thing the system classloader loads is itself!
Second is the JSDK2.0 path. Third is the classpath to the java JDK. They
must all be there and be there correctly.

I would suggest going over the FAQ again, paying special attention to
the info on classloaders.

Ben Ricker
US-Rx, Inc.




Jackson Ching wrote:
 
> Below is the log files in var/log/httpd. What i did is to access in browser the 
>following
> 1. http://127.0.0.1/jserv/
> 2. http://127.0.0.1/servlet/IsItWorking
> 3. http://localhost/servlet/IsItWorking
> 4. http://168.254.112.18/servlet/IsItWorking
> 
>         what could be the problem? thanks
> 
> mod_jserv.log
> 
> [23/08/2000 08:30:26:155] (ERROR) wrapper: printing debugging information (command 
>line, env)
> [23/08/2000 08:30:26:156] (ERROR) wrapper: argument[ 0] /usr/local/java//bin/java
> [23/08/2000 08:30:26:156] (ERROR) wrapper: argument[ 1] org.apache.jserv.JServ
> [23/08/2000 08:30:26:156] (ERROR) wrapper: argument[ 2] 
>/etc/httpd/conf/jserv/jserv.properties
> [23/08/2000 08:30:26:156] (ERROR) wrapper: environment[ 0] 
>PATH=/bin:/usr/bin:/usr/local/bin
> [23/08/2000 08:30:26:156] (ERROR) wrapper: environment[ 1] 
>CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
> [23/08/2000 08:31:36:225] (ERROR) wrapper: printing debugging information (command 
>line, env)
> [23/08/2000 08:31:36:226] (ERROR) wrapper: argument[ 0] /usr/local/java//bin/java
> [23/08/2000 08:31:36:226] (ERROR) wrapper: argument[ 1] org.apache.jserv.JServ
> [23/08/2000 08:31:36:226] (ERROR) wrapper: argument[ 2] 
>/etc/httpd/conf/jserv/jserv.properties
> [23/08/2000 08:31:36:226] (ERROR) wrapper: environment[ 0] 
>PATH=/bin:/usr/bin:/usr/local/bin
> [23/08/2000 08:31:36:226] (ERROR) wrapper: environment[ 1] 
>CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
> [23/08/2000 08:32:46:295] (ERROR) wrapper: printing debugging information (command 
>line, env)
> [23/08/2000 08:32:46:296] (ERROR) wrapper: argument[ 0] /usr/local/java//bin/java
> [23/08/2000 08:32:46:296] (ERROR) wrapper: argument[ 1] org.apache.jserv.JServ
> [23/08/2000 08:32:46:296] (ERROR) wrapper: argument[ 2] 
>/etc/httpd/conf/jserv/jserv.properties
> [23/08/2000 08:32:46:296] (ERROR) wrapper: environment[ 0] 
>PATH=/bin:/usr/bin:/usr/local/bin
> [23/08/2000 08:32:46:296] (ERROR) wrapper: environment[ 1] 
>CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
> [23/08/2000 08:33:56:366] (ERROR) wrapper: printing debugging information (command 
>line, env)
> [23/08/2000 08:33:56:366] (ERROR) wrapper: argument[ 0] /usr/local/java//bin/java
> [23/08/2000 08:33:56:366] (ERROR) wrapper: argument[ 1] org.apache.jserv.JServ
> [23/08/2000 08:33:56:366] (ERROR) wrapper: argument[ 2] 
>/etc/httpd/conf/jserv/jserv.properties
> [23/08/2000 08:33:56:366] (ERROR) wrapper: environment[ 0] 
>PATH=/bin:/usr/bin:/usr/local/bin
> [23/08/2000 08:33:56:366] (ERROR) wrapper: environment[ 1] 
>CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
> [23/08/2000 08:34:27:610] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007
> [23/08/2000 08:34:27:610] (EMERGENCY) ajp12: connection fail
> [23/08/2000 08:34:27:610] (ERROR) an error returned handling request via protocol 
>"ajpv12"
> [23/08/2000 08:34:38:047] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007
> [23/08/2000 08:34:38:047] (EMERGENCY) ajp12: connection fail
> [23/08/2000 08:34:38:047] (ERROR) an error returned handling request via protocol 
>"ajpv12"
> [23/08/2000 08:34:46:151] (EMERGENCY) ajp12: can not connect to host 127.0.0.1:8007
> [23/08/2000 08:34:46:151] (EMERGENCY) ajp12: connection fail
> [23/08/2000 08:34:46:151] (ERROR) an error returned handling request via protocol 
>"ajpv12"
> [23/08/2000 08:35:06:434] (ERROR) wrapper: printing debugging information (command 
>line, env)
> [23/08/2000 08:35:06:434] (ERROR) wrapper: argument[ 0] /usr/local/java//bin/java
> [23/08/2000 08:35:06:434] (ERROR) wrapper: argument[ 1] org.apache.jserv.JServ
> [23/08/2000 08:35:06:434] (ERROR) wrapper: argument[ 2] 
>/etc/httpd/conf/jserv/jserv.properties
> [23/08/2000 08:35:06:434] (ERROR) wrapper: environment[ 0] 
>PATH=/bin:/usr/bin:/usr/local/bin
> [23/08/2000 08:35:06:434] (ERROR) wrapper: environment[ 1] 
>CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
> [23/08/2000 08:39:06:675] (ERROR) wrapper: printing debugging information (command 
>line, env)
> [23/08/2000 08:39:06:676] (ERROR) wrapper: argument[ 0] /usr/local/java//bin/java
> [23/08/2000 08:39:06:676] (ERROR) wrapper: argument[ 1] org.apache.jserv.JServ
> [23/08/2000 08:39:06:676] (ERROR) wrapper: argument[ 2] 
>/etc/httpd/conf/jserv/jserv.properties
> [23/08/2000 08:39:06:676] (ERROR) wrapper: environment[ 0] 
>PATH=/bin:/usr/bin:/usr/local/bin
> [23/08/2000 08:39:06:676] (ERROR) wrapper: environment[ 1] 
>CLASSPATH=/usr/lib/apache/ApacheJServ.jar:/home/httpd/classes/servlet-2.0.jar
> 
> access_log
> 
> 127.0.0.1 - - [23/Aug/2000:08:34:08 +0800] "GET /jserv/ HTTP/1.0" 200 2357
> 127.0.0.1 - - [23/Aug/2000:08:34:09 +0800] "GET /jserv/status?image HTTP/1.0" 200 
>2227
> 127.0.0.1 - - [23/Aug/2000:08:34:27 +0800] "GET /servlet/IsItWorking HTTP/1.0" 500 
>607
> 127.0.0.1 - - [23/Aug/2000:08:34:38 +0800] "GET /servlet/IsItWorking HTTP/1.0" 500 
>607
> 168.254.112.18 - - [23/Aug/2000:08:34:46 +0800] "GET /servlet/IsItWorking HTTP/1.0" 
>500 607


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search Archives: 
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to