tomcat 6.0.32, ecj maven dependency

2011-04-01 Thread Federico Fissore
I can't find a maven repo with the ecj dependency specified in jasper-6.0.32 groupIdorg.eclipse.jdt.core.compiler/groupIdartifactIdecj/artifactId version3.3.1/version has anybody a hint? thanks in advance federico fissore -

Re: tomcat 6.0.32, ecj maven dependency

2011-04-01 Thread Mark Thomas
On 01/04/2011 08:29, Federico Fissore wrote: I can't find a maven repo with the ecj dependency specified in jasper-6.0.32 groupIdorg.eclipse.jdt.core.compiler/groupIdartifactIdecj/artifactId version3.3.1/version has anybody a hint? The uploading of versions of that jar is somewhat

mod_jk / AJP and compression

2011-04-01 Thread John Baker
Hello, The Tomcat AJP Connector does not support compression. Why has this been ommitted? Of course, Apache can do compression but this leaves data running uncompressed between Apache and Tomcat. John - To unsubscribe,

Re: mod_jk / AJP and compression

2011-04-01 Thread Mark Thomas
On 01/04/2011 11:15, John Baker wrote: Hello, The Tomcat AJP Connector does not support compression. Why has this been ommitted? Because the link between Tomcat and reverse proxy will nearly always have significantly more capacity than the link between the client and the reverse proxy.

Re: maxThreads

2011-04-01 Thread Pid
On 01/04/2011 06:58, Kaushal Shriyan wrote: Hi, What are the implications or issues if maxThreads are increased from the default 150 to 300 threads. Are there any performance issues ? Yes, may be at risk of improving performance. p I am using TC 5.5.27 , Ubuntu Linux Server 8.04 , Sun

Re: mod_jk / AJP and compression

2011-04-01 Thread John Baker
Mark, In general, that's true. However, for high performance applications measuring results in milliseconds - ie noting that a request with compression takes 60ms and without takes 120ms - it's an issue. And it seems so easy to fix by putting compression into the Tomcat AJP connector. Given it's

Problem with too many open db connections on Tomcat

2011-04-01 Thread Claus Hausberger
Hello, I have a problem with Tomcat and open connections to an Oracle 11g database. I use Tomcat 5.5, DBCP 1.2 and Hibernate 3.3 + Spring for DB connections. For political reasons I can not upgrade to new Tomcat versions at the moment. I have 7 deployed apps on the Tomcat. 4 user a datasource

Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Mark Thomas
On 01/04/2011 12:36, Claus Hausberger wrote: Hello, I have a problem with Tomcat and open connections to an Oracle 11g database. I use Tomcat 5.5, DBCP 1.2 and Hibernate 3.3 + Spring for DB connections. For political reasons I can not upgrade to new Tomcat versions at the moment. I have

Tomcat GzipOutputFilter

2011-04-01 Thread John Baker
Hello, I note there's a GzipOutputFilter in the Tomcat (and JBoss) jar files: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/coyote/http11/filters/GzipOutputFilter.html Yet I can't load it in the web.xml file using filter-class. Is there some pre-defined filter name for this filter?

Re: Tomcat GzipOutputFilter

2011-04-01 Thread Konstantin Kolinko
2011/4/1 John Baker jba...@javasystemsolutions.com: Hello, I note there's a GzipOutputFilter in the Tomcat (and JBoss) jar files: http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/coyote/http11/filters/GzipOutputFilter.html Yet I can't load it in the web.xml file using filter-class. Is

Re: Tomcat GzipOutputFilter

2011-04-01 Thread John Baker
The AJP connector doesn't support compression (a missing useful feature in my opinion) so I found myself looking for a filter. Thanks for letting me know it won't work. I'll look at the example filter. On Fri, 01 Apr 2011 16:28 +0400, Konstantin Kolinko knst.koli...@gmail.com wrote: 2011/4/1

Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Claus Hausberger
Original-Nachricht Datum: Fri, 01 Apr 2011 12:44:28 +0100 Von: Mark Thomas ma...@apache.org An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Problem with too many open db connections on Tomcat On 01/04/2011 12:36, Claus Hausberger wrote: Hello, I have a

Re: Tomcat GzipOutputFilter

2011-04-01 Thread Mikolaj Rydzewski
On Fri, 01 Apr 2011 13:31:18 +0100, John Baker jba...@javasystemsolutions.com wrote: The AJP connector doesn't support compression (a missing useful feature in my opinion) Typical deployment setup for AJP connector is to pass requests via processes on the same machine, or at least in the

