Re: Tomcat creating two threads for one request

2006-06-26 Thread Darryl Miles
ametsi wrote: The problem seems to occur by a double submission of the Post. That is, I found that except of the “submit” button of the form that I use which invokes the jsp, I am also using a small java script, which accidentally submits the Post for one more time. I changed the java script and

Re: Tomcat creating two threads for one request

2006-06-26 Thread ametsi
that the jsp is invoked once as expected. -- View this message in context: http://www.nabble.com/Tomcat-creating-two-threads-for-one-request-t1743271.html#a5047317 Sent from the Tomcat - User forum at Nabble.com. - To start a new

Re: Tomcat creating two threads for one request

2006-06-21 Thread ametsi
If I am not mistaken jakarta-tomcat-5.0.28 -- View this message in context: http://www.nabble.com/Tomcat-creating-two-threads-for-one-request-t1743271.html#a4975580 Sent from the Tomcat - User forum at Nabble.com. - To start a

Re: Tomcat creating two threads for one request

2006-06-21 Thread Darryl Miles
ametsi wrote: Tomcat Version: 5.0 Can you get a more precise version ? 5.0.0 ? 5.0.99 ? Darryl - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai

Re: Tomcat creating two threads for one request

2006-06-21 Thread ametsi
t It does not happen all the times -- View this message in context: http://www.nabble.com/Tomcat-creating-two-threads-for-one-request-t1743271.html#a4973139 Sent from the Tomcat - User forum at Nabble.com. - To start a new

Re: Tomcat creating two threads for one request

2006-06-21 Thread Darryl Miles
ametsi wrote: Having a similar problem, I would like to know if you have found any solution on this... No one quoted their Tomcat and JVM versions to help expose the problem. How are you all sure its no a client problem ? I can't see how the suggestion is listening on two ports can be a pr

Re: Tomcat creating two threads for one request

2006-06-20 Thread ametsi
Having a similar problem, I would like to know if you have found any solution on this... -- View this message in context: http://www.nabble.com/Tomcat-creating-two-threads-for-one-request-t1743271.html#a4958276 Sent from the Tomcat - User forum at Nabble.com

Re: Tomcat creating two threads for one request

2006-06-07 Thread Jon Wingfield
Fair enough. It was the "I'm facing the exactly same problem..." statement that got me confused ;) Personally, I haven't seen this "one request spawns two processes" problem. Probably best to post your tomcat version, OS, config etc so others on the list may be able to help. Jon Nikita Tovs

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
I know double-submission isn't part of my problem, because the client sending these requests is our in-house C app. -nikita Jon Wingfield wrote: I would turn on the access logs (if you haven't already) and check that the browser isn't actually sending two requests. This can sometimes happen i

Re: Tomcat creating two threads for one request

2006-06-07 Thread Jon Wingfield
I would turn on the access logs (if you haven't already) and check that the browser isn't actually sending two requests. This can sometimes 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

Re: Tomcat creating two threads for one request

2006-06-07 Thread Sourabh Antani
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? Regards sourabh __ Do You Yahoo!? Tired of spam

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

Tomcat creating two threads for one request

2006-06-06 Thread Sourabh Antani
Hi, I am facing this situation. I have a login screen, when the user clics the submit button, Tomcat sometimes creates two threads in parallel to process the request. This causes a problem with the database. This does not always happen. Most of the time it creates only one thread as expec