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

Erik,

Thanks for your help.  I've *found* a solution to the problem, and JServ is
working.  I'm posting the solution in the event that it may be useful to
others.

Problem:  NullPointerException when JServ starts.  Exception thrown by
org.apache.jserv.JServ.
OS: RedHat Linux 6.0
JDK: Blackdown's pre-v3 JDK1.2
JServ: 1.1B2 (installed with rpm)
JSDK:  Provided with JServ (2.0)
Apache: 1.3.9

Solution:  Installed the newly released JServ1.1-1.  When this was done,
instead of getting a cryptic NullPointerException alone, now the error
indicates that the permissions for various JServ configuration files are
wrong.

Corrected the permissions for the configuration files.

Comment:
The NullPointerException was not caught in the JServ code, so I am unsure as
to how the permissions error was generated.  Frankly, it seems unlikely that
the change in JServ to 1.1-1 fixed the problem. More likely I just got
lucky.  I've learned a valuable lesson:  When the network fails, 99% of the
time it's because of the physical layer (unplugged eth, etc.), when
something fails on UNIX, 9x% of the time it's 'cause some semi-newbie user
screwed up the permissions.

Thanks again,
Marc Thompson

__________________________________
Marc Thompson, Systems Administrator
Data Definitions
421 South 9th Street, Suite 153
Lincoln, NE 68506
mailto: <mailto:[EMAIL PROTECTED]>



-----Original Message-----
From: Erik Meade [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 15, 2000 10:48 AM
To: Java Apache Users
Subject: RE: NullPointerException on start of org.apache.jserv.JServ


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

Marc,

Might want to post all of your config files ( what version of the JSDK are
you using?
I'm sure it is JSDK2.0 if you had it working before, but ya just have to
check ya know? )

Erik

At 07:59 AM 1/15/00 -0600, you wrote:
>----------------------------------------------------------------
>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!!!
>----------------------------------------------------------------
>
>Erik,
>
>Thanks for responding.
>
>It does not work with the security DISABLED flag.  I'm pretty sure that
this
>is a configuration problem, as I've had JServ successfully installed once
>before.  Perhaps the NullPointerException is being thrown when
>org.apache.jserv.JServ calls java.io to open the jserv.security.key?
>
>Do you suppose that this could be a problem with my wrapper.classpath
>pointing to $JAVA_HOME/jre/lib/rt.jar?
>
>I'm using RH6.0, Apache 1.9.3, JServ beta3, and blackdown's RC3 JDK/JRE.
>
>Marc Thompson  
>
>__________________________________
>Marc Thompson, Systems Administrator
>Data Definitions
>421 South 9th Street, Suite 153
>Lincoln, NE 68506
>mailto: <mailto:[EMAIL PROTECTED]>
>
>
>
>-----Original Message-----
>From: Erik Meade [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 14, 2000 5:47 PM
>To: Java Apache Users
>Subject: Re: NullPointerException on start of org.apache.jserv.JServ
>
>
>----------------------------------------------------------------
>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!!!
>----------------------------------------------------------------
>
>Marc,
>
>Does it work with the security turned off?
>
>Erik
>
>At 03:36 PM 1/14/00 -0600, you wrote:
>>----------------------------------------------------------------
>>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 posted this before a couple of times with no response.  I have some
>>more info now, hopefully someone can help.
>>
>>
>>
>>I'm getting a null pointer exception when JServ initializes.  When run
from
>>the command-line, the error is:
>>
>>ApacheJServ/1.1b3: No secret key file defined:
>>java.lang.NullPointerException
>>
>>I believe that I have the secret key defined properly in jserv.conf, which
>>is included in httpd.conf, as well as in jserv.properties.
>>
>>Additionally, I believe that the permissions are correct
>>
>>Any ideas?
>>Marc Thompson
>>
>>__________________________________
>>Marc Thompson, Systems Administrator
>>Data Definitions
>>421 South 9th Street, Suite 153
>>Lincoln, NE 68506
>>mailto: <mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>
>>--
>>--------------------------------------------------------------
>>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]
>> 
>
>
>--
>--------------------------------------------------------------
>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]
>
>
>--
>--------------------------------------------------------------
>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]
> 


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


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