RE: Problem with too many open db connections on Tomcat

2011-04-01 Thread Propes, Barry L
Are you able to insert these attributes in the Resource tag? timeBetweenEvictionRunsMillis=-1 minEvictableIdleTimeMillis=5000 poolPreparedStatements=true removeAbandoned=true removeAbandonedTimeout=300 I have these attributes nested in my Resource element - I never used 5.5

Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Mark Thomas
On 01/04/2011 13:38, Claus Hausberger wrote: Original-Nachricht Datum: Fri, 01 Apr 2011 12:44:28 +0100 Von: Mark Thomas ma...@apache.org An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Problem with too many open db connections on Tomcat On 01/04/2011 12:36,

Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Claus Hausberger
Original-Nachricht Datum: Fri, 01 Apr 2011 14:49:56 +0100 Von: Mark Thomas ma...@apache.org An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Problem with too many open db connections on Tomcat On 01/04/2011 13:38, Claus Hausberger wrote:

Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Mark Thomas
On 01/04/2011 14:56, Claus Hausberger wrote: Original-Nachricht Datum: Fri, 01 Apr 2011 14:49:56 +0100 Von: Mark Thomas ma...@apache.org An: Tomcat Users List users@tomcat.apache.org Betreff: Re: Problem with too many open db connections on Tomcat On 01/04/2011 13:38,

Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Henry Lu
Is there a way to encrypt the password in the Resource tag and tomcat can still read it and decrypt? -Henry On 4/1/2011 9:58 AM, Mark Thomas wrote: On 01/04/2011 14:56, Claus Hausberger wrote: Original-Nachricht Datum: Fri, 01 Apr 2011 14:49:56 +0100 Von: Mark

mod_jk workers contact 'localhost' instead of the configured host

2011-04-01 Thread Marco Sarti
Hi, I'm working with mod_jk 1.2.31 for Apache 2.2.3 under RedHat Linux and I'm trying to configure a simple two JBoss nodes load balancer. No virtualhost are used. Workers are configured as follow: - worker.lnxstagjboss1_staging3.port=8009

Re: Problem with too many open db connections on Tomcat

2011-04-01 Thread Mark Thomas
On 01/04/2011 15:06, Henry Lu wrote: Is there a way to encrypt the password in the Resource tag and tomcat can still read it and decrypt? 1. Please don't hijack someone else's thread. 2. Look at the docs, in particular the FAQs before posting. Mark

Re: Tomcat GzipOutputFilter

2011-04-01 Thread Pid
On 01/04/2011 13:31, John Baker wrote: The AJP connector doesn't support compression (a missing useful feature in my opinion) so I found myself looking for a filter. Thanks for letting me know it won't work. I'll look at the example filter. Surely you want to be doing that at the HTTPD edge?

Re: mod_jk workers contact 'localhost' instead of the configured host

2011-04-01 Thread Konstantin Kolinko
2011/4/1 Marco Sarti marco.sa...@plangroup.it: Hi, I'm working with mod_jk 1.2.31 for Apache 2.2.3 under RedHat Linux and I'm trying to configure a simple two JBoss nodes load balancer. No virtualhost are used. Workers are configured as follow: -

password encryption

2011-04-01 Thread Henry Lu
I tried the following command and failed as tomcat home directory: C:\apps\apache-tomcat-7.0.11java -cp lib/catalina.jar;bin/tomcat-juli.jar org.a pache.catalina.realm.RealmBase -a md5 henry Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/uti l/res/StringManager

Re: [OT] Protecting against HTTP response splitting

2011-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 3/31/2011 8:21 PM, Christopher Schultz wrote: On 3/31/2011 7:05 AM, Ronald Klop wrote: I would say that some proper input validation solves your problem. Does new URL(redirectURL).toString() give an exception on invalid url's? new

Re: [OT] Protecting against HTTP response splitting

2011-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leon, On 4/1/2011 1:49 AM, Leon Rosenberg wrote: On Fri, Apr 1, 2011 at 2:21 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 3/31/2011 7:05 AM, Ronald Klop wrote: I would

Re: mod_jk workers contact 'localhost' instead of the configured host

2011-04-01 Thread Marco Sarti
My apologies to all the list for this stupid mistake... you are right. Thank you. Marco Sarti Plansoft Srl - via Rosellini, 25 Firenze Cell: (+39)3489932833 Skype: msarti66 - Messaggio originale - Da: Konstantin Kolinko knst.koli...@gmail.com A: Tomcat Users List

Re: mod_jk / AJP and compression

