Re: using Servlet Filter to rewrite domain of JSESSIONID cookie?

2010-07-01 Thread Nikita Tovstoles
wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Nikita, > > On 7/1/2010 6:37 PM, Nikita Tovstoles wrote: > > I borrowed "sub-domain" from Google Analytics terminology. I have one > > server, running one tomcat instance with one virtual host. That host

Re: using Servlet Filter to rewrite domain of JSESSIONID cookie?

2010-07-01 Thread Nikita Tovstoles
omain is set to ".widget.com" Make sense? On Thu, Jul 1, 2010 at 3:07 PM, André Warnier wrote: > Nikita Tovstoles wrote: > >> thanks for the pointers. However, emptySessionPath - from what I can tell >> - >> only deals with paths (not domain). how could I use it

Re: using Servlet Filter to rewrite domain of JSESSIONID cookie?

2010-07-01 Thread Nikita Tovstoles
GNED MESSAGE- >> Hash: SHA1 >> >> Nikita, >> >> On 6/30/2010 6:20 PM, Nikita Tovstoles wrote: >> >>> I'd like to make session cookie domain-wide, and ignore subdomains - in >>> Tomcat 6. >>> >> >> You could use the e

using Servlet Filter to rewrite domain of JSESSIONID cookie?

2010-06-30 Thread Nikita Tovstoles
I'd like to make session cookie domain-wide, and ignore subdomains - in Tomcat 6. So for app reachable via my.site.com and www.site.com, I'd like to have session cookie's domain be ".site.com". I thought of doing so using a ServletResponseWrapper and a servlet Filter: @Override public void

Re: URLs with '../' and 404s

2010-04-08 Thread Nikita Tovstoles
Chuck, Without asserting that Wicket's is NOT breaking an RFC, I would appreciate a clarification on which RFC do you think the framework (or the app) is breaking? HttpServletResponse.sendRedirect allows relative URLs explicitly. From 1.4 EE Javadoc: "Sends a temporary redirect response to the cl

Re: URLs with '../' and 404s

2010-04-08 Thread Nikita Tovstoles
Response.java in Tomcat src: http://kickjava.com/src/org/apache/catalina/connector/Response.java.htm On Thu, Apr 8, 2010 at 12:52 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Nikita, > > On 4

Re: URLs with '../' and 404s

2010-04-08 Thread Nikita Tovstoles
Actually it was pointed out to me that it is the container & not the app/framework that is generating the Location header, and so isn't the below a bug in toAbsolute()? On Thu, Apr 8, 2010 at 8:14 AM, Nikita Tovstoles wrote: > We use Wicket that periodically redirects to relative U

URLs with '../' and 404s

2010-04-08 Thread Nikita Tovstoles
We use Wicket that periodically redirects to relative URLs starting with '../'. I realize that's against the RFC (which says redirects are supposed to be absolute), but I am not clear on why doesn't Tomcat collapse those URLs in Response.toAbsolute()? Specifically: -assume client is at http://loca

multiple stateful iframes per page will overwrite JSESSIONID?

2010-03-21 Thread Nikita Tovstoles
Hello, Looking for someone to either confirm or refute my theory that deploying two iframes pointing to two different stateful pages on the same domain can lead to JSESSIONIDs being overwritten. Here's what I mean: Setup 1. suppose you have two pages that require HttpSession state (session affin

does Tomcat6 ship with NIO-based connector?

2007-03-02 Thread Nikita Tovstoles
Hi, Tomcat6 docs refer to NIO-based connector but it isn't listed among HTTP Connectors (in Docs). Does it ship with one? Or is the idea that users would take Grizzly from Glassfish? thanks -nikita - To start a new topic, e-

overrding requestURI with ServletRequestWrapper: what methods to override?

2007-02-01 Thread Nikita Tovstoles
Hi, I'm using a ServletRequestWrapper to override incoming requestURI from /A to /B. I noticed that I also have to override getRequestURL() method, which made me wonder what other methods must I override to trick the servlet into thinking that incoming request is indeed for /B? thanks -nikit

Re: max memory..

2006-09-05 Thread Nikita Tovstoles
There would be no adverse effect on garbage collection (i.e. longer GC times) when moving from max heap of 1gb to 4gb? -nikita Leon Rosenberg wrote: are you using a 64bit version? If yes than the answer is yes. Otherwise its probably no :-) regards Leon On 9/5/06, Asensio, Rodrigo <[EMAIL PR

PUT or POST?

2006-07-29 Thread Nikita Tovstoles
We have a webapp that needs to support binary updloads from a remove fat client: if our client crashes we'd like it to automatically "send" a zipped log file to our web application. the delivered file would NOT be stored in Tomcat server's file system - but inserted into db. Apparently our

Re: Why are there 200000 Finalizer objects at OOME???

2006-07-06 Thread Nikita Tovstoles
John, You should be catching Throwable t, not Exception e. Also replace DriverAdapterCPDS cpds = new DriverAdapterCPDS(); with DriverAdapterCPDS cpds = null; //before try cpds = new DriverAdapterCPDS(); //inside try Finally, how are you closing connections (i.e returning them to the pool?). s

how to install php on tomcat?

2006-06-09 Thread Nikita Tovstoles
I know nothing about php, so this may be a dumb question, but how do I add php support to tomcat? thanks -nikita - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional c

Re: Tomcat creating two threads for one request

2006-06-07 Thread Nikita Tovstoles
take a look at $CATALINA_BASE/conf/server.xml; each port is defined as -nikita Sourabh Antani wrote: Nikita, Thanks for your reply. I dont seem to be missing any parameters. I dont see anywhere that tomcat is listening to two ports, do you know any specific place to look for it?

Re: Tomcat creating two threads for one request

2006-06-07 Thread Nikita Tovstoles
ometimes happen if the user double-clicks submit buttons. There are plenty of threads in the archives of this list suggesting ways to mitigate this double-submission problem. HTH, Jon Nikita Tovstoles wrote: Sourab, I'm facing the exactly same problem and yet to find a solution. Is

Re: Tomcat creating two threads for one request

2006-06-06 Thread Nikita Tovstoles
Sourab, I'm facing the exactly same problem and yet to find a solution. Is your Tomcat instance listening on 2 ports by chance? Also is the request.getParameterMap() of one of those parallel requests missing any query parameters? -nikita Sourabh Antani wrote: Hi, I am facing this sit

Re: How to deploy one application under two different port?

2006-06-05 Thread Nikita Tovstoles
I think that's exactly what red phoenix is asking. If so, I would suggest defining a second inside element of your Tomcat's server.xml (under $CATALINA_BASE/conf), HOWEVER: I discovered that under highly-concurrent loads a request to one port is interpreted by Tomcat two requests - one on ea

Re: deploying myapp.war as "/" - confused

2006-05-19 Thread Nikita Tovstoles
pp. What's the new "current directory" of ServletContext for ROOT application? thanks -nikita Mark Thomas wrote: Nikita Tovstoles wrote: Hi, I have myapp.war that I'd like to deploy by copying myapp.war to catalina.base/webapps

deploying myapp.war as "/" - confused

2006-05-18 Thread Nikita Tovstoles
Hi, I have myapp.war that I'd like to deploy by copying myapp.war to catalina.base/webapps; but I would like to bind the app to context "/". I have $tomcat.base/conf/server.xml, in myapp.war I have: /META-INF/context.xml I know that somewhere I should specify . So far plugging this into i

can I use shell variables in context.xml?

2006-05-11 Thread Nikita Tovstoles
Is the following possible? where $RESOURCE_NAME is set in shell prior to starting Tomcat? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Does Tomcat reuse parameterMap?

2006-05-08 Thread Nikita Tovstoles
In Tomcat, do multiple HttpServletRequest objects share same parameterMap instance? If so, and access to that instance is not synchronized, doesn't that mean that one request can get another requests parameters? see http://sourceforge.net/mailarchive/message.php?msg_id=12468534 thanks -nikita

cannot copy Request parameters to Map while load testing

2006-05-08 Thread Nikita Tovstoles
Hi, I'm load-testing my webapp running on Tomcat 5.5.12 (Win) using the following URL: http://localhost:8081/myapp/admin?cmd=test In doGet() I have this line: Map _requestParams = (MapString[]>)request.getParameterMap(); In load-testing, Most of the time this requests processes normally, b

working JOTM/XAPool/MySQL config with Tomcat 5.5?

2006-05-05 Thread Nikita Tovstoles
I have been struggling trying to get JOTM/XAPool 1.5 to do the following as part of webapp running in Tomcat 5.5 (talking to MySQL 5): 1. Validate connections: if MySQL server kills all jdbc connections, and *later* the webapp asks for a JDBC cxn, the db pool should reestablish and return a wo

should I call Servlet.destroy() if response.getWriter().checkError() is true?

2006-05-04 Thread Nikita Tovstoles
I read somewhere that if response.getWriter().checkError() returns true "servlet should terminate". Do you think "terminate" means simply "return" or actually Servlet.destroy()? thanks -nikita - To unsubscribe, e-mail: [EMAIL

Re: NPE: outputStream is null in InternalOutputBuffer - why?

2006-05-04 Thread Nikita Tovstoles
Answering my own question, and asking another: I have this line in finally{} of Servlet.processRequest(): response.flushBuffer(); //if response.getWriter() was never called, then this method call will result in NPE. Is this proper behavior or should I file a bug report? Nikita Tovstoles

NPE: outputStream is null in InternalOutputBuffer - why?

2006-05-03 Thread Nikita Tovstoles
Hi, I am load testing a webapp running on Tomcat 5.5.12 (windoze). Once in a while I see the following in Tomcat's log: SEVERE: Servlet.service() for servlet StatusServlet threw exception java.lang.NullPointerException at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(Interna

Re: how to configure servlets within same webapp to listen to different local ports?

2006-05-03 Thread Nikita Tovstoles
port. You will end up with essentially two web roots and applications under each. Chris Berthold IT Systems Analyst Commercial Refrigerator Door Company 941 . 371 . 8110 x 205 -Original Message- From: Nikita Tovstoles [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 03, 2006 1:51 PM To

how to configure servlets within same webapp to listen to different local ports?

2006-05-03 Thread Nikita Tovstoles
Hi, I have a webapp with two servlets: LoginServlet and AdminServlet. I would like LoginServlet to only respond to requests coming to port 8080, and AdminServlet to respond to requests coming only to 8081. The only (rather non-portable way of doing this) of which I can think so far is: -in s

ANT task for context.xml generation?

2006-04-21 Thread Nikita Tovstoles
Hi, Is there an ANT task for generating context.xml files? thanks, -nikita - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5.5.16 tried to start context when shutting down

2006-04-05 Thread Nikita Tovstoles
it could be happening because tomcat did not shutdown within some 'timeout' time, in which case it appears to do a 180 and try to start back up. did you see any 'cannot shutdown' messaged in log? -nikita Cord Awtry wrote: For some reason, when I shut down my tomcat app, via commandline or the

jsf-impl.jar does not get deleted on app undeploy

2006-03-30 Thread Nikita Tovstoles
Hi, I have a WAR which, among others, contains Hibernate and JSF libraries. When I undeploy this application (using Tomcat manager), the app's directory remains in webapps because app/WEB-INF/lib/jsf-impl.jar cannot be deleted - i.e. it appears Tomcat continues to access that JAR. Since comp