----------------------------------------------------------------
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!!!
----------------------------------------------------------------

I've been having problems with jserv just hanging. After 24-36 hours it
would just stop responding. There weren't any errors in the logs that seemed
to explain the behavior. We were running JDK1.1.7 on Solaris 2.6 and Apache
1.3.4 with JServ 1.0. I updgraded to JDK1.2, but that didn't make a
difference. I upgraded to JServ 1.1b3 and it made things worse. Now jserv
was hanging two and three times a day.

The only thing in the logs that was suspicious was 

java.lang.NoSuchMethodError: com.viewpoint.publicWeb.UserManager: 
       method
getUser(Ljava/lang/String;)Lcom/viewpoint/publicWeb/ViewpointUser; not found
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:320)
        at org.apache.jserv.JServConnection.run(JServConnection.java:188)
        at java.lang.Thread.run(Thread.java:484)

I had no idea where this was coming from. I scoured my code looking a such a
call and could not find one. It shouldn't compile anyway if there was such a
call being made. Since most of the class files where in a jar file now, I
wondered if there wasn't some old version of the code in the
class/repository paths that the Jserv engine was finding. I did find a
directory with a bunch of old classes in it and got rid of it. Now jserv
won't start at all. This is what I get in the log file:

Exception in thread "main" java.lang.NullPointerException
        at
org.apache.jserv.JServServletManager.load_init(JServServletManager.java:526)
        at
org.apache.jserv.JServServletManager.loadServlet(JServServletManager.java:48
8)
        at
org.apache.jserv.JServServletManager.loadStartupServlets(JServServletManager
.java:603)
        at
org.apache.jserv.JServServletManager.init(JServServletManager.java:387)
        at org.apache.jserv.JServ.start(JServ.java:381)
        at org.apache.jserv.JServ.main(JServ.java:158)

And then a bunch of these:

[14/01/2000 12:58:01:627] (EMERGENCY) ajp12: can not connect to host
127.0.0.1:8007
[14/01/2000 12:58:01:628] (EMERGENCY) ajp12: connection fail

I looked in the FAQ for the "connection fail" error. Jon talks about the JVM
not starting, but that does not seem to be the case since I am getting an
exception error. Also a init servlet I has seems to execute fine. It outputs
a few brief messages to the error log when it starts up. These messages are
there, right before the above exception error. It also talks about
permissions on the log file (which I set to 666 just to see, even though
something was obviously being written to the file ). One guy suggested
adding rt.jar to the wrapper.classpath for JDK1.2 which I did. Still no
luck. I have Jserv set to manal start and use the following script:

#!/bin/sh
# Launch jserv in manual mode.

set JAVA_COMPILER=none
export JAVA_COMPILER
ulimit -n 512

jsdk=/web/java/lib/jsdk.jar
jserv=/web/java/lib/Apache-JServ.jar
jdbc=/web/java/lib/mysql.jar
oracle=/web/java/lib/classes111.zip
props=/web/apache/conf/jserv.properties
log=/logs/jserv.log
classes=$jsdk:$jserv:$jdbc:$oracle
/usr/java/bin/java -classpath $classes org.apache.jserv.JServ $props >> $log
2>&1 &

I don't understand why removing a package directory from the repository that
is not used and only contained copies of classes that didn't even belong
there would kill jserv. I'm at a loss as to what to try next. 

On a side note, yesterday I turned on all of the logging options for jserv
to see if there would be any clues as to what was causing jserv to hang. The
logs are pretty much empty. Shouldn't they be overflowing with output??

______________________________________________________________
Sean Hammon                     Success is 10% inspiration and
Webmaster                             90% last minute changes.
Viewpoint Digital 


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to