2011-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 John, On 4/1/2011 6:45 AM, John Baker wrote: In general, that's true. However, for high performance applications measuring results in milliseconds - ie noting that a request with compression takes 60ms and without takes 120ms - it's an issue. And

Re: maxThreads

2011-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 4/1/2011 6:43 AM, Pid wrote: On 01/04/2011 06:58, Kaushal Shriyan wrote: Hi, What are the implications or issues if maxThreads are increased from the default 150 to 300 threads. Are there any performance issues ? Yes, may be at risk

url-pattern algorithm problem?

2011-04-01 Thread Cha
Hello, We are using Tomcat 7.0.11 with the following servlet-mapping servlet-mapping servlet-nameapp/servlet-name url-pattern*.htm/url-pattern url-pattern/en/*/url-pattern /servlet-mapping The problem we find if the incoming url is like http://example.com/en/yp/list/cat/10/1;, it will not

RE: url-pattern algorithm problem?

2011-04-01 Thread Caldarale, Charles R
From: Cha [mailto:eric.cha.r...@gmail.com] Subject: url-pattern algorithm problem? url-pattern*.htm/url-pattern url-pattern/en/*/url-pattern The problem we find if the incoming url is like http://example.com/en/yp/list/cat/10/1;, it will not matched to the 'app' servlet. Likely correct

Re: [OT] Protecting against HTTP response splitting

2011-04-01 Thread Konstantin Kolinko
2011/4/1 Christopher Schultz ch...@christopherschultz.net: I think I'm doing to standardize on simply scanning for troublesome characters like \r and \n and throwing a MalformedURLException or something like that. You'd better scan for allowed characters. The \r and \n are not the only ones

Re: url-pattern algorithm problem?

2011-04-01 Thread Cha
My bad, the app is deployed as 'ROOT' and I did read the url-pattern section in the section before posting the question. Based on what I read, it should match to the 'app', but it is not in this case. Cha. On 04/01/2011 11:39 AM, Caldarale, Charles R wrote: From: Cha

Re: url-pattern algorithm problem?

