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


Well after causing so many Apache segmentation faults, 
Internal Server Errors and NullPointerExceptions
my head was starting to hurt I finally figured out what the problem was.

The FileNotFoundException was caused because part of my code was not
closing the input streams that were used to read in the files.  And so
at some point the file descriptors must have run out for the shell that 
the JVM was running in and so at that point it throws a
 FileNotFoundException and things go down hill from there....
 
Sorry to waste the bandwidth but it was very confusing since the same
code was working on a JavaWebServer but not on apache....

thanks

dave z

> 
> David-
> 
> If you synchronize your init methods it will ensure that they complete
> before any other methods in that class are called.  However, there is no
> reason why this should be happening and, if it is, why this would cause
> some files to load and others not to.  Can you post your code so we can
> see exactly what you are trying to do?
> 
> - MG
> 
> David Zaleta wrote:
> > 
> > 
> > > From: "Stou Sandalski" <[EMAIL PROTECTED]>
> > >
> > >
> > > ----- Original Message -----
> > > From: David Zaleta <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, November 09, 1999 4:05 PM
> > > Subject: Quirky problem with servlets....
> > >
> > > > java.io.FileNotFoundException:
> > > > /path/to/apache/init/servlet/pages/activeJobSiteList.html
> > >
> > > Did you omit the path to this file on purpose or do you actualy have a
> > > directory structure that says "/path/to/apache/" ?  I've seen in a lot of
> > > sample config files it gives such paths... maybe you forgot to change it 
in
> > > one of them or something?
> > >
> > 
> > I did change the path name, the path name that is thrown with the
> > FileNotFoundException was correct AND the permissions were set correctly!
> > 
> > > >         at java.lang.Throwable.<init>(Compiled Code)
> > > >         at java.lang.Exception.<init>(Compiled Code)
> > > >         at java.io.IOException.<init>(Compiled Code)
> > > >         at java.io.FileNotFoundException.<init>(Compiled Code)
> > > >         at java.io.FileInputStream.<init>(Compiled Code)
> > > >         at java.io.FileReader.<init>(Compiled Code)
> > > >         at
> > > com.reticular.metaSearch.jobsearch.servlet.ServletUtil.readHTMLPage(C
> > > > ompiled Code)
> > > >         at
> > > com.reticular.metaSearch.jobsearch.servlet.JobSearchServlet.init(Comp
> > > > iled Code)
> > > >         at org.apache.jserv.JServServletManager.load_init(Compiled Code)
> > > >         at org.apache.jserv.JServServletManager.loadServlet(Compiled 
Code)
> > > >         at org.apache.jserv.JServConnection.processRequest(Compiled 
Code)
> > > >         at org.apache.jserv.JServConnection.run(Compiled Code)
> > > >         at java.lang.Thread.run(Compiled Code)
> > > >
> > > <snip>
> > >
> > > Check all the paths and such in the jserv configuration files and make 
sure
> > > everything is correctly set...
> > >
> > 
> > The paths are right, I have triple checked everything.  It really seems
> > as if the server is responding to requests BEFORE the init methods of
> > the various servlets have finished.
> > 
> > I understand that this doesn't really explain a FileNotFoundException,
> > I can't explain it....But I do know that according to the log file
> > requests are getting handled before the init methods are finished.
> > 
> > Do you know of anyway of ensuring that the server does not make any
> > requests of the servlets until the init methods are finished?
> > 
> > later
> > 
> > dave z
> > 
> > --
> > --------------------------------------------------------------
> > 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