Tomcat memory issues

2007-09-05 Thread Morten
Hi We have implemented a picture/pdf server in Tomcat. The pictures are cached in a map. When the memory is nearly full, some entries are removed from map. However, eventually the entries in the map become fewer and fewer even though the memory consumption stays high. In other words more and more

Re: Setting SC_INTERNAL_SERVER_ERROR in http servlet response

2007-09-05 Thread Len Popp
When a web server returns an error status, it's supposed to include an HTML page with an error message. The one you're seeing is Tomcat's default error page. You can customize the error page by putting an declaration in your application's web.xml file. -- Len On 9/6/07, ying lcs <[EMAIL PROTECTE

Re: Programmic login to tomcat using username and password

2007-09-05 Thread zhu quanxin
Hi, Dave I am looking for tomcat API for doing programmic login. I read the source code of org.apache.catalina.authenticator.SingleSignOn, and find that it contains a method called reauthenticate maybe helpful. protected boolean reauthenticate(String ssoId, Realm realm,

Setting SC_INTERNAL_SERVER_ERROR in http servlet response

2007-09-05 Thread ying lcs
Hi, In my servlet, I set the response code to 500, like this: response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); Why tomcat attached this in my http response? And how can I disable it? Thank you. Apache Tomcat/4.1.36 - Error report