Re: Form based auth does not provide the option to show error reason in the error page

2021-10-15 Thread Christopher Schultz
e included in a custom error page for example. However, the current Tomcat code for authentication is structured in such a way that exposing the reason for an authentication failure would require a reasonable amount of refactoring. I don't think an enhancement request along these lines will b

Re: Form based auth does not provide the option to show error reason in the error page

2021-10-15 Thread Werner Dähn
? > > No. > > I do think there is an argument for providing information on the reason > for the authentication failure via a mechanism that allows system > administrators to decide if they want to pass it on to the users or not. > Something like a request attribute that could be included i

Re: Form based auth does not provide the option to show error reason in the error page

2021-10-15 Thread Mark Thomas
or not. Something like a request attribute that could be included in a custom error page for example. However, the current Tomcat code for authentication is structured in such a way that exposing the reason for an authentication failure would require a reasonable amount of refactoring. I don't think

Form based auth does not provide the option to show error reason in the error page

2021-10-15 Thread Werner Dähn
I know it has been asked dozens of times but the response is always "Cannot be done in a standard way". But why can't we change Tomcat to provide further details to the error page of why the login failed? I would have thought tomcat can support that easily without any backward compatibi

Re: Custom error page

2021-09-24 Thread Mark Thomas
On 24/09/2021 11:56, Jan Pernica wrote: Hi how can I easly create error page for the whole server? Curretly if I add to conf/web.xml         500     /error/error.html             404     /error/error.html     And put into webapps/ROOT/error/error.html page it works

Custom error page

2021-09-24 Thread Jan Pernica
Hi how can I easly create error page for the whole server? Curretly if I add to conf/web.xml         500     /error/error.html             404     /error/error.html     And put into webapps/ROOT/error/error.html page it works only for ROOT context. Other contexts shows

答复: [Tomcat] Error page not work for 400 error.

2018-08-05 Thread Leonard Afeng
ed but the return was not worked. 发送自 Windows 10 版邮件应用 发件人: Mark Thomas 发送时间: 2018年8月6日 3:32 收件人: users@tomcat.apache.org 主题: Re: [Tomcat] Error page not work for 400 error. On 05/08/2018 04:13, Leonard Afeng wrote: > Dear all, > > I custom the error page in web.xml as below: >

Re: [Tomcat] Error page not work for 400 error.

2018-08-05 Thread Mark Thomas
On 05/08/2018 04:13, Leonard Afeng wrote: Dear all, I custom the error page in web.xml as below: And I added some log action in org.apache.catalina.util.ErrorPageSupport and found out that in some case the 400 error page not working but the default error page. 20:02:59.674 INFO

[Tomcat] Error page not work for 400 error.

2018-08-04 Thread Leonard Afeng
Dear all, I custom the error page in web.xml as below: 400 /error400.html 404 /error404.html java.lang.IllegalArgumentException /error404.html And I added some log action in org.apache.catalina.util.ErrorPageSupport and found out that in some case the 400 error

Re: Re: FW: HttpServletResponse.sendError - missing message in error page

2018-07-30 Thread Michael Osipov
> [...] > > “It is implied but it could be clearer.” > > [...] > > I agree that default ErrorReportValve is not something that has to be > backward compatible as the apps should have provided their own. Yet, > we were using the default as it was working very well and was covering > our needs.

Re: FW: HttpServletResponse.sendError - missing message in error page

2018-07-27 Thread Emil Alexandroff
> > -Original Message- > From: Mark Thomas > Sent: 26 юли 2018 г. 19:04 > To: Tomcat Users List > Subject: Re: HttpServletResponse.sendError - missing message in error page > > On 26/07/2018 13:46, Assia Djambazova wrote: > > Hello, >

Re: HttpServletResponse.sendError - missing message in error page

2018-07-26 Thread Mark Thomas
he spec [2] that the message should be displayed: *The server defaults to creating the response to look like an HTML-formatted server error page containing the specified message, setting the content type to "text/html"* This is not a spec compliance issue. The ErrorReportValve is an

Re: HttpServletResponse.sendError - missing message in error page

2018-07-26 Thread Michael Osipov
message should > be displayed: *The server defaults to creating the response to look like an > HTML-formatted server error page containing the specified message, setting > the content type to "text/html"* > > I use the ErrorReportValve and showReport is set to false. Rea

