FW: Problem ReverseAjax.dwr on Tomcat7.0.0

2010-08-19 Thread Hadole, Nishant IN BOM SISL
Dear Weic,

I think the issue more belongs to DWR-Users Mailing List than here. Some 
relevant information that might help:

Tomcat 7 uses Servlet 3.0. To avoid certain types of cross-site scripting 
attacks, Servlet 3.0 supports HttpOnly cookies. HttpOnly cookies are not 
exposed to the client-side scripting code.

In case DWR reverAJAX using cookies, this might not work with Tomcat 7.0.

P.S. Avoid using screenshots / attachments while using this community.

With best regards,
Nishant Hadole

From: 魏超 [mailto:nnever...@gmail.com]
Sent: Thursday, August 19, 2010 2:21 PM
To: users@tomcat.apache.org
Subject: Problem ReverseAjax.dwr on Tomcat7.0.0


System: Windows7
Tomcat: Tomcat 7.0.0 32-bit Windows zip( Simply unzip it, do nothing on 
configure file)
DWR:  DWR2

Firstly sorry for my English.(I'm not good at it)

I'm working on a project build on Appfuse. And we add DWR reverseAjax into it. 
You know, it works well on Tomat6.  But when i move this project onto 
Tomcat7.0.0, it comes out that the reverseAjax is not working.

Screenshots


When i change to Tomcat6, it works again.

So, if i need to do any configuration on Tomcat7 to make it support reverseAjax?

Thianks




--
weic 魏超

E-mail nnever...@gmail.com
厦门中软海晟信息技术有限公司
厦门市软件园二期观日路2号,361008


Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.


RE: Tomcat = Server returned HTTP response code: 406 for URL

2010-05-13 Thread Hadole, Nishant IN BOM SISL
Dear Abdul Razack,

Although the query is not exactly related with tomcat, below is the explanation 
for HTTP error code 406:

The 406 status code means that, although the server understood and processed 
the request, the response is of a form the client cannot understand. A client 
sends, as part of a request, headers indicating what types of data it can use, 
and a 406 error is returned when the response is of a type not in that list.

Assuming no client code is updated recently (and so for the Tomcat settings I 
guess), you need to check with service provider (URL) which sends SMS.

With best regards,
Nishant Hadole
-Original Message-
From: abdul razack [mailto:sh_abd...@yahoo.com]
Sent: Thursday, May 13, 2010 3:43 PM
To: users@tomcat.apache.org
Subject: Tomcat = Server returned HTTP response code: 406 for URL

Dear All,

I am running J2EE application(JSP/servlet) on tomcat webser 
(apache-tomcat-5.5.23) and java = jdk_1.5.0_12.

My application is working fine and SMS are going out from server. SMS are being 
sent through URL.

But since three days SMS stops going from server and it giving the following 
error.

java.io.IOException: Server returned HTTP response code: 406 for URL:

please let me know what is the reason that I am getting error.

Thanks & Regards
-Abdul Razack




Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.

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



RE: 2 windows services on the same tomcat 5.5 instance

2010-03-05 Thread Hadole, Nishant IN BOM SISL
Dear Gaspare,

As suggested by Peter, if you are interested in creating two copies of tomcat 
on same host, attached document might help you.

With best regards,
Nishant Hadole

Siemens IT Solutions and Services
Mailto: nishant.had...@siemens.com

-Original Message-
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On 
Behalf Of Peter Crowther
Sent: Friday, 05 March, 2010 04:10 PM
To: Tomcat Users List
Subject: Re: 2 windows services on the same tomcat 5.5 instance

One Tomcat "instance" = one process = one service.

But you can create two or more copies of Tomcat.  They can be the same or
different versions.  If you want, they can share binaries and just have
different working, config and webapps directories.  You can register each of
them as a service, and start or stop each of them independently.

Is this what you want to do?  If not, please tell us more about what you
mean by "working on the same tomcat instance".

- Peter

On 5 March 2010 10:20, gasp_marino  wrote:

> Hi,
>
> i am a new tomcat user...i have read that i can install 2 tomcat instance
> on the same machine...
>
> But what about to have 2 windows services on the same tomcat
> instance/home??
>
> I'm working on windows server (2003-2008) and Tomcat 5.5.28
>
> Can I create another service, may be listen on another port, working on the
> same tomcat instance??
>
> Thanks a lot
>
> best regards
>
> Gaspare
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>

Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.

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

RE: Java heap size limit

2010-02-10 Thread Hadole, Nishant IN BOM SISL
For catlina.bat changes, value for Xms corresponds to initial memory pool & Xmx 
 to maximum memory pool. Set the values accordingly.

With best regards,
Nishant Hadole

-Original Message-
From: Hadole, Nishant IN BOM SISL [mailto:nishant.had...@siemens.com]
Sent: Thursday, 11 February, 2010 11:57 AM
To: 'Tomcat Users List'
Cc: 'yo...@consist.co.il'
Subject: RE: Java heap size limit

For 32 bit system, maximum memory pool can easily increased upto 2 GB.

1. If using batch start-up file
Add set CATALINA_OPTS=-Xms64M -Xmx128M in catlina.bat

2. If running as windows service, Using tomcat monitor --> java --> initial & 
maximum memory pool

With best regards,
Nishant Hadole
Siemens IT Solutions and Services
-Original Message-
From: Yoav Lanenter [mailto:yo...@consist.co.il]
Sent: Thursday, 11 February, 2010 11:48 AM
To: users@tomcat.apache.org
Subject: Java heap size limit




Hi,

my configuration is:

tomcat 5.5,Win Server 2003,32 bit,32 GB RAM

my question is how can i increase the Java heap size to the maximum (maximum 
memory pool)
using the apropicate script\configuration

which file/es should be changed acordinaly.

All the Best,
Yoav Lanenter
?   052-3562982
›  yo...@consist.co.il
"  http://thebobaba.blogspot.com/

Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.

Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.


RE: Java heap size limit

2010-02-10 Thread Hadole, Nishant IN BOM SISL
For 32 bit system, maximum memory pool can easily increased upto 2 GB.

1. If using batch start-up file
Add set CATALINA_OPTS=-Xms64M -Xmx128M in catlina.bat

2. If running as windows service, Using tomcat monitor --> java --> initial & 
maximum memory pool

With best regards,
Nishant Hadole
Siemens IT Solutions and Services
-Original Message-
From: Yoav Lanenter [mailto:yo...@consist.co.il]
Sent: Thursday, 11 February, 2010 11:48 AM
To: users@tomcat.apache.org
Subject: Java heap size limit




Hi,

my configuration is:

tomcat 5.5,Win Server 2003,32 bit,32 GB RAM

my question is how can i increase the Java heap size to the maximum (maximum 
memory pool)
using the apropicate script\configuration

which file/es should be changed acordinaly.

All the Best,
Yoav Lanenter
?   052-3562982
›  yo...@consist.co.il
"  http://thebobaba.blogspot.com/

Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.


RE: How to find network user id of user in servlet

2010-02-02 Thread Hadole, Nishant IN BOM SISL
Using mod_auth_sspi.so module for Apache for windows authentication will help.

Configuration changes -

LoadModule sspi_auth_module modules/mod_auth_sspi.so


SSPIAuth On
AllowOverride None
Order allow,deny
Allow from all
AuthName "XX"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
require valid-user
SSPIDomain XXX


With best regards,
Nishant Hadole
Mailto: nishant.had...@siemens.com
www.siemens.co.in
-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Wednesday, 03 February, 2010 12:20 PM
To: Tomcat Users List
Subject: Re: How to find network user id of user in servlet

On 03/02/2010 05:29, Ashish Kulkarni wrote:
> Hi
> How to find network user id who is logged into windows from servlet, there
> is a method in request getRemoteUser(), but it is returning null,

Tomcat doesn't support that directly. You need a 3rd party
authentication mechanism that supports windows authentication.

Mark


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


Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.


RE: Tomcat 5.5.28 EL not evaluated

2010-01-22 Thread Hadole, Nishant IN BOM SISL
Check this FAQ - http://faq.javaranch.com/java/ElOrJstlNotWorkingAsExpected

With best regards,
Nishant Hadole

Siemens IT Solutions and Services
SIS PRO SI-I
Tel.: +91 22 2495 7816
Fax: +91 22 6660 8521
Mailto: nishant.had...@siemens.com
www.siemens.co.in
-Original Message-
From: sharmila punde [mailto:sharmila...@yahoo.com]
Sent: Friday, 22 January, 2010 04:13 PM
To: users@tomcat.apache.org
Subject: Tomcat 5.5.28 EL not evaluated

Dear All,
My OS is fedora, and i have installed tomcat 5.5.28. I have web app.  My 
jsp page has EL as follow-
${perosn.name}.

I put jsp-api.jar, servlet-api.jar into /usr/java/jdk1.5.0_16/jre/lib/ext.
Servlet works fine, but above EL is considered as plain text. My web.xml of web 
app has following lines -



*.jsp
false

true



Why EL is not getting evaluated after translation to .java file.
Can some one please help me sort out this problem
Regards





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


Important notice: This e-mail and any attachment there to contains corporate 
proprietary information. If you have received it by mistake, please notify us 
immediately by reply e-mail and delete this e-mail and its attachments from 
your system.
Thank You.


RE: URL Redirect in Tomcat 6

2009-12-10 Thread Hadole, Nishant IN BOM SISL
I guess she wants to display Customizable error responses, when application 
fails to respond (error code like 404 etc). Though, I agree, the question is 
not properly framed... 

With best regards,
Nishant Hadole
 
Siemens IT Solutions and Services
SIS PRO SI-I
Tel.: +91 22 2495 7816
Fax: +91 22 6660 8521
Mailto: nishant.had...@siemens.com
www.siemens.co.in

-Original Message-
From: Pid [mailto:p...@pidster.com] 
Sent: Thursday, 10 December, 2009 02:29 PM
To: users@tomcat.apache.org
Subject: Re: URL Redirect in Tomcat 6

On 10/12/2009 05:38, bharati wrote:
>
> Hi,
>   Iam using Tomcat 6. In my applicaion, when Users entered any url like
> 'www.google.com'  then it will check for the status of the User.
 >
> If he is Inactive, then it will send a http packet to redirect to the 
> particular URL:
> like "http://192.168.100.125:8080/";  . Tomcat is listening to this port
> 8080.
 >
>   My question is: how do I get the url from tomcat..? If manually user types
> the url http://192.168.100.125:8080/  then it is displaying proper page to
> login.
 >
> But in this case, Internet User does not know the URL. so...i need to get
> the URL from Tomcat which is listening to 8080 Port.
>
> Please help me.
> Thanks in advance.

I'm baffled, I don't know about anyone else...  Perhaps you could 
rephrase your question in a way that might allow us to help you?

  http://catb.org/~esr/faqs/smart-questions.html


p

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



RE: db jars in common/lib and shared/lib

2009-12-09 Thread Hadole, Nishant IN BOM SISL
Try following changes in catalina.properties (Avoid spaces)

common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar,${catalina.home}/test/lib,${catalina.home}/test/lib/*.jar

With best regards,
Nishant Hadole
-Original Message-
From: Mohammad, Hammad Kasim Bekur [mailto:hammadkasimbekur.moham...@misys.com] 
Sent: Thursday, 10 December, 2009 12:39 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

I have found from tomcat wiki page http://wiki.apache.org/tomcat/HowTo
it says that:

How do I add JARs or classes to the common classloader without adding
them to $CATALINA_HOME/common/lib?

Edit the file catalina.properties under $CATALINA_BASE/conf; there is a
property called common.loader to which you can add additional paths to
find JARs or classes for the common classloader.

Now I have added another property as: 
common.loader=${catalina.home}/common/classes,${catalina.home}/common/i1
8n/*.jar,${catalina.home}/common/endorsed/*.jar,${catalina.home}/common/
lib/*.jar, ${catalina.home}/test/lib/*.jar

and created a directory called apache-tomcat-5.5.27\test\lib, I have
restarted tomcat server, still I get the same error. Any reason why?

many thanks
Kasim

-Original Message-
From: Mohammad, Hammad Kasim Bekur
[mailto:hammadkasimbekur.moham...@misys.com] 
Sent: 10 December 2009 12:14
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Hi,

My application is having a restriction that I cannot change or add jars
to common/lib, is there anyway I can create a new directory which is
equalent  to common/lib? What additional changes I need to make for
adding another directory?

Since If I open I can find tomcat/common/lib, server/lib, shared/lib.
All are having its own libraries, I need to add another directory called
test/lib and put my db jars, so that when server startup it should
identify the db jars from test/lib instead of common lib.

many thanks
Kasim
ext: 34632
Mobile: 9663763720
Skype: kasim.bekur

-Original Message-
From: Mohammad, Hammad Kasim Bekur
[mailto:hammadkasimbekur.moham...@misys.com] 
Sent: 10 December 2009 10:04
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib


Can you please provide a link from apache or good site to have
justification? 

many thanks
Kasim

-Original Message-
From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] 
Sent: 09 December 2009 23:36
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Dang it... the db drivers need to be located in common/lib if being used
as a source for a connection pool... Sorry for the mistake...


-Original Message-
From: Joseph Morgan [mailto:joseph.mor...@ignitesales.com] 
Sent: Wednesday, December 09, 2009 12:04 PM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

Kasim.. did you see Mark's note???  If you are using the connection pool
under Tomcat, then the DB drivers need to be located in shared.

-Original Message-
From: Mohammad, Hammad Kasim Bekur
[mailto:hammadkasimbekur.moham...@misys.com] 
Sent: Wednesday, December 09, 2009 8:14 AM
To: Tomcat Users List
Subject: RE: db jars in common/lib and shared/lib

It verified and it as given as

shared.loader=${catalina.base}/shared/classes,${catalina.base}/shared/li
b/*.jar

many thanks
Kasim

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org] 
Sent: 09 December 2009 19:39
To: Tomcat Users List
Subject: Re: db jars in common/lib and shared/lib

Joseph Morgan wrote:
> Mohammad,
> 
> Look in your Tomcat/conf/catalina.properties file.  Within there
you'll
> find a "shared.loader=" line, and I suspect it is empty.  You'll
likely
> want to enter a value there, such as
> "shared.loader=${catalina.home}/shared,${catalina.home}/shared/*.jar"

Nope. That is Tomcat 6. The OP is using 5.5.x

Mark




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



"Misys" is the trade name for Misys plc (registered in England and
Wales). Registration Number: 01360027. Registered office: One Kingdom
Street, London W2 6BL, United Kingdom. For a list of Misys group
operating companies please go to
http://www.misys.com/corp/About_Us/misys_operating_companies.html. This
email and any attachments have been scanned for known viruses using
multiple scanners. This email message is intended for the named
recipient only. It may be privileged and/or confidential. If you are not
the named recipient of this email please notify us immediately and do
not copy it or use it for any purpose, nor disclose its contents to any
other person. This email does not constitute the commencement of legal
relations between you and Misys plc. Please refer to the executed
contract between you and the relevant member of the Misys 

RE: About the problem "Task com.mchange.v2.resourcepool.basicresourcepool$acquiret...@1386abc (in deadlocked PoolThread) failed to complete in maximum time 60000ms. Trying interrupt()."

2009-12-09 Thread Hadole, Nishant IN BOM SISL
Not sure whether this is applicable here... but encountered similar issue with 
Tomcat and XAPOOL...

When DB server fails, connection pool has maximum connection initialised (but 
not working). Thus with restart of DB server, Tomcat need to be restarted to 
initialize active connections of pool, as this was configured in start-up code.

With best regards,
Nishant Hadole

-Original Message-
From: Peter Chen [mailto:peter.c...@aicent.com] 
Sent: Wednesday, 09 December, 2009 12:36 PM
To: users@tomcat.apache.org
Subject: About the problem "Task 
com.mchange.v2.resourcepool.basicresourcepool$acquiret...@1386abc (in 
deadlocked PoolThread) failed to complete in maximum time 6ms. Trying 
interrupt()."

I deployed my application to the Tomcat 5.5.26. I use hibernate for
O/RM, and the connection pool is c3p0, the database is MySql 5.0.

 

Several days ago, the Database Server is down, but there are lots of
user accessing the Tomcat.

 

After I restarted the Database Server, the Tomcat can't connect to the
Database Server automatically. 

And I have to restart the Tomcat manually. And only it was restarted,
the Tomcat can connect to the Database Server.

 

I checked logs, and found that there are lots of Select Operations in
the log file, and there are some error about "deadlocked PoolThread".

Does someone meet this problem before, and what's reason? Thanks.

 

 

PS:  the content of the log file:

 

DEBUG 20091207 00:00:30,757 SELECT * FROM conTable WHERE Keyword
= '172486' AND (Recip = '6590607447' OR Recip like
'6590607447/type=t...@%' ) 

DEBUG 20091207 00:00:31,815 SELECT * FROM conTable WHERE Keyword
= '605747' AND (Recip = '6707468443' OR Recip like
'6707468443/type=t...@%' ) 

.

DEBUG 20091207 00:00:35,813 SELECT * FROM conTable WHERE Keyword
= '172486' AND (Recip = '6590607447' OR Recip like
'6590607447/type=t...@%' ) 

;

DEBUG 20091207 00:00:36,334 SELECT * FROM conTable WHERE Keyword
= '160564' AND (Recip = '525510099023' OR Recip like
'525510099023/type=t...@%' ) 

WARN  20091207 00:00:39,282 Task
com.mchange.v2.resourcepool.basicresourcepool$acquiret...@13ba7d (in
deadlocked PoolThread) failed to complete in maximum time 6ms.
Trying interrupt(). 

WARN  20091207 00:00:39,282 Task
com.mchange.v2.resourcepool.basicresourcepool$acquiret...@1386abc (in
deadlocked PoolThread) failed to complete in maximum time 6ms.
Trying interrupt(). 

WARN  20091207 00:00:39,282 Task
com.mchange.v2.resourcepool.basicresourcepool$acquiret...@e78f88 (in
deadlocked PoolThread) failed to complete in maximum time 6ms.
Trying interrupt().

 



RE: Publishing Java webservice - tomcat 5.5 shared hosting

2009-12-06 Thread Hadole, Nishant IN BOM SISL
The changes in web.xml will cause instant restart Only due to TRUE value for 
parameter autoDeploy in server.xml.  
 



With best regards,
Nishant Hadole
-Original Message-
From: Karthik Nanjangude [mailto:karthik.nanjang...@xius-bcgi.com] 
Sent: Monday, 07 December, 2009 12:31 PM
To: Tomcat Users List
Subject: RE: Publishing Java webservice - tomcat 5.5 shared hosting

Hi

One Quick Hack is Open "Web.xml" make some temp modification (probably the 
Description) and save the file

This automatically restarts the Web Application




With regards
Karthik

-Original Message-
From: Abdul Raheem Seyed (NDC IS&T) [mailto:ase...@ndc.ae]
Sent: Monday, December 07, 2009 11:48 AM
To: users@tomcat.apache.org
Subject: Publishing Java webservice - tomcat 5.5 shared hosting

Hi,
 We have requirement to host a webservice in a shared tomcat 5.5 webhosting 
environment ( virtual server ). The hosting company doesn't provide access to 
tomcat Manager as it's shared web hosting.

Can some one tell how we can deploy a java webservice in tomcat 5.5. We have 
access to specific folder of the tomcat only (tomcat root \ 
webapps\mywebsite\). We can't restart the server as well we don't have admin 
access to the server.

Appreciate your help.

Thanks in advance,
Abdul Raheem S


Disclaimer:
This e-mail has been scanned by Microsoft Forefront Online Security for 
Exchange.
This e-mail and its attachments may be confidential and are intended solely for 
the use of the individual(s) to whom it is addressed. If you have received it 
by mistake, please reply by e-mail to sender or ad...@ndc.ae and delete it from 
your system; you may not copy this message or disclose its contents to anyone.  
Statements and opinions expressed in this e-mail are those of the sender, and 
do not necessarily reflect those of National Drilling Company (NDC).  Although 
reasonable precautions have been taken to ensure no viruses are present in this 
e-mail, NDC cannot accept responsibility for any loss or damage arising from 
the use of this e-mail or attachments.


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



RE: Tomcat Crashes out of continuous servicing of stuck request

2009-12-06 Thread Hadole, Nishant IN BOM SISL
Dear Chris,

Tomcat crashes means, the free memory starts declining dramatically to zero, 
and server stops responding to new requests. I am sure with little 
modifications, this can be handled in code itself, and this is not a concern at 
all.

I am more interested in knowing whether there exists any configuration for such 
cases, which stops processing after some predefined time-out. I know that this 
can be done for KEEPALIVE requests. What @ requests in SERVICE stage.

The screenshot for Tomcat Manager is attached for the same.

With best regards,
Nishant Hadole
 
Siemens IT Solutions and Services
SIS PRO SI-I
Tel.: +91 22 2495 7816
Fax: +91 22 6660 8521
Mailto: nishant.had...@siemens.com
www.siemens.co.in
-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
Sent: Saturday, 05 December, 2009 03:34 AM
To: Tomcat Users List
Cc: Hadole, Nishant IN BOM SISL
Subject: Re: Tomcat Crashes out of continuous servicing of stuck request

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nishant,

On 12/4/2009 4:29 AM, Hadole, Nishant IN BOM SISL wrote:
> Tomcat continues processing request indefinitely, causing loss of
> free heap memory and eventually crashes.

When you say "crashes", what exactly to you mean? OOME? JVM failure?

> When checked in Tomcat Monitor, under header jk-8009, the stage for
> stuck request is SERVICE and time goes on increasing.

As others have said, without attempting to send data to the client, you
can't know that they have disappeared. :(

My question is why your code causes a "crash" when the client
disappears, but works just fine when the client gets a proper response.
That suggests a mismanagement of resources by your webapp. You might
consider reviewing your code to find out why your "loss of free heap
memory" is occurring, because Tomcat surely isn't causing that to happen.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksZh0sACgkQ9CaO5/Lv0PBGfwCfVjYr8P9A0iFm6hLKkG7gxKx6
zsoAn2s5Box8os9g0dE6uFgB4TXJWPdr
=ssOC
-END PGP SIGNATURE-

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

RE: Tomcat Crashes out of continuous servicing of stuck request

2009-12-04 Thread Hadole, Nishant IN BOM SISL
Dear Rainer,

Thanks for explanation. In this particular case, when client press a button on 
JSP, it initiates a Database search operation, which may take time up to 30-45 
seconds. Meanwhile, we are showing a screen which tell user that his / her 
request is being processed and no to close the window. 

But, sometimes users are impatient and still close the window. Yes, as you 
suggested, it is possible to handle close event / stop processing by some 
notification, but application is full of such utilities, and it is too much of 
efforts.

I am interested in some parameterization, which detects broken connection and 
automatically drops stuck request. I have even checked this with requests with 
STAGE as KEEPALIVE, but not working with STAGE as SERVICE. Also, I am not able 
to figure out, why the processing is repeated.

With best regards,
Nishant Hadole
Mailto: nishant.had...@siemens.com
-Original Message-
From: Rainer Jung [mailto:rainer.j...@kippdata.de] 
Sent: Friday, 04 December, 2009 03:14 PM
To: Tomcat Users List
Cc: Hadole, Nishant IN BOM SISL
Subject: Re: Tomcat Crashes out of continuous servicing of stuck request

On 04.12.2009 10:29, Hadole, Nishant IN BOM SISL wrote:
> I am using Apache HTTP Server 2.0.61, Apache Tomcat Server 6.0.14.0 and 
> mod_jk 2.0.46 (AJP V 1.3).

mod_jk 2.0.46 does not exist.

> Scenario - Client call for heavy Post request from JSP. Tomcat receives the 
> request and starts processing. Before receiving the response, client closes 
> JSP window. Thus there is no one to receive the output.
>
> Issue - Tomcat continues processing request indefinitely, causing loss of 
> free heap memory and eventually crashes. When checked in Tomcat Monitor, 
> under header jk-8009, the stage for stuck request is SERVICE and time goes on 
> increasing.
>
> I have checked several Time-outs setting for tomcat and AJP connectors, but 
> still of no use.

Without trying to send something back to the client, there is no way 
telling the client closed the window (or pressed reload or switched to 
another URL). So in order to be able to stop processing long running 
stuff, you need to try sending something to the client every now and 
then, and your code working on producing the real response content needs 
to be stopped by some notification. You will need to implement this 
yourself.

Maybe someone can provide some example code?

> Kindly help. Also let me know if any specific parameterization is to ne 
> mentioned here for this.
>
>
> Note: We cannot avoid client closing window while request processing is in 
> progress.
>
> With best regards,
> Nishant Hadole
> Tel.: +91 22 2495 7816
> Fax: +91 22 6660 8521
> Mailto: nishant.had...@siemens.com

Regards,

Rainer


Tomcat Crashes out of continuous servicing of stuck request

2009-12-04 Thread Hadole, Nishant IN BOM SISL
I am using Apache HTTP Server 2.0.61, Apache Tomcat Server 6.0.14.0 and mod_jk 
2.0.46 (AJP V 1.3). 

Scenario - Client call for heavy Post request from JSP. Tomcat receives the 
request and starts processing. Before receiving the response, client closes JSP 
window. Thus there is no one to receive the output.

Issue - Tomcat continues processing request indefinitely, causing loss of free 
heap memory and eventually crashes. When checked in Tomcat Monitor, under 
header jk-8009, the stage for stuck request is SERVICE and time goes on 
increasing.

I have checked several Time-outs setting for tomcat and AJP connectors, but 
still of no use.

Kindly help. Also let me know if any specific parameterization is to ne 
mentioned here for this.


Note: We cannot avoid client closing window while request processing is in 
progress.

With best regards,
Nishant Hadole
Tel.: +91 22 2495 7816
Fax: +91 22 6660 8521
Mailto: nishant.had...@siemens.com