Setting timeout for HTTP response in case client app stops reading

2008-03-13 Thread Gary Hirschhorn
We are using Tomcat 5.5 and have a servlet that writes the HTTP response to a ServletOutputStream. Occasionally, a calling application will keep the HTTP connection alive but fail to read the complete HTTP response, effectively blocking the thread that is doing the writing. This in turn blocks

Problems with JK connector and IIS (HSE_REQ_SEND_RESPONSE_HEADER failed)

2008-03-13 Thread Ari Suutari
Hi, We are unable to get ISAPI JK connector (isapi_redirector.dll) working on one Windows 2003 based server installation. Here are our findings so far: - When browsing to http://localhost:8080 everything works, ie. tomcat side is working - When browsing to http://localhost/some.file.txt works,

64 bit questions

2008-03-13 Thread Stephen Nelson-Smith
Hi, I have a machine with 2 x Intel(R) Xeon(R) CPU E5430 @ 2.66GHz and 8G of RAM. If I want to make best use of this RAM, should I run this in 64 bit (48 bit hack) mode? If so are there any gotchas with JDKs, 64 bit Tomcat etc? Also we use some specific libraries - ojdbc14, bfopdf, ojdbc14 for

RE: 64 bit questions

2008-03-13 Thread Peter Crowther
From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] I have a machine with 2 x Intel(R) Xeon(R) CPU E5430 @ 2.66GHz and 8G of RAM. If I want to make best use of this RAM, should I run this in 64 bit (48 bit hack) mode? Operating system? If so are there any gotchas with JDKs, 64 bit Tomcat

Réf. : Re: Disabling the sessions

2008-03-13 Thread jean-louis . mateo
Hi everybody, It seems that filtering by programming is the best solution many thanks Len for your response. Best Regards Jean-Louis Matéo Bull, Architect of an Open World TM Bull SA - 53 r de l'Etang BP39 - 69578 LIMONEST tél - 08 20 08 20 00 fax - 04 72 52 51 24

Re: 64 bit questions

2008-03-13 Thread Stephen Nelson-Smith
On Thu, Mar 13, 2008 at 9:29 AM, Peter Crowther [EMAIL PROTECTED] wrote: From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] I have a machine with 2 x Intel(R) Xeon(R) CPU E5430 @ 2.66GHz and 8G of RAM. If I want to make best use of this RAM, should I run this in 64 bit (48 bit

Many Java Processes

2008-03-13 Thread Stephen Nelson-Smith
Hi, I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java I see many Java processes: $ pgrep -l java 1783 java 1844 java 1848 java 1849 java 1880 java 1881 java 1882 java 1883 java 1885 java 1886 java 1887 java 1888 java 1889 java 1890 java 1891 java 1892 java 1893 java 1894

RE: 64 bit questions

2008-03-13 Thread Peter Crowther
From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] Operating system? RHEL 5. http://java.sun.com/javase/6/webnotes/install/system-configurations.html - looks supported to me. - Peter - To start a new

Re: 64 bit questions

2008-03-13 Thread Stephen Nelson-Smith
On Thu, Mar 13, 2008 at 10:13 AM, Peter Crowther [EMAIL PROTECTED] wrote: From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] Operating system? RHEL 5. http://java.sun.com/javase/6/webnotes/install/system-configurations.html - looks supported to me. Aha - good lead - I'm on

Compiling Tomcat Native Library on Debian Etch

2008-03-13 Thread ssozonoff
Hi All, Has anyone successfully compiled the Tomcat Native Library on Debian Etch? Our IT guys insist on using this Distro, my experience lies with Gentoo So I run a ./configure --with-apr=/usr/bin --disable-openssl Any the get loads of errors which look the following: ./configure: line