HttpServletResponse.sendError - missing message in error page

2018-07-26 Thread Assia Djambazova
E I think that this change is the cause [1] However, this change looks incompatible with servlet spec and breaks our integration tests. It seems to me from the spec [2] that the message should be displayed: *The server defaults to creating the response to look like an HTML-formatted server error page

RE: tomcat 6 vulnerability scan default error page help

2018-05-07 Thread Berneburg, Cris J. - US
Mark Thanks for taking the time to help. Again, I appreciate it. cjb> We are getting dinged by a vulnerability scan for the default cjb> not-found error page being returned by Tomcat for a Status 404. cjb> [...] cjb> And we're using Tomcat 6.0.37 (ahem). MT> And you are worried

RE: tomcat 6 vulnerability scan default error page help

2018-05-07 Thread Berneburg, Cris J. - US
Leon, Mark, and Alejandro Thanks for your time and suggestions. I appreciate it. cjb> We are getting dinged by a vulnerability scan for the default cjb> not-found error page being returned by Tomcat for a Status 404. cjb> [...] cjb> However, I can't find where the error-page for 40

RE: tomcat 6 vulnerability scan default error page help

2018-05-07 Thread Berneburg, Cris J. - US
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, May 2, 2018 4:01 PM To: users@tomcat.apache.org Subject: Re: tomcat 6 vulnerability scan default error page help > On 02/05/18 20:51, Leon Rosenberg wrote: > > Hi Mark, > > >

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread alejandro . vargas
in the tomcat\lib directory again. Hope this could help you, I'm using Tomcat 8.0.27 "Berneburg, Cris J. - US" <cberneb...@caci.com> escribió: We are getting dinged by a vulnerability scan for the default not-found error page being returned by Tomcat for a Status 404. On my

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Mark Thomas
. Don't get me started on PCI compliance... Oh, and Cris - take a look at the ErrorReportValve. That is where the default error page is coming from. Mark > > regards > Leon > > On Wed, May 2, 2018 at 9:42 PM, Mark Thomas <ma...@apache.org> wrote: > >> On 02/05/18

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Leon Rosenberg
;ma...@apache.org> wrote: > On 02/05/18 20:27, Berneburg, Cris J. - US wrote: > > We are getting dinged by a vulnerability scan for the default not-found > error page being returned by Tomcat for a Status 404. > > > > On my dev server when requesting an invalid URL, Tomc

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Mark Thomas
On 02/05/18 20:27, Berneburg, Cris J. - US wrote: > We are getting dinged by a vulnerability scan for the default not-found error > page being returned by Tomcat for a Status 404. > > On my dev server when requesting an invalid URL, Tomcat returns a Status 404 > page that disp

Re: tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Leon Rosenberg
Hi Cris, try to add following to your web.xml 404 /error404.html regards Leon On Wed, May 2, 2018 at 9:27 PM, Berneburg, Cris J. - US <cberneb...@caci.com > wrote: > We are getting dinged by a vulnerability scan for the default not-found > error page be

tomcat 6 vulnerability scan default error page help

2018-05-02 Thread Berneburg, Cris J. - US
We are getting dinged by a vulnerability scan for the default not-found error page being returned by Tomcat for a Status 404. On my dev server when requesting an invalid URL, Tomcat returns a Status 404 page that displays the Tomcat version. Right, I need to do something about that. However

tomcat jaas custom error message in error page

2016-05-11 Thread Shushant Arora
Hi I have a web application deployed on tomcat. I have used custom login module of JAAS for authentication and provided login and error page in web.xml. I want to access message of login exception which I threw in login module into error page - so that custom message can be displayed to user

Re: RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread l...@bsoft.com.cn
good question.lol l...@bsoft.com.cn From: Kim Ming Yap Date: 2015-05-19 06:23 To: Tomcat Users List Subject: RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve I think Tomcat should provide interfaces for different scenarios .. that's my

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Christopher Schultz
valve JAAS : form error page displayed first before response reaches back to Tomcat valve Ming Yap, On 5/18/15 4:56 PM, Kim Ming Yap wrote: Now here's comes to crucial point and question when comes to JAAS. I know the benefit of JAAS - a pluggable authentication and authorization module

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Kim Ming Yap
2015 10:34:48 -0400 From: dcker...@verizon.net To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 5/19/2015 10:26 AM, Kim Ming Yap wrote: Sorry .. you can call me Kim. Yes. I know Mark suggested

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread David kerber
at this issue, well lots of complaints on this. Just google it. Just my thoughts. Date: Tue, 19 May 2015 09:10:57 -0400 From: ch...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Mark Thomas
On 19/05/2015 15:51, David kerber wrote: On 5/19/2015 10:46 AM, Kim Ming Yap wrote: You said .. Actually, the better analogy is that there is an application that can tell you whether or not 1+1=2, and you're asking it to explain why the numbers they entered don't total up to 2 when a

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Kim Ming Yap
error page displayed first before response reaches back to Tomcat valve -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ming Yap, (Please let me know if I'm using your given name properly... you haven't identified yourself in the body of your messages, so I only have your email address

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread David kerber
quicker brute-force attacks, because you're giving them lots of help. Date: Tue, 19 May 2015 10:34:48 -0400 From: dcker...@verizon.net To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 5/19/2015 10:26

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-19 Thread Kim Ming Yap
ok. i see the light .. Thanks a zillion!  Date: Tue, 19 May 2015 15:56:47 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 19/05/2015 15:51, David kerber wrote

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Mark Thomas
. They are objects that are passed up and down the chain. If invalid credential .. request -- valve -- JAAS -- response -- valve (break point and stop here) .. yet JSP error page displayed. So this is really confusing. Take a look at the updated diagrams here: https://bz.apache.org

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
as indicated on my email (I've traced is using system.out.println) request -- valve -- JAAS -- filter -- JSP -- response -- filter -- JAAS -- valve -- browser If invalid credential .. request -- valve -- JAAS -- response -- valve (break point and stop here) .. yet JSP error page displayed. So

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Mark Thomas
Date: Mon, 18 May 2015 13:43:14 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 18/05/2015 13:31, Kim Ming Yap wrote: Thanks Mark for your suggestion. I'm still

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
this wrong all the while Think i'm seeing the light .. Date: Mon, 18 May 2015 13:43:14 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 18/05/2015 13:31, Kim Ming Yap wrote

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
You said The error page will be handled by the webapp or the ErrorReportingValve - both of whichh may get called before your Valve depending on how the Valve is configured. How do i ensure that my custom valve is called before the the ErrorReportingValve?Is there some settings i can set

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
? Date: Mon, 18 May 2015 14:54:24 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 18/05/2015 13:57, Kim Ming Yap wrote: Wow .. that really confuses me. I've

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Christopher Schultz
it. - -chris Date: Mon, 18 May 2015 14:54:24 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve On 18/05/2015 13:57, Kim Ming Yap wrote: Wow .. that really confuses me. I've studied

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
- This message propagate to error page There's no way to propagate the above error messages to the error page from JAAS login module since this module has no access to those important aforementioned objects. Hence i turn to valve (storing ThreadLocal). But as you can see, the error page gets displayed first

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Christopher Schultz
when comes to form based authentication using JAAS. 1. Valid credential - no issue2. Credential disabled due to gt 3 retry - This message propagate to the error page3. Invalid user id - This message propagate to error page4. Invalid password - This message propagate to error page You should

RE: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Kim Ming Yap
...@christopherschultz.net To: users@tomcat.apache.org Subject: Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Ming Yap, On 5/18/15 4:56 PM, Kim Ming Yap wrote: Now here's comes to crucial point

Re: Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-18 Thread Mark Thomas
to the client should the form based authentication failed. SOFTWARE:1. Apache Tomee plus 1.7.12. Java 83. Tomcat JAAS Realm OBJECTIVE:Custom error captured in JAAS login module to propagate to error page You are unlikely to get much help from Tomcat with this since propagating back custom errors

Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve‏

2015-05-17 Thread Kim Ming Yap
as an attribute in the session object.However I noticed that the error page is already displayed before i could add this cusom error (immediately after the getNext method).Due to that the ready custom error message cannot be usedSAMPLE CODES:1. web.xml login-configauth-methodFORM/auth-methodform

Tomcat valve JAAS : form error page displayed first before response reaches back to Tomcat valve

2015-05-17 Thread Kim Ming Yap
failed. SOFTWARE:1. Apache Tomee plus 1.7.12. Java 83. Tomcat JAAS Realm OBJECTIVE:Custom error captured in JAAS login module to propagate to error page BASIC UNDERSTANDING: The Tomcat JAAS layer is not integrated with the web container layer. Hence the former does not have access to request, session

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Jacob Haverkost
for a file that does not exist. Since the file doesn't exist, I actually wanted to show a proper 404 error page matching the error pages for the rest of my server. Currently, all I see is a blank page from the CGIServlet since my debug level doesn't meet the logging condition. Thanks for the help, Jake

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Konstantin Kolinko
2015-03-16 21:52 GMT+03:00 Jacob Haverkost jdh5...@gmail.com: Version: 6.0.43 OS: Win7 x64 Currently, the CGIServlet does not appear to support using the 404 error-page specified in the web.xml (ROOT). The error-pages work fine This appears to be due to the line, res.setStatus(404);, inside

CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Jacob Haverkost
Version: 6.0.43 OS: Win7 x64 Currently, the CGIServlet does not appear to support using the 404 error-page specified in the web.xml (ROOT). The error-pages work fine This appears to be due to the line, res.setStatus(404);, inside of doGet(). According to the documentation

Re: CGIServlet - Disregarding 404 error-page

2015-03-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jacob, On 3/16/15 2:52 PM, Jacob Haverkost wrote: Version: 6.0.43 OS: Win7 x64 Currently, the CGIServlet does not appear to support using the 404 error-page specified in the web.xml (ROOT). The error-pages work fine This appears to be due

Custom error page for all errors

2014-08-19 Thread Mark Haroldson
Is there a way to route all errors to a single web page? Something like: error-page error-codeall/error-code locationmyerror.jsp/location /error-page Basically I want to control the content of everything that goes out of my service. Thanks Mark

Re: Custom error page for all errors

2014-08-19 Thread Mark Thomas
On 19/08/2014 21:05, Mark Haroldson wrote: Is there a way to route all errors to a single web page? Leave out the error-code tag and you define the default error page. That will work in Tomcat 8 and I think in 7 as well. Mark Something like: error-page error-codeall

Re: Single error page for multiple web applications

2014-01-02 Thread Maarten van Hulsentop
: Hello, We are using Tomcat to host a number of web applications as a uniform solution. We trying to implement something that seems to be an odd requirement, evh it is really a use case for us. We would like to define a single [default] error page for all web applications residing

Re: Single error page for multiple web applications

2014-01-01 Thread Christopher Schultz
something that seems to be an odd requirement, evh it is really a use case for us. We would like to define a single [default] error page for all web applications residing on this Tomcat instance. After some experimentation and googling around, it seems that there is no clear-cut solution

Single error page for multiple web applications

2013-12-31 Thread Maarten van Hulsentop
Hello, We are using Tomcat to host a number of web applications as a uniform solution. We trying to implement something that seems to be an odd requirement, even though it is really a use case for us. We would like to define a single [default] error page for all web applications residing

Re: Single error page for multiple web applications

2013-12-31 Thread Serge Fonville
Hello Maarten, When I was in the same boat, I found http://stackoverflow.com/questions/13914575/how-to-build-server-level-custom-error-page-in-tomcatand http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q6 both very helpful. I found these by googling https://www.google.nl/?gws_rd=crei

Re: Single error page for multiple web applications

2013-12-31 Thread Maarten van Hulsentop
Hello Serge, Thank you for your reply. This option seems to be similar to the first thing i tried, editing conf/web.xml. As is suggested in http://stackoverflow.com/questions/13914575/how-to-build-server-level-custom-error-page-in-tomcat But contrary to what's stated in the stackoverlow message

Re: Single error page for multiple web applications

2013-12-31 Thread Leo Donahue
to define a single [default] error page for all web applications residing on this Tomcat instance. After some experimentation and googling around, it seems that there is no clear-cut solution for this. I see a few options; - Let the global conf/web.xml define error pages for all web applications

Re: Error page messages

2012-12-01 Thread André Warnier
David Kerber wrote: On 11/30/2012 5:59 PM, André Warnier wrote: Christopher Schultz wrote: ... I've even seen a site with a Perl-based (or was it PHP-based) service .. must have been PHP, not Perl, I'm sure. We Perl guys don't do things that way. As I was telling Leo off-line, we have a

Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
Are there standardized server responses that one should expect to see when dealing with java.lang, javax.servlet and javax.faces exceptions that should be displayed to the client? I don't know that I would expect to see any of these on a public website, as I am likely not to care what happens

Re: Error page messages

2012-11-30 Thread Pid
handled* by the app then it's 500 and a stacktrace if you haven't configured a custom error page. Those packages probably have a few tens of exceptions that could be thrown. I don't know that I would expect to see any of these on a public website, as I am likely not to care what happens

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
-Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, November 30, 2012 3:04 PM To: Tomcat Users List Subject: Re: Error page messages On 30/11/2012 21:00, Leo Donahue - RDSA IT wrote: Are there standardized server responses that one should expect to see when dealing

Re: Error page messages

2012-11-30 Thread Pid
On 30/11/2012 22:09, Leo Donahue - RDSA IT wrote: -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, November 30, 2012 3:04 PM To: Tomcat Users List Subject: Re: Error page messages On 30/11/2012 21:00, Leo Donahue - RDSA IT wrote: Are there standardized server

Re: Error page messages

2012-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 11/30/12 5:09 PM, Leo Donahue - RDSA IT wrote: -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, November 30, 2012 3:04 PM To: Tomcat Users List Subject: Re: Error page messages On 30/11/2012 21:00, Leo

RE: Error page messages

2012-11-30 Thread Caldarale, Charles R
From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] Subject: RE: Error page messages I don't know of any public facing websites, off hand, that show uncaught exception messages. You need to get out more - there are tons of poorly implemented websites that will splatter stack

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
-Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, November 30, 2012 3:13 PM To: Tomcat Users List Subject: Re: Error page messages On 30/11/2012 22:09, Leo Donahue - RDSA IT wrote: -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Friday, November

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Friday, November 30, 2012 3:19 PM To: Tomcat Users List Subject: Re: Error page messages -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 11/30/12 5:09 PM, Leo Donahue - RDSA IT wrote

RE: Error page messages

2012-11-30 Thread Leo Donahue - RDSA IT
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Friday, November 30, 2012 3:28 PM To: Tomcat Users List Subject: RE: Error page messages From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] Subject: RE: Error page messages I don't

