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


My recollection is that some messages may end up in the Apache error-log,
and not in the jserv.log.  Try looking there.

Another thing to try is to run JServ through a debugger, set breakpoints
on your destroy() and see if they get hit.  The basic approach for doing
this is to configure JServ for manual mode, then set the debug class for
your servlet project as org.apache.jserv.Jserv.  I've done this in both
Cafe and J++.

- Fernando


> Hello again.
>
> I just localized the problem (hopefully):
> With the debug and info options turned on, my log-file tells me that JServ
> destroyed my servlet in this way:
>
> [29/06/2000 15:10:00:530 GMT+02:00] Destroying servlet myServlet
> [29/06/2000 15:10:00:530 GMT+02:00] myServlet/com.yousmile.myServlet:
> destroy
>
> When Apache fails to call my destroy() method, the 2nd line in my log file
> is missing, i.e.:
>
> [29/06/2000 15:10:26:227 GMT+02:00] Destroying servlet myServlet
>
> I have looked into the sources of
> org.apache.jserv.JServServletManager which
> seems to be responsible for the destroying. Following code popped into my
> eye:
>
>  try {
>      if (JServ.log.active) {
>          JServ.log.log(CH_INFO,
>              "Destroying servlet " + servletName);
>      }
>      context.servlet.destroy();
>  } catch(Exception e) {
>      JServ.log.log( null, e );
>  } catch(Error e) {
>      JServ.log.log( null, e );
>      throw e; // too bad to continue
>  } finally {
>      context.lock.writeUnlock();
>  }
>
> What happens with these unexpected errors/exceptions concerning logging
> (JServ.log.log( null, e );) ? Where do I see them ?
>
> Does anyone have a clue what's going on?
>
> I would really appreciate any help. Thanks!
>
>                         Michael Krkoska
>
>
>
>
> --
> --------------------------------------------------------------
> 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