Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-24 Thread Ludwig Magnusson

That was it. Thanks =)

-- 
From: Konstantin Kolinko 
Sent: Tuesday, April 24, 2012 7:08 PM 
To: Tomcat Users List 
Subject: Re: Tomcat 6.0.35 filters not invoked for error-pages 


2012/4/24 Ludwig Magnusson :

Thanks for your reply.

First of all: I have solved the acutal problem caused by this in a more
stable way.

But out of curiosity I tried your solution and it does not work either.
this is my setup:


  myservlet
  mypackage.MyServlet



  myservlet
  /*



  myfilter
  myservlet
  REQUEST
  FORWARD


ERROR
Since Servlet 2.4.






Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-24 Thread Konstantin Kolinko
2012/4/24 Ludwig Magnusson :
> Thanks for your reply.
>
> First of all: I have solved the acutal problem caused by this in a more
> stable way.
>
> But out of curiosity I tried your solution and it does not work either.
> this is my setup:
>
> 
>   myservlet
>   mypackage.MyServlet
> 
>
> 
>   myservlet
>   /*
> 
>
> 
>   myfilter
>   myservlet
>   REQUEST
>   FORWARD

ERROR
Since Servlet 2.4.

> 
>

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-24 Thread Ludwig Magnusson

Thanks for your reply.

First of all: I have solved the acutal problem caused by this in a more 
stable way.


But out of curiosity I tried your solution and it does not work either.
this is my setup:


   myservlet
   mypackage.MyServlet



   myservlet
   /*



   myfilter
   myservlet
   REQUEST
   FORWARD


/Ludwig

-Ursprungligt meddelande- 
From: Christopher Schultz

Sent: Monday, April 23, 2012 4:05 PM
To: Tomcat Users List
Subject: Re: Tomcat 6.0.35 filters not invoked for error-pages

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ludwig,

On 4/22/12 2:26 PM, Ludwig Magnusson wrote:

Hello. I found some strange behavour in tomcat 6.0.35 when
declaring error-pages in my web.xml. When tomcat picks up an error
and redirects it to the location given by the  element in
, the filters that would have been invoked for that
location are actually not invoked.

I found an almost identical report in the bug database:
https://issues.apache.org/bugzilla/show_bug.cgi?id=49098 (the user
had the same problem when using query strings in ).
However, I do not use query strings in my locations and I still get
the error.

Is this a bug and is it known?


What does your web.xml look like?

The error page is probably treated as a FORWARD, and you'll have to
configure your filters to fire on FORWARD as well as REQUEST (the
default).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+VYaMACgkQ9CaO5/Lv0PD4cwCff6+JoDHqehqsEtTMU471Np1+
MicAoKYezgJgAQ+0EWP71UkDFRb41nBf
=/UDF
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 6.0.35 filters not invoked for error-pages

2012-04-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ludwig,

On 4/22/12 2:26 PM, Ludwig Magnusson wrote:
> Hello. I found some strange behavour in tomcat 6.0.35 when
> declaring error-pages in my web.xml. When tomcat picks up an error
> and redirects it to the location given by the  element in
> , the filters that would have been invoked for that
> location are actually not invoked.
> 
> I found an almost identical report in the bug database:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=49098 (the user
> had the same problem when using query strings in ). 
> However, I do not use query strings in my locations and I still get
> the error.
> 
> Is this a bug and is it known?

What does your web.xml look like?

The error page is probably treated as a FORWARD, and you'll have to
configure your filters to fire on FORWARD as well as REQUEST (the
default).

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+VYaMACgkQ9CaO5/Lv0PD4cwCff6+JoDHqehqsEtTMU471Np1+
MicAoKYezgJgAQ+0EWP71UkDFRb41nBf
=/UDF
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Tomcat 6.0.35 filters not invoked for error-pages

2012-04-22 Thread Ludwig Magnusson
Hello.
I found some strange behavour in tomcat 6.0.35 when declaring error-pages in my 
web.xml. When tomcat picks up an error and redirects it to the location given 
by the  element in , the filters that would have been 
invoked for that location are actually not invoked.

I found an almost identical report in the bug database: 
https://issues.apache.org/bugzilla/show_bug.cgi?id=49098 (the user had the same 
problem when using query strings in ).
However, I do not use query strings in my locations and I still get the error.

Is this a bug and is it known?
/Ludwig