Re: Error page messages

2012-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 11/30/12 5:28 PM, Caldarale, Charles R wrote: From: Leo Donahue - RDSA IT [mailto:leodona...@mail.maricopa.gov] Subject: RE: Error page messages I don't know of any public facing websites, off hand, that show uncaught exception

Re: Error page messages

2012-11-30 Thread André Warnier
Christopher Schultz wrote: ... I've even seen a site with a Perl-based (or was it PHP-based) service .. must have been PHP, not Perl, I'm sure. We Perl guys don't do things that way. As I was telling Leo off-line, we have a nice global switch called fatals_to_browser, which you can just

Re: Error page messages

2012-11-30 Thread David Kerber
On 11/30/2012 5:59 PM, André Warnier wrote: Christopher Schultz wrote: ... I've even seen a site with a Perl-based (or was it PHP-based) service .. must have been PHP, not Perl, I'm sure. We Perl guys don't do things that way. As I was telling Leo off-line, we have a nice global switch

Re: NPE during custom error page handling in Tomcat 7.0.32

2012-10-11 Thread Sean Owen
at 8:06 PM, Sean Owen sro...@apache.org wrote: Hello all, I'm looking for any ideas on the following issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 On Tomcat 7.0.32, using embedded Tomcat, I'm seeing a NullPointerException when using a custom error page. The page itself

