Hi Alan,

----- Original Message -----
From: "Alan Lun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 12:16 PM
Subject: tomcat server dies easy?


> When a servlet tries to read the file that doesn't exist, the tomcat
> server is killed. I used a code from
> "http://triton.towson.edu/~schmitt/server/servlet/guestbook6.java"
>
> try {
>      BufferedReader in = new BufferedReader(new InputStreamReader(
>      new FileInputStream("/usr/faculty/schmitt/.mysql-init")));
>     } catch (Exception e) {
>        out.println("guestbook6: cannot read .mysql-init");
>        System.exit(1);
>     }
>
> Any ideas?
You have an System.exit(1) in the catch clause ...

Yours

Toyin

>
> Thanks
>
> Alan
>
> [EMAIL PROTECTED]
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to