2011-04-01 Thread Konstantin Kolinko
2011/4/1 Cha eric.cha.r...@gmail.com: Hello, We are using Tomcat 7.0.11 with the following servlet-mapping servlet-mapping servlet-nameapp/servlet-name url-pattern*.htm/url-pattern url-pattern/en/*/url-pattern Missing ''. Do you have a Filter that catches such requests and rewrites the

Re: password encryption

2011-04-01 Thread Paul Gifford
Do you have org.apache.tomcat.util.res.StringManager on your classpath? It's in tomcat-coyote.jar in my installation (6.0.18). Paul On Fri, Apr 1, 2011 at 10:47 AM, Henry Lu z...@umich.edu wrote: I tried the following command and failed as tomcat home directory:

Issue with isapi_redirect-1.2.31 on IIS7 on Win2008R2

2011-04-01 Thread Thomas Strauß
Hi, we have a customer that is facing a situation since yesterday on two 2008R2 servers. The IIS did without warning refuse to load the isapi_redirect-1.2.31 dll. The error is always the same: Could not load all ISAPI filters for site 'the site name'. Therefore site startup

Re: url-pattern algorithm problem?

2011-04-01 Thread Cha
'' is a copypaste error sorry. Yes, I do have filters but there is not url rewrite at all. Turning on the debug on tomcat, it is return 404. If I changing the pattern to /en/yp/* for that incoming url, it will work but it doesn't conform to what the spec said though. Regards, Cha. On

Re: password encryption

2011-04-01 Thread Konstantin Kolinko
In Tomcat 7 you will need lib/tomcat-util.jar. The following works: java -cp bin/tomcat-juli.jar;lib/catalina.jar;lib/tomcat-util.jar org.apache.catalina.realm.RealmBase -a md5 foo I updated the docs: http://svn.apache.org/viewvc?rev=1087791view=rev Best regards, Konstantin Kolinko 2011/4/1

tomcat with apr and openssl gives ssl_error_rx_record_too_long

2011-04-01 Thread Lengyel Tamás
Hi all, We use tomcat 5.5.30 on ubuntu linux, ssl configured and working (with java= =3D keystore). We tried to install APR. libapr1-dev, libssl-dev, java (jdk1.6.0_24) instal= =3D led. tomcat-native-1.1-20-src downloaded, and built correctly (Loaded APR based= =3D Apache Tomcat Native

Re: password encryption

2011-04-01 Thread Pid
On 01/04/2011 15:47, Henry Lu wrote: I tried the following command and failed as tomcat home directory: Please don't hijack threads. p signature.asc Description: OpenPGP digital signature

RE: tomcat with apr and openssl gives ssl_error_rx_record_too_long

2011-04-01 Thread Lengyel Tamás
Sorry, too much copy/pastes made my mail unreadable. Again: Hi all, We use tomcat 5.5.30 on ubuntu linux, ssl configured and working (with java keystore). We tried to install APR. libapr1-dev, libssl-dev, java (jdk1.6.0_24) installed. tomcat-native-1.1-20-src downloaded, and built correctly

different urls to open up same tomcat instance

2011-04-01 Thread peter sze
Hello, I'm a beginner to apache tomcat, but I've been tasked with solving a problem with our tomcat servers. Our tomcat instance is started up with one URL:

Re: url-pattern algorithm problem?

2011-04-01 Thread Konstantin Kolinko
2011/4/1 Cha eric.cha.r...@gmail.com: '' is a copypaste error sorry.  Yes, I do have filters but there is not url rewrite at all. Turning on the debug on tomcat, it is return 404. If I changing the pattern to /en/yp/* for that incoming url, it will work but it doesn't conform to what the

Re: what exactly does it mean to run multiple tomcat instances?

2011-04-01 Thread Robert P. J. Day
On Thu, 31 Mar 2011, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 3/31/2011 9:07 AM, Robert P. J. Day wrote: i'd eventually deduced most of that. i think it would be useful if that were explained more forcefully in the RUNNING.txt file since it's

Re: tomcat with apr and openssl gives ssl_error_rx_record_too_long

2011-04-01 Thread Konstantin Kolinko
2011/4/1 Lengyel Tamás leng...@quattrosoft.hu: Sorry, too much copy/pastes made my mail unreadable. Again: Hi all, We use tomcat 5.5.30 on ubuntu linux, ssl configured and working (with java keystore). We tried to install APR. libapr1-dev, libssl-dev, java (jdk1.6.0_24) installed.

How to configure custom MBeans

2011-04-01 Thread Daniel Guggi
Hi, I'm trying to configure custom MBeans by creating an MBeanInterface+Impl and putting the jar into tomcat's lib-dir. I manged to create the mbean using jmx-direclty like the following (exected from within a LifecycleListener): MBeanServer server = getServer(); ObjectName name = null;

RE: different urls to open up same tomcat instance

2011-04-01 Thread Caldarale, Charles R
From: peter sze [mailto:szep...@gmail.com] Subject: different urls to open up same tomcat instance Our tomcat instance is started up with one URL: which brings up our dashboard with our server's performance. A second URL was created to bring up the same dashboard. but unfortunately, each

Re: url-pattern algorithm problem?

2011-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cha, On 4/1/2011 12:20 PM, Cha wrote: If I changing the pattern to /en/yp/* for that incoming url, it will work but it doesn't conform to what the spec said though. Sounds like you have another conflicting url-pattern somewhere in web.xml. Care to

RE: mod_jk / AJP and compression

2011-04-01 Thread Holle, Jess
If you want compression here, then just do it in a servlet filter based on Accept-Encoding thus resulting in compression in Tomcat and the stream remaining compressed all the way to the client. From: Mark Thomas [mailto:ma...@apache.org] Sent: Fri 4/1/2011 5:20

Re: different urls to open up same tomcat instance

2011-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 4/1/2011 1:02 PM, peter sze wrote: I'm a beginner to apache tomcat, but I've been tasked with solving a problem with our tomcat servers. Our tomcat instance is started up with one URL:

Re: what exactly does it mean to run multiple tomcat instances?

2011-04-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 4/1/2011 1:13 PM, Robert P. J. Day wrote: On Thu, 31 Mar 2011, Christopher Schultz wrote: So... it specifically tells you that it will use your own conf/server.xml file. Would you like an additional reinforcing statement? Why, yes,

Re: [OT] Protecting against HTTP response splitting

2011-04-01 Thread sebb
On 1 April 2011 15:49, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 3/31/2011 8:21 PM, Christopher Schultz wrote: On 3/31/2011 7:05 AM, Ronald Klop wrote: I would say that some proper input validation solves your problem.

Re: what exactly does it mean to run multiple tomcat instances?

2011-04-01 Thread Robert P. J. Day
On Fri, 1 Apr 2011, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Robert, On 4/1/2011 1:13 PM, Robert P. J. Day wrote: On Thu, 31 Mar 2011, Christopher Schultz wrote: So... it specifically tells you that it will use your own conf/server.xml file. Would you