NPE during custom error page handling in Tomcat 7.0.32

2012-10-10 Thread Sean Owen
Hello all, I'm looking for any ideas on the following issue: https://issues.apache.org/bugzilla/show_bug.cgi?id=53958 On Tomcat 7.0.32, using embedded Tomcat, I'm seeing a NullPointerException when using a custom error page. The page itself is fine and loads if accessed directly. Triggering

Re: empty error page when using sendError()

2012-08-13 Thread Vladimir Mokrozub
On Sat, 11 Aug 2012 09:07:11 +0100 Mark Thomas ma...@apache.org wrote: You are already in an error page so sendError will not trigger the error page matching process again. If it did there is a strong possibility that you could end up in an infinite loop. Mark This makes sense, thanks

Re: empty error page when using sendError()

2012-08-11 Thread Vladimir Mokrozub
On Fri, 10 Aug 2012 10:50:17 -0400 Christopher Schultz ch...@christopherschultz.net wrote: When I try to send error page directly from ErrorHandler using HttpServletResponse, it works fine and page is displayed, so it seems the problem is with sendError() method. Is this an expected

Re: empty error page when using sendError()

2012-08-11 Thread Mark Thomas
On 11/08/2012 08:17, Vladimir Mokrozub wrote: On Fri, 10 Aug 2012 10:50:17 -0400 Christopher Schultz ch...@christopherschultz.net wrote: When I try to send error page directly from ErrorHandler using HttpServletResponse, it works fine and page is displayed, so it seems the problem

