Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )

2014-01-14 Thread kalasareddy lingaraja
yes i did it, but thing is that after parsing request in filter: if it is success then i should redirect the request to web service which running in embedded tomcat instance, could you help me how to shift control to web service from filter On Tue, Jan 14, 2014 at 11:10 PM, André Warnier wrote:

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread Asok Chattopadhyay
Thanks Andre, Whenever, the CRLFs are stripped, I find an extra line of script in the page when I View source. The line was not in the original file test.html. Here is the extra line inserted: http://wac.edgecastcdn.net/800952/400b1e1c-5766-45fe-a132-1e98616c551e-api/gsrs?g=dae3ecf9-dab8-409b-9

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread André Warnier
Asok Chattopadhyay wrote: It looks like, the problem may be caused due to some scripts being inserted into the page by an external domain. I am investigating farther on that line. Thanks everybody. Thank you anyway for writing this. It allows us (and anyone else consulting the email archives

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread Asok Chattopadhyay
It looks like, the problem may be caused due to some scripts being inserted into the page by an external domain. I am investigating farther on that line. Thanks everybody. On Tue, Jan 14, 2014 at 11:02 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAG

Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )

2014-01-14 Thread André Warnier
kalasareddy lingaraja wrote: Hi i have task to validate or parse following http header Accept Accept-Charset Accept-Encoding Accept-Language Accept-Datetime Content-Length Content-MD5 Content-Type lets take Accept-Language as an example , if header language comes other than en-us i should rej

Re: How to validate or parse HTTP request headers ( tomcat version 6.0.18 )

2014-01-14 Thread JB MORLA
Have tout triés Witherspoon filters? Le 14 janv. 2014 17:39, "kalasareddy lingaraja" a écrit : > Hi > > i have task to validate or parse following http header > > Accept > Accept-Charset > Accept-Encoding > Accept-Language > Accept-Datetime > Content-Length > Content-MD5 > Content-Type > > lets t

How to validate or parse HTTP request headers ( tomcat version 6.0.18 )

2014-01-14 Thread kalasareddy lingaraja
Hi i have task to validate or parse following http header Accept Accept-Charset Accept-Encoding Accept-Language Accept-Datetime Content-Length Content-MD5 Content-Type lets take Accept-Language as an example , if header language comes other than en-us i should reject the request with customized

Re: PropertyNotFoundException does not work with custom error in web.xml

2014-01-14 Thread Tomcat Random
Sorry for the late reply, it works, just a dumb mistake on my part. I wasn't handling GETs in my custom error servlet. Thanks again, Alec On Thu, Jan 9, 2014 at 5:11 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > >

New connections in a pool

2014-01-14 Thread Tomcat Random
In an earlier thread I asked about losing pooled connections after a certain amount of time.

Re: Oracle Application Server 10g R3 works fine with RK-1048 codepage but Tomcat 7.0.47 does not.

2014-01-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Тимур, On 1/14/14, 2:44 AM, Тимур Кулибаев wrote: > The "user.language" and "user.country" system properties for my > running Tomcat instance are not set. They must be set to something. If you are not explicitly-setting them, then they are defaulti

RE: META-INF/Context.xml path question

2014-01-14 Thread Bob DeRemer
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Monday, January 13, 2014 3:16 PM > To: Tomcat Users List > Subject: Re: META-INF/Context.xml path question > > On 13/01/2014 17:38, Bob DeRemer wrote: > > We're trying to determine if it's possible to build a WAR

Re: tomcat gracefull shutdown problem

2014-01-14 Thread Ja kub
Thx for reply, Do You think it would be hard to implement it in Tomcat ? It seems to be quite a useful feature. Regards Jakub On Tue, Jan 14, 2014 at 3:26 PM, Daniel Mikusa wrote: > On Jan 13, 2014, at 7:48 PM, Ja kub wrote: > > > I modified conf/context.xml > > I hoped tomcat would wait 60

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/13/14, 9:36 AM, André Warnier wrote: > Asok Chattopadhyay wrote: >> Hi, >> >> My servlet generates a page containing embedded JavaScript and >> sometimes the page received in the browser comes with CRLFs >> stripped from the text, start

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Asok, On 1/13/14, 10:28 PM, Asok Chattopadhyay wrote: > As I said before, I have no control over the input text. In the > test servlet I am simply reading text from a file and sending it > out to the browser. No other processing has been done to the

Re: tomcat gracefull shutdown problem

2014-01-14 Thread Daniel Mikusa
On Jan 13, 2014, at 7:48 PM, Ja kub wrote: > I modified conf/context.xml > I hoped tomcat would wait 60 seconds for request to end. No, it doesn't do this. It does not have an option for "graceful" restart / shutdown like Apache HTTPD. If you want that behavior, you could setup a proxy in f

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread David kerber
On 1/13/2014 10:28 PM, Asok Chattopadhyay wrote: As I said before, I have no control over the input text. In the test servlet I am simply reading text from a file and sending it out to the browser. No other processing has been done to the text by the servlet. The browser, however, receives a page

Re: tomcat gracefull shutdown problem

2014-01-14 Thread Ja kub
even with unloadDelay="6" in conf/context.xml probably Servlet jsp is undeployed before spring servlet, and when spring servlet wants to use it to render jsp - it is already undeployed (and results in : HTTP Status 503 - Servlet jsp is currently unavailable) question is how to make Servlet js

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread André Warnier
Asok, 1) on this list, do not "top post". Read the rules : http://tomcat.apache.org/lists.html "tomcat-users" .. Important .. 6. Asok Chattopadhyay wrote: As I said before, I have no control over the input text. In the test servlet I am simply reading text from a file and sending it out to the

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread chris derham
Asok, > As I said before, I have no control over the input text. In the test > servlet I am simply reading text from a file and sending it out to the > browser. No other processing has been done to the text by the servlet. The > browser, however, receives a page with CRLF stripped starting from a