Re: tomcat/axis not compiling java

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 J.R., atheus wrote: | Sorry, yes, we're running apache 2 with mod_jk. It works - jsps compile and | run. It's just these damn jws things. Is it possible that you are missing: JkMount /*.jwsmyWorker ?? - -chris -BEGIN PGP SIGNATURE-

Re: Many Java Processes

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen Nelson-Smith wrote: | I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java | I see many Java processes: These are threads, not processes. Some Linux kernel versions report them as processes, and some don't. It also

Re: Compiling Tomcat Native Library on Debian Etch

2008-03-13 Thread Jean Monnat
Hi Yes, at least it worked for me tomcat6 I downloaded apr from http://apr.apache.org/ extract and compile it in /opt then I ./configure native library --with-apr=/usr/local/apr then in catalina.sh LD_LIBRARY_PATH=/usr/local/apr/lib export LD_LIBRARY_PATH I hope this will help you Jean

Re: servlet crashing tomcat

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kimberly, Tomcat version? JVM version? Also, are you using a packaged Tomcat (from RH) or are you using a real one from tomcat.apache.org? Kimberly Begley wrote: | Hi - I am doing something very wrong with a servlet I wrote - it seems to be |

Re: context docBase UNC path support

2008-03-13 Thread Swapnil Brahmbhatt
Thanks Mark Mark Thomas [EMAIL PROTECTED] wrote: Swapnil Brahmbhatt wrote: Hello, Does tomcat 5.0.30 supports UNC path for context docBase? Yes. I've added this to the FAQ. See http://wiki.apache.org/tomcat/FAQ/Windows Mark

Re: Multi domain certificate with keytool

2008-03-13 Thread Some user
Thanks Vamsi! The post you mention pointed me in the right direction and I have it up and running. Great! Wasted 3 days on this one. I needed to transform my certificate to PKCS12, I missed that. Here is how for further reference: Create a new keystore with the signed certificate, the key and

Re: Database connections grow after redeploy

2008-03-13 Thread Scott McClanahan
On Wed, 2008-03-12 at 14:31 -0400, Scott McClanahan wrote: We are using the dbcp capabilities of tomcat and configured the datasource in the applications context configuration file. In a few simple tests we've seen some unexpected behavior and aren't sure if it's an error on our part. We

RE: Database connections grow after redeploy

2008-03-13 Thread Caldarale, Charles R
From: Scott McClanahan [mailto:[EMAIL PROTECTED] Subject: Re: Database connections grow after redeploy Some times our exchange server really mangles e-mails or out right blocks them so this is just a resend in case it didn't make it through. Before resending, look in the archives to see

RE: Many Java Processes

2008-03-13 Thread David Short
Don't know if this applies here or not but, I got this once when my ORACLE_HOME wasn't set when using Jserv (wrapper.env=) with the Apache web server. -Original Message- From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 3:18 AM To: Tomcat Users List

Re: Multi domain certificate with keytool

2008-03-13 Thread Vamsavardhana Reddy
Glad to learn that your problem is solved :) ++Vamsi On Thu, Mar 13, 2008 at 7:25 PM, Some user [EMAIL PROTECTED] wrote: Thanks Vamsi! The post you mention pointed me in the right direction and I have it up and running. Great! Wasted 3 days on this one. I needed to transform my

Connection pooling

2008-03-13 Thread [EMAIL PROTECTED]
Hi, i'm using tomcat 5.5.9 for a web server application where many clients connect and do stuffs. each time they login to the server, for example, a database query is performed. Application works, but reading

Re: Custom URL handlers in Tomcat web app

2008-03-13 Thread pmanvi
Hi Matt, Today I was trying to port one legacy application from JRun to Tomcat facing same problem with URL. URL.setURLStreamHandlerFactory.java.lang.Error: factory already defined 1. I tried out setting -Djava.protocol.handler.pkgs=my.package pointing to where my CustomURLStreamHander is

Re: Compiling Tomcat Native Library on Debian Etch

2008-03-13 Thread ssozonoff
Hi, OK, so you did not use APR from debian package (apt)? I will give your solution a try Thanks, Serge Jean Monnat wrote: Hi Yes, at least it worked for me tomcat6 I downloaded apr from http://apr.apache.org/ extract and compile it in /opt then I ./configure native library

Re: Many Java Processes

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Short wrote: | Don't know if this applies here or not but, I got this once when my | ORACLE_HOME wasn't set when using Jserv (wrapper.env=) with the Apache web | server. Wow. Jserv? Now /that's/ a blast from the past! ;) That would

Re: Database connections grow after redeploy

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | From: Scott McClanahan [mailto:[EMAIL PROTECTED] | Subject: Re: Database connections grow after redeploy | | As far as the continuing data base connections, I can only speculate | that the prior instances of the

Re: Many Java Processes

2008-03-13 Thread dshort
I experienced the reported multiple-thread Java issue. Yes, this was with Apache 1.x embedded with an Oracle vertical. Just trying to help... Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Short wrote: | Don't know if this

Re: Database connections grow after redeploy

2008-03-13 Thread Scott McClanahan
On Thu, 2008-03-13 at 12:02 -0400, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | From: Scott McClanahan [mailto:[EMAIL PROTECTED] | Subject: Re: Database connections grow after redeploy | | As far as the continuing data

Re: Database connections grow after redeploy

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scott, Scott McClanahan wrote: | Do you have any suggestions for a profiling tool like you described? | Preferably open source. Thanks. I have used Borland's OptimizeIt in the past, but I think it's a defunct product (and it's also neither free

Re: Connection pooling

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Daad, [EMAIL PROTECTED] wrote: | i'm using tomcat 5.5.9 for a web server application where many | clients connect and do stuffs. each time they login to the server, | for example, a database query is performed. Application works, but | reading |

RE: Database connections grow after redeploy

2008-03-13 Thread Caldarale, Charles R
From: Scott McClanahan [mailto:[EMAIL PROTECTED] Subject: Re: Database connections grow after redeploy Do you have any suggestions for a profiling tool like you described? Just to get started, the Sun JDK comes with a primitive heap profiler. You can enable it with the command line

Re: Database connections grow after redeploy

2008-03-13 Thread Juha Laiho
Scott McClanahan wrote: On Thu, 2008-03-13 at 12:02 -0400, Christopher Schultz wrote: Caldarale, Charles R wrote: | From: Scott McClanahan [mailto:[EMAIL PROTECTED] | Subject: Re: Database connections grow after redeploy | As far as the continuing data base connections, I can only speculate

Tomcat and parallel security realms

2008-03-13 Thread Juergen Weber
Hi, I have Tomcat users in an LDAP directoy. All users have the same rights, there are no groups. I have no influence over the LDAP servers' content. Tomcat uses the JNDI realm. Now, I need an additional, technical, user for Tomcat, that should be allowed to restart/redeploy web apps.Everybody

Re: Tomcat and parallel security realms

2008-03-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jürgen, Juergen Weber wrote: | So, if user tomcat logs in, JNDI realm should say User unknown and | afterwards memory realm should say fine, user is allowed. | | Unfortunately, Tomcat can only use one active realm. Is that right? Right. | Is there

RE: Tomcat and parallel security realms

2008-03-13 Thread Caldarale, Charles R
From: Juergen Weber [mailto:[EMAIL PROTECTED] Subject: Tomcat and parallel security realms Unfortunately, Tomcat can only use one active realm. Is that right? Yes, but you can write your own Realm as a wrapper that simply serially calls the real ones until the desired response is obtained.

Re: Compiling Tomcat Native Library on Debian Etch

2008-03-13 Thread Rainer Jung
configure in tcnative 1.1.12 is broken. See: http://marc.info/?t=11994474831r=1w=2 Regards, Rainer ssozonoff schrieb: Hi, OK, so you did not use APR from debian package (apt)? I will give your solution a try Thanks, Serge Jean Monnat wrote: Hi Yes, at least it worked for me

Re: Problems with JK connector and IIS (HSE_REQ_SEND_RESPONSE_HEADER failed)

2008-03-13 Thread Rainer Jung
Not an immediate solution, but at least a translation: the error number 2746 is in hex, so in decimal it is 10054, which is connection reset by pear. Since you seem to be able to reproduce with single requests, maybe you can use wireshark to check, if the client really resets the connection,

Number of open DB connections in shared a datasource pool?

2008-03-13 Thread Michael L
I have a DataSource pool defined in Tomcat config shared among multiple servlets. I would like to monitor its activity level (number of active connections vs min/max values). I tried to find a way to monitor it via JMX but found only ways to see active connection per each servlet - which is

Re: CGIServlet in Tomcat 6

2008-03-13 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=4877 Posted on behalf of a User Sorry for a kind of a necropost, but is't enough to add privileged=true to the root tag of main context.xml which is in $CATALINA_HOME/conf/context.xml In Response To: Hi all, I'm using CGI servlet in

Re: Problems with JK connector and IIS (HSE_REQ_SEND_RESPONSE_HEADER failed)

2008-03-13 Thread Ari Suutari
Hi, Not an immediate solution, but at least a translation: the error number 2746 is in hex, so in decimal it is 10054, which is connection reset by pear. Yes, we found out the errorcode meaning ourselves also. Since you seem to be able to reproduce with single requests, maybe you can

Re: Compiling Tomcat Native Library on Debian Etch

2008-03-13 Thread ssozonoff
Thanks, That was the problem. Serge Rainer Jung-3 wrote: configure in tcnative 1.1.12 is broken. See: http://marc.info/?t=11994474831r=1w=2 Regards, Rainer -- View this message in context: