----------------------------------------------------------------
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!!!
----------------------------------------------------------------
Bernie,
This sounded familar so I went back and had a look in my work diary, I found
what appears to be your problem as well - or at least related. Now I
kind of feel a bit ashamed here because at the time I posted (in much the
same way you did) I got two responses, both from the same person and a tad
bit rude. I should have ignored the tone of the responses and just posted
the hack but didn't because I was a little annoyed with the lad at the time.
After a while I simply forgot about it. Anyway, see if the following applies.
Cheers
30-May-2000
Spent some time puzzling thru something in JServ 1.1.1. It was not logging
exceptions that were
thrown by servlets listed in the "zone" properties file
(development.properties, in this case) as "startup".
Downloaded the source, changed JServ.TURBO from false to true so that I could
get better tracing data looked things over a bit as it executed. Note, this
could predate 1.1.1 - didn't feel like looking
though.....so smack me.
Found an appropriate place to put a quick hack (JServServletManager - >
loadStartupServlets) as folllows:
Original
========
private void loadStartupServlets(JServSendError se) {
if (startups == null) {
return;
}
for(int i = 0; i < startups.length; i++) {
String servname = startups[i];
if (servname == null) {
continue;
}
try {
loadServlet(servname, se);
} catch (ServletException initError) {
se.sendError(initError); <---- this guy was
doing nothing
}
}
}
Hack
========
private void loadStartupServlets(JServSendError se) {
if (startups == null) {
return;
}
for(int i = 0; i < startups.length; i++) {
String servname = startups[i];
if (servname == null) {
continue;
}
try {
loadServlet(servname, se);
} catch (ServletException initError) {
JServ.log.log(CH_SERVLET_EXCEPTION, "(loadStartupServlets)
initialization failed for servlet: '"
+ servname + "'; initError.getMessage()=" +
initError.getMessage());
se.sendError(initError); // leave him in for now...
}
}
}
Bernie 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!!!
> ----------------------------------------------------------------
>
> Hi,
> This is a bug report. I searched the database and did not find a
> duplicate of the bug.
> (I tried at http://java.apache.org/jserv/sendbug.html to submit it but
> there is no way to submit this page)
>
> UnavailableException or ServletException thrown inside init() is not
> recorded in any log files.
> ....
>
--
--------------------------------------------------------------
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]