empty error page when using sendError()

2012-08-10 Thread Vladimir Mokrozub
Hello, I have a problem (tried Tomcat 7.0.29 and Glassfish 3.1) with displaying an error page when exception is thrown and processed by another servlet. Here is what I've added to web.xml: - error-page exception-typejava.lang.Throwable/exception-type location

Re: empty error page when using sendError()

2012-08-10 Thread Christopher Schultz
response) throws ServletException, IOException { doGet(request, response); } } - When I type http://server-name/TestServlet in the address bar, I get an empty page instead of default Tomcat error page, though the status code in the header is correct: HTTP/1.1 500 Internal Server

Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
) and redirect to an customized error page. Works! Now I activated form based authentication via securiy constraint in web.xml. If I try to open the web application with my browser by sending the first request, the response is empty (status 200 OK). Is there any way to map a static customized

Re: Manager activeSessions and customized error page

2012-05-14 Thread Konstantin Kolinko
around httpServletRequest.getSession(true) and redirect to an customized error page. Works! Now I activated form based authentication via securiy constraint in web.xml. If I try to open the web application with my browser by sending the first request, the response is empty (status 200 OK

AW: Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von:Konstantin Kolinko knst.koli...@gmail.com Gesendet: Mo 14.05.2012 15:00 Betreff:Re: Manager activeSessions and customized error page An: Tomcat Users List users@tomcat.apache.org; 2012/5/14 Thomas Rohde t...@ordix.de: Hi! I

Re: AW: Manager activeSessions and customized error page

2012-05-14 Thread Christopher Schultz
of RuntimeException couldn't be used in this case: something that could then be mapped in web.xml using error-page. Since it would technically be a change to the API to throw something other than IllegalStateException, you might get some push-back on a solution like this. Please file a bug

Re: AW: Manager activeSessions and customized error page

2012-05-14 Thread Mark Thomas
IllegalStateException but there's no particular reason a different subclass of RuntimeException couldn't be used in this case: something that could then be mapped in web.xml using error-page. Since it would technically be a change to the API to throw something other than IllegalStateException, you might get

AW: Manager activeSessions and customized error page

2012-05-14 Thread Thomas Rohde
-Ursprüngliche Nachricht- Von:Mark Thomas ma...@apache.org Gesendet: Mo 14.05.2012 18:25 Betreff:Re: AW: Manager activeSessions and customized error page An: Tomcat Users List users@tomcat.apache.org; -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 14/05/2012

Re: Servlet Mapping w/ Error Page

2012-01-11 Thread George Sexton
On 12/31/11 2:04 PM, Konstantin Kolinko wrote: 2011/12/31 George Sextongeor...@mhsoftware.com: I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping: error-page error-code403/error-code

Re: Servlet Mapping w/ Error Page

2012-01-02 Thread Terence M. Bandoian
: error-page error-code403/error-code location/403.html/location /error-page in my code I have if (someCondition) { res.sendError(HttpServletResponse.SC_FORBIDDEN); return; } When this code is hit, my custom page is not displayed. I get a blank page. No error is thrown by tomcat. If I

Servlet Mapping w/ Error Page

2011-12-31 Thread George Sexton
I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping: error-page error-code403/error-code location/403.html/location /error-page in my code I have if (someCondition) { res.sendError

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread Konstantin Kolinko
2011/12/31 George Sexton geor...@mhsoftware.com: I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping: error-page error-code403/error-code location/403.html/location /error-page

Re: Servlet Mapping w/ Error Page

2011-12-31 Thread George Sexton
On 12/31/11 2:04 PM, Konstantin Kolinko wrote: 2011/12/31 George Sextongeor...@mhsoftware.com: I have a servlet mapping for a page named /403.html I can invoke that URL and get a page as expected. In my deployment descriptor, I have an error mapping: error-page error-code403/error-code

No error-page for IllegalStateException(Too many active sessions) Instead: Empty page HTTP code 200 (OK)

2011-07-22 Thread Selaron
Hello, in somecases, Tomcat dosn't allow output of an error page for too many active sessions. Reproduction: 1) Configure Tomcat 6 or 7 example application to allow maxActiveSessions=1 only (e.g. adding /examples/META-INF/context.xml#SimpeSessionManager...) 2) Visit http://localhost:8080

Re: error-page for http 500 error code does not work

2011-06-07 Thread Kevin Claver
Chris,  Through further investigation, I now believe the JSF framework I'm using is absorbing the error, and the framework's error page is what is throwing the 500 error.  I wonder if the 500 error thrown by the framework's error page should fall through to the custom error page servlet I've

Re: error-page for http 500 error code does not work

2011-06-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, On 6/7/2011 8:56 AM, Kevin Claver wrote: Through further investigation, I now believe the JSF framework I'm using is absorbing the error, and the framework's error page is what is throwing the 500 error. I wonder if the 500 error thrown

Re: error-page for http 500 error code does not work

2011-06-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kevin, On 6/3/2011 9:43 AM, Kevin Claver wrote: When the custom error servlet fails to display, I get the stock tomcat http 500 error page. If I look at the access log, I see the 500 error: 192.168.xxx.xxx - - [02/Jun/2011:13:53:14 -0600

Re: error-page for http 500 error code does not work

2011-06-03 Thread Pid
On 02/06/2011 21:45, Kevin Claver wrote: Two things I would like to note: 1. When I invoke the Java HMAExceptionHandlerServlet configured to be used in the error-page block in the application specific web.xml directly from the URL in the browser, it works. 2. Tomcat 5.5.33 does

Re: error-page for http 500 error code does not work

2011-06-03 Thread Kevin Claver
Thanks for the quick reply! I zipped the tomcat install and deployed it to my Win 7 machine where it works without issue. When the custom error servlet fails to display, I get the stock tomcat http 500 error page. If I look at the access log, I see the 500 error: 192.168.xxx.xxx - - [02/Jun

RE: error-page for http 500 error code does not work

2011-06-03 Thread Caldarale, Charles R
From: Kevin Claver [mailto:kcla...@yahoo.com] Subject: Re: error-page for http 500 error code does not work I zipped the tomcat install and deployed it to my Win 7 machine where it works without issue. I'll hazard a guess that you have a case sensitivity issue. Something in your

Re: error-page for http 500 error code does not work

2011-06-03 Thread Kevin Claver
users@tomcat.apache.org Sent: Friday, June 3, 2011 7:47 AM Subject: RE: error-page for http 500 error code does not work From: Kevin Claver [mailto:kcla...@yahoo.com] Subject: Re: error-page for http 500 error code does not work I zipped the tomcat install and deployed it to my Win 7 machine

error-page for http 500 error code does not work

2011-06-02 Thread Kevin Claver
a solution. My Tomcat version: Apache Tomcat 5.5.33 (I've also tried 5.5.27 and 6.0.32) running on: Fedora 2.6.27.5-117.fc10.x86_64 Two things I would like to note: 1.  When I invoke the Java HMAExceptionHandlerServlet configured to be used in the error-page block in the application specific

Re: Overriding error page displayed when a context fails to initialize

2011-05-26 Thread Sai Pullabhotla
Thanks every one for your useful tips and suggestions. I was able to override the container's default error page using a custom error valve. For any one else that may have a need to do this... The key is to configure your Host element in the config to override the error report valve. This took

Re: Overriding error page displayed when a context fails to initialize

2011-05-25 Thread Sai Pullabhotla
. The log indicates that context1 failed to startup with the following error. SEVERE: Context [/context1] startup failed due to previous errors When I try an URL that starts with /context1, I still get Tomcat's default error page with a status code of 404, not the custom error pages I've in ROOT

Re: Overriding error page displayed when a context fails to initialize

2011-05-25 Thread Pid
error page with a status code of 404, not the custom error pages I've in ROOT or the context1. If course, it will never be able to load the custom error pages from context1, it does not fall back to ROOT either. All other URLs (that do not start with /context1) display the custom error pages from

  1   2   3   4   >