Re: Servlet Request URL

2011-08-08 Thread André Warnier
Mohit Anchlia wrote: I need to intercept a request in the servlet and send the request after some processing as a proxy. Currently when I do that it breaks OAuth since customer uses REQUEST URL to sign the request and since host part of the URL is changing it breaks that validation. Is there a wa

Servlet Request URL

2011-08-08 Thread Mohit Anchlia
I need to intercept a request in the servlet and send the request after some processing as a proxy. Currently when I do that it breaks OAuth since customer uses REQUEST URL to sign the request and since host part of the URL is changing it breaks that validation. Is there a way I can keep the same h

URL rewrite

2011-08-08 Thread Mohit Anchlia
I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed headers of my servlet and this is what I see. I used getHeaders and iterate over it: I need to use host as

Re: Tomcat 7 adds jsessionid in request URI as opposed to Tomcat 5

2011-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 刘铎, On 8/4/2011 10:23 PM, 刘铎 wrote: > I'm using Tomcat 6.0.24. As I know, jsessionid could be returned to > the tomcat by urlrewriting or cookie. Why not use cookie instead? In this case, Tomcat cannot determine if cookies are supported, yet, so the

Re: Sticky Session Not Working With Apache 2.0.54 and Tomcat 7.0.8

2011-08-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karl, On 8/5/2011 7:49 AM, Lataxes, Karl wrote: > After some testing, I determined that appending the session ID to > the URL will not work. Why not? > I can, however, add the session ID as a new HTTP header, but I have > to determine which modules

Re: Tomcat 7: change in windows registry

2011-08-08 Thread Mark Thomas
On 08/08/2011 15:32, Jonatan Aguirre Kobayashi wrote: > I installed tomcat 7.0.19 and the registry ubication of InstallPath and > Version keys changes from "HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software > Foundation\Tomcat\7.0" to "HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software > Foundation\Tomcat\7.0\T

Re: Tomcat 7.0.19 overrides the http status code on forward

2011-08-08 Thread Pid
On 08/08/2011 15:07, Eugen Paraschiv wrote: > I'm seeing some strange behavior with a RequestDispatcher forward in Tomcat. > The the exact code doesn't generate the problem on Jetty, so it is probably > related to the servlet implementation. > > The problem is as follows: Spring does a forward on

Re: Application error after move of site

2011-08-08 Thread Pid
On 08/08/2011 13:46, Dave Filchak wrote: > Hi, > > I had to switch hosts and one of the sites that I inherited is a tomcat > site. After the move most of the site is fine but on a number of links, > I get the following error: > > Error reading properties file: Please check the following: 1. That

Tomcat 7: change in windows registry

2011-08-08 Thread Jonatan Aguirre Kobayashi
I installed tomcat 7.0.19 and the registry ubication of InstallPath and Version keys changes from "HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\7.0" to "HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Tomcat\7.0\Tomcat7", I need to know from which version change (my previous

Tomcat 7.0.19 overrides the http status code on forward

2011-08-08 Thread Eugen Paraschiv
I'm seeing some strange behavior with a RequestDispatcher forward in Tomcat. The the exact code doesn't generate the problem on Jetty, so it is probably related to the servlet implementation. The problem is as follows: Spring does a forward on an existing request/response - at which point, the res

Application error after move of site

2011-08-08 Thread Dave Filchak
Hi, I had to switch hosts and one of the sites that I inherited is a tomcat site. After the move most of the site is fine but on a number of links, I get the following error: Error reading properties file: Please check the following: 1. That you have downloaded the JAXP (XML) API from JavaSoft a

Re: Deploying ROOT Context for variable .war filename

2011-08-08 Thread Mark Thomas
On 08/08/2011 13:11, jenskreidler wrote: > > First of all thanks for the rapid answers and your time! > I think I did not describe the scenario correctly, so I do this now: > > Assume you have a tomcat 'multiple-instances' setup like this > /srv/tomcat/instance-1/ > /srv/tomcat/instance-2/ > ...

Re: Deploying ROOT Context for variable .war filename

2011-08-08 Thread jenskreidler
First of all thanks for the rapid answers and your time! I think I did not describe the scenario correctly, so I do this now: Assume you have a tomcat 'multiple-instances' setup like this /srv/tomcat/instance-1/ /srv/tomcat/instance-2/ ... /srv/tomcat/instance-n/ Every instance dir is a full tom

Re: Deploying ROOT Context for variable .war filename

2011-08-08 Thread Pid
On 08/08/2011 10:30, jenskreidler wrote: > > > Pid * wrote: >> >> On 08/08/2011 09:56, jenskreidler wrote: >>> >>> Hi tomcat-users, >>> >>> using tomcat 7, is it possible to mount the ROOT context path for a .war >>> file, where the .war file will have a variable file name, i.e. building a >>> .w

RE: Tomcat not conforming to Servlet spec 2.4+ in regards to jsp:include

2011-08-08 Thread Nadav Katz
I apologize for wasting everyone's time. Tomcat was working fine, it's just that the applet requested the exact same servlet at the exact same time. This is why I saw two different Request objects and why the filter intercepted the request. Since I didn't notice that this happened, I confused th

Re: Deploying ROOT Context for variable .war filename

2011-08-08 Thread jenskreidler
Pid * wrote: > > On 08/08/2011 09:56, jenskreidler wrote: >> >> Hi tomcat-users, >> >> using tomcat 7, is it possible to mount the ROOT context path for a .war >> file, where the .war file will have a variable file name, i.e. building a >> .war by a continuous integration server. >> For exampl

Re: Deploying ROOT Context for variable .war filename

2011-08-08 Thread Pid
On 08/08/2011 09:56, jenskreidler wrote: > > Hi tomcat-users, > > using tomcat 7, is it possible to mount the ROOT context path for a .war > file, where the .war file will have a variable file name, i.e. building a > .war by a continuous integration server. > For example, you get a myapp-3.2.0-20

Deploying ROOT Context for variable .war filename

2011-08-08 Thread jenskreidler
Hi tomcat-users, using tomcat 7, is it possible to mount the ROOT context path for a .war file, where the .war file will have a variable file name, i.e. building a .war by a continuous integration server. For example, you get a myapp-3.2.0-20110809-build254.war, next day a myapp-3.2.0-20110810-bu

Re: Tomcat not conforming to Servlet spec 2.4+ in regards to jsp:include

2011-08-08 Thread Mark Thomas
On 08/08/2011 08:47, Konstantin Kolinko wrote: > 2011/8/8 Nadav Katz : >> Thank you for your answer, it hadn't occurred to me to try removing the jsp >> mapping. Unfortunately it doesn't work...I removed it, and behavior stays >> the same. I tried setting the STRICT_SERVLET_COMPLIANCE=true (hopin

Re: Tomcat not conforming to Servlet spec 2.4+ in regards to jsp:include

2011-08-08 Thread Konstantin Kolinko
2011/8/8 Nadav Katz : > Thank you for your answer, it hadn't occurred to me to try removing the jsp > mapping. Unfortunately it doesn't work...I removed it, and behavior stays the > same. I tried setting the STRICT_SERVLET_COMPLIANCE=true (hoping the strict > request wrapping rules would help),

Re: Problem with cookies

2011-08-08 Thread Pid
On 08/08/2011 08:29, Oleg Belykh wrote: > I have a strange problem when accessing servlet on Tomcat 7.0.14 server with > Safari and Google Chrome browsers. There is no cookies. No JSESSIONID, > nothing in Javascript: document.cookie variable. But i see that cookie > JSESSIONID is registered in "

Re: Plz remove my contact

2011-08-08 Thread Pid
On 08/08/2011 08:34, MUKHERJEE, SUPRATIM (ATTSI) wrote: > Hi, > > I no longer wish to be part of this mailing list. Please remove me from the > list. > > Regards, > Supratim Mukherjee | Mobility ProdOps and Tools Team > Cube: 9-3n250d, 900 North Point Parkway, Alpharetta GA 30005 > (D) 678-893-

Problem with cookies

2011-08-08 Thread Oleg Belykh
I have a strange problem when accessing servlet on Tomcat 7.0.14 server with Safari and Google Chrome browsers. There is no cookies. No JSESSIONID, nothing in Javascript: document.cookie variable. But i see that cookie JSESSIONID is registered in "Show cookies" Safari preferences area. When i ac

RE: Tomcat not conforming to Servlet spec 2.4+ in regards to jsp:include

2011-08-08 Thread Nadav Katz
Thank you for your answer, it hadn't occurred to me to try removing the jsp mapping. Unfortunately it doesn't work...I removed it, and behavior stays the same. I tried setting the STRICT_SERVLET_COMPLIANCE=true (hoping the strict request wrapping rules would help), but no go. This problem is a r