----------------------------------------------------------------
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!!!
----------------------------------------------------------------
hello,
I painstakingly scanned the users mailing list and FAQ but could
not find an answer to this question.
I am running linux redhat 7.0, with apache 1.3.14 (rpm
apache-1.3.14-2.6.2), Jserv1.1.2 (rpm ApacheJServ-1.1.2-1), and
jdk1.2 (not installed via rpm). The
http://127.0.0.1/jserv/
works. I get the following page back:
===========================================================================
[status?image]
Parameter Value
Server Name eclectic.ss.uci.edu
ApJServManual FALSE (AUTOMATIC OPERATION)
ApJServProperties /etc/httpd/conf/jserv/jserv.properties
ApJServDefaultProtocol ajpv12 (PORT 8007)
ApJServDefaultHost localhost (ADDR 127.0.0.1)
ApJServDefaultPort 8007
ApJServLogFile /var/log/httpd/mod_jserv.log (DESCRIPTOR 6)
ApJServMountCopy TRUE
ApJServShmFile undefined
MountPoint Server Protocol Host Port Zone Status
/servlets/ eclectic.ss.uci.edu ajpv12 localhost (ADDR 127.0.0.1) 8007
root
/servlet/ eclectic.ss.uci.edu ajpv12 localhost (ADDR 127.0.0.1) 8007
root
/webmail/ eclectic.ss.uci.edu ajpv12 localhost (ADDR 127.0.0.1) 8007
webmail
Extension Servlet
Back to menu Base server (eclectic.ss.uci.edu)
Copyright (c) 1997-99 The Java Apache Project.
All rights reserved.
===========================================================================
Question 1: So, if I am correct, this appears to be working,
right? Is this the JServ talking to me (from the Java side)? Or
just Apache (in c code? The docs at
http://java.apache.org/jserv/install/howto.status.html
just say:
===========================================================================
The Apache JServ Status front page is enabled by default in the
example configurations shipped in the distribution and it's
mapped to the URI named /jserv/ (note the trailing slash!) in
your main web server space (for most systems try
http://127.0.0.1:80/jserv/ but the address and the port are
highly dependent on your web server configurations).
These pages give you the ability to check existing configurations
remotely and control the correct servlet engine behavior from a
centralized information system.
===========================================================================
Question 2: Well, in any case, when I go ahead and try to load
this page:
http://127.0.0.1/servlets/IsItWorking
(a java servlet which came with Apache JServ as an example), I
get back from apache through my browser, the following message:
===========================================================================
Internal Server Error
The server encountered an internal error or misconfiguration and
was unable to complete your request.
Please contact the server administrator, root@localhost and
inform them of the time the error occurred, and anything you
might have done that may have caused the error.
More information about this error may be available in the server
error log.
Apache/1.3.14 Server at eclectic.ss.uci.edu Port 80
===========================================================================
What is causing this?
Well, in attempting to isolate out this problem, I noticed the
following messages in my /etc/httpd/conf/error_log file:
===========================================================================
Exception in thread "main" java.lang.NullPointerException
at org.apache.jserv.JServServletManager.load_init(Compiled Code)
at org.apache.jserv.JServServletManager.loadServlet(Compiled Code)
at org.apache.jserv.JServServletManager.loadStartupServlets(Compiled Code)
at org.apache.jserv.JServServletManager.init(Compiled Code)
at org.apache.jserv.JServ.start(Compiled Code)
at org.apache.jserv.JServ.main(Compiled Code)
===========================================================================
Furthermore, i went to Ari Halberstadt's page at
http://www.magiccookie.com/computers/apache-jserv/#Troubleshooting
where he'd some troubleshooting tips from a Wrox book article
he'd written. He suggested trying JServ in manual mode:
===========================================================================
"Try running Apache JServ in manual mode. By running in manual
mode you isolate the scope of a problem. If you can start the JVM
in manual mode then you know the problem is in the configuration
or setup of mod_jserv, e.g., the mod_jserv module is not loaded
or the settings in httpd.conf are incorrect. If you cannot run in
manual mode then you know that the problem is in
jserv.properties, one of the zone properties or repositories, or
in your Java setup."
===========================================================================
So when i try JServ in manual mode with my adaptation of Ari's
script:
===========================================================================
#!/bin/sh
properties=/etc/httpd/conf/jserv/jserv.properties
log=/root/test/jserv_manual.log
# CLASSPATH=$CLASSPATH:/usr/local/jsdk/lib/jsdk.jar
CLASSPATH=/usr/lib/apache/ApacheJServ.jar
java org.apache.jserv.JServ $properties $1 2>> $log
===========================================================================
I still get the same null pointer exception in the log file i've
created:
===========================================================================
Exception in thread "main" java.lang.NullPointerException
at org.apache.jserv.JServServletManager.load_init(Compiled Code)
at org.apache.jserv.JServServletManager.loadServlet(Compiled Code)
at org.apache.jserv.JServServletManager.loadStartupServlets(Compiled Code)
at org.apache.jserv.JServServletManager.init(Compiled Code)
at org.apache.jserv.JServ.start(Compiled Code)
at org.apache.jserv.JServ.main(Compiled Code)
===========================================================================
So, this would seem to indicate that, as they say, the problem is
in jserv.properties, or one of the zone properties or
repositories, or in my Java setup.
I have tested that Java on my system is working fine. I'm
including my jserv.properties and zone.properties below, with
comments removed. (my /var/log/httpd/jserv.log file shows no
errors).
Can anyone help me? This is quite frustrating.
Thank you,
Jeff Stern <[EMAIL PROTECTED]>
==jserv.properties=========================================================
wrapper.bin=/usr/lib/jdk1.2/bin/java
wrapper.classpath=/usr/lib/apache/ApacheJServ.jar
wrapper.classpath=/home/httpd/classes/servlet-2.0.jar
bindaddress=localhost
port=8007
zones=root,webmail
root.properties=/etc/httpd/conf/jserv/zone.properties
pool=false
pool.capacity=10
pool.controller=org.apache.java.recycle.DefaultController
security.selfservlet=true
security.maxConnections=50
security.authentication=true
security.secretKey=/etc/httpd/conf/jserv/jserv.secret.key
log=true
log.file=/var/log/httpd/jserv.log
log.timestamp=true
log.dateFormat=[dd/MM/yyyy HH:mm:ss:SSS zz]
log.queue.maxage = 5000
log.queue.maxsize = 1000
log.channel.servletException=true
log.channel.jservException=true
log.channel.warning=true
log.channel.servletLog=true
log.channel.critical=true
==zone.properties==========================================================
repositories=/home/httpd/servlets
autoreload.classes=true
autoreload.file=true
init.timeout=10000
destroy.timeout=10000
session.useCookies=true
session.timeout=1800000
session.checkFrequency=30000
singleThreadModelServlet.initialCapacity=5
singleThreadModelServlet.incrementCapacity=5
singleThreadModelServlet.maximumCapacity=10
===========================================================================
--
--------------------------------------------------------------
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]