Re: Two auth methods for one application

2012-02-09 Thread Remon Sadikni
Hi Jan, The servlet spec doesn't support anything like this. I think what you'll have to do is write your own Authenticator. You can configure your own Authenticator by registering aValve that is an Authenticator in your webapp'sContext. Just write your own code and register it usingValve.

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-09 Thread Pid
On 09/02/2012 00:19, Jonathan Rosenberg wrote: Thanks to all who are trying to help. See info below. Here it is: What about the appname/WEB-INF/web.xml? p -- [key:62590808] signature.asc Description: OpenPGP digital signature

Re: Serving static content using embedded tomcat 7

2012-02-09 Thread Pid
On 09/02/2012 06:19, sanu wrote: Thanks for your reply. I have a global web.xml, where the DefaultServlet is mapped. The difference I see is that my static resources are not in the same directory as the host's appBase. Could this be the problem ? How can the static content be served in such

Re: Using Tomcat7 JDBC Connection Pool

2012-02-09 Thread amit shah
Comments below. On Wed, Feb 8, 2012 at 9:19 PM, Pid p...@pidster.com wrote: On 08/02/2012 14:59, amit shah wrote: Responses below. Thanks. On Wed, Feb 8, 2012 at 7:14 PM, Pid p...@pidster.com wrote: On 08/02/2012 12:30, amit shah wrote: Thanks for the reply. Responses below.

Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Andres Aguado
Hi Guys! First of all, I want to be grateful for help. I'm (very) newbie with apache-tomcat world, level 1 (I've installed Tomcat sucessfully once ;-) ) Well, I've a Tomcat 5.5.27 version with an application in production environment and i've installed the same version for windows on a

RE: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Casper Wandahl Schmidt
See comments inline -Original Message- From: Andres Aguado [mailto:andriu@gmail.com] Sent: 9. februar 2012 13:52 To: users@tomcat.apache.org Subject: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool Hi Guys! First of all, I want to be grateful for

Re: Using Tomcat7 JDBC Connection Pool

2012-02-09 Thread amit shah
One more comment below about oracle UCP. On Thu, Feb 9, 2012 at 5:10 PM, amit shah amits...@gmail.com wrote: Comments below. On Wed, Feb 8, 2012 at 9:19 PM, Pid p...@pidster.com wrote: On 08/02/2012 14:59, amit shah wrote: Responses below. Thanks. On Wed, Feb 8, 2012 at 7:14 PM,

Re: Using Tomcat7 JDBC Connection Pool

2012-02-09 Thread Pid
On 09/02/2012 12:56, amit shah wrote: One more comment below about oracle UCP. snip The pool returns members at random, so how would you know which cached credentials you were getting? The credentials which are passed to the getConnection(String username, String password) method. When we

JMX enabled - not able to monitor connection pooling

2012-02-09 Thread Josh Gooding
Using: Toncat 6.0.35 AND 7.0.latest in a Win32 Environment. My JMX params are as follows: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6969 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false This is only on my dev box, so I am no so

Re: JMX enabled - not able to monitor connection pooling

2012-02-09 Thread Daniel Mikusa
On Thu, 2012-02-09 at 05:52 -0800, Josh Gooding wrote: Using: Toncat 6.0.35 AND 7.0.latest in a Win32 Environment. My JMX params are as follows: -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=6969 -Dcom.sun.management.jmxremote.ssl=false

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Rainer Jung
On 09.02.2012 13:51, Andres Aguado wrote: Hi Guys! First of all, I want to be grateful for help. I'm (very) newbie with apache-tomcat world, level 1 (I've installed Tomcat sucessfully once ;-) ) Well, I've a Tomcat 5.5.27 version with an application in production environment and i've

JmxRemoteLifecycleListener binding to all IP addresses

2012-02-09 Thread Jesse Farinacci
Greetings, I am using Apache Tomcat 7.0.25 using IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux s390x-64 jvmxz6460sr8ifx-20100609_59383). Inspired by the flurry of JMX related questions on this list, I attempted to follow the official documentation[1] to enable remote JMX access. My sanitized

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Pid
On 09/02/2012 14:03, Rainer Jung wrote: On 09.02.2012 13:51, Andres Aguado wrote: Hi Guys! First of all, I want to be grateful for help. I'm (very) newbie with apache-tomcat world, level 1 (I've installed Tomcat sucessfully once ;-) ) Well, I've a Tomcat 5.5.27 version with an

Re: JmxRemoteLifecycleListener binding to all IP addresses

2012-02-09 Thread Konstantin Kolinko
2012/2/9 Jesse Farinacci jie...@gmail.com: Greetings, I am using Apache Tomcat 7.0.25 using IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Linux s390x-64 jvmxz6460sr8ifx-20100609_59383). Inspired by the flurry of JMX related questions on this list, I attempted to follow the official

Re: JmxRemoteLifecycleListener binding to all IP addresses

2012-02-09 Thread Mark Thomas
On 09/02/2012 15:35, Jesse Farinacci wrote: What is the expected behavior? Is this a bug? The expected behaviour is as you describe. No it is not a bug. Being able to specify the bind address is an enhancement request that doesn't look too difficult to implement (and would remove the need for

Re: Using Tomcat7 JDBC Connection Pool

2012-02-09 Thread Amit
Any thoughts on the first point about executing multiple SQL queries on physical connection creation? On 09-Feb-2012, at 7:05 PM, Pid p...@pidster.com wrote: On 09/02/2012 12:56, amit shah wrote: One more comment below about oracle UCP. snip The pool returns members at random, so how

controlling Server Authentication only vs Mutual authentication

2012-02-09 Thread Sanjeev Sharma
Hi, I work on an java web-app running on Tomcat 7. The entire application is required be doing SSL on port 443 (everything is accessed via https://). Two different login options are given to the user : username/password or client certificate authentication. We employ application-managed

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Andres Aguado
Hi, first, for me there is a powerfull reason for maintain 5.5 version. This is the initial version and application is working fine now, and I think that i'm not prepare to execute the upgrade, i don't know how and where to begin. And second, i'm trying to compile JMXAdaptorLifecycleListener.java

Re: Using Tomcat7 JDBC Connection Pool

2012-02-09 Thread Pid
On 09/02/2012 16:21, Amit wrote: Any thoughts on the first point about executing multiple SQL queries on physical connection creation? I have no idea if it'll work, but I'd try: SELECT 1; SELECT 1; If you are controlling the pool (and you are) by passing in username/password parameters each

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Pid
On 09/02/2012 16:26, Andres Aguado wrote: Hi, first, for me there is a powerfull reason for maintain 5.5 version. This is the initial version and application is working fine now, and I think that i'm not prepare to execute the upgrade, i don't know how and where to begin. And second, i'm

RE: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool warning: [path] bad path element C:\apache-tomcat-5.5.27\server\lib\catalina.jar:C:\apache-tomcat-5.5.27\bin\commons-logging-api-1.1.1.jar: no such file or

Re: Using Tomcat7 JDBC Connection Pool

2012-02-09 Thread Amit
Comment below On 09-Feb-2012, at 10:18 PM, Pid p...@pidster.com wrote: On 09/02/2012 16:21, Amit wrote: Any thoughts on the first point about executing multiple SQL queries on physical connection creation? I have no idea if it'll work, but I'd try: SELECT 1; SELECT 1; If you are

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Andres Aguado
Great, it's great!. First obstacle overcomed. Now, i've compiled .java file and it's been created a .class file. Now i've got this .class file and i've added it to catalina.jar and catalina-optional.jar, but when i try to start catalina script other error appears in catalina.out, like this:

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Andres Aguado
Ok, i've got it up!!. I've copied .class file into a directory that i must create; C:\apache-tomcat-5.5.27\server\lib\org\apache\catalina\mbeans. Also, i must delete lines into catalina.bat startup file set CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999

mod_jk and URL rewriting/proxying?

2012-02-09 Thread Casper Wandahl Schmidt
Hi List I have a quick question (I hope). I'm using mod_jk to forward from Apache httpd 2.2.8 to tomcat 7.0.20 (Ubuntu 8.04). I think I saw something on this list some time ago but can't remember what it was really about (the real issue was not want I want to do). So I want users to access

RE: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Caldarale, Charles R
From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com] Subject: mod_jk and URL rewriting/proxying? I don't want the app to become ROOT since I have another app that should be running as ROOT. And how is that one accessed? From what you described it sounds like you want the same URL

Re: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Casper Wandahl Schmidt
Den 09-02-2012 19:36, Caldarale, Charles R skrev: From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com] Subject: mod_jk and URL rewriting/proxying? I don't want the app to become ROOT since I have another app that should be running as ROOT. And how is that one accessed? From what you

Re: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Rainer Jung
On 09.02.2012 19:07, Casper Wandahl Schmidt wrote: Hi List I have a quick question (I hope). I'm using mod_jk to forward from Apache httpd 2.2.8 to tomcat 7.0.20 (Ubuntu 8.04). I think I saw something on this list some time ago but can't remember what it was really about (the real issue was

ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread C C
Hello, I'm seeing a difference in the way Tomcat handles logging exceptions thrown by a servlet, and I wonder if it's a configuration change or if this is simply how Tomcat is expected to behave. Tomcat versions tested: 5.5.26, 6.0.35, 7.0.25 OS: Windows 7 Java: 1.5.0_22 for Tomcat 5.5.26 and

RE: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Jeffrey Janner
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Thursday, February 09, 2012 12:36 PM To: Tomcat Users List Subject: RE: mod_jk and URL rewriting/proxying? From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com] Subject: mod_jk and

Re: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread Konstantin Kolinko
2012/2/9 C C ccb...@yahoo.com: Hello, I'm seeing a difference in the way Tomcat handles logging exceptions thrown by a servlet, and I wonder if it's a configuration change or if this is simply how Tomcat is expected to behave. Tomcat versions tested: 5.5.26, 6.0.35, 7.0.25 OS: Windows 7

RE: Cores with FlushableGzipOutputStream

2012-02-09 Thread Allen Reese
Try again now that I'm subscribed. -Original Message- From: Allen Reese Sent: Thursday, February 09, 2012 12:03 PM To: 'users@tomcat.apache.org' Cc: Lars Anderson Subject: Cores with FlushableGzipOutputStream We've just upgraded from tomcat 6.0.33 to 6.0.35 and started having

RE: Cores with FlushableGzipOutputStream

2012-02-09 Thread ken dias
unsubscribe From: are...@yahoo-inc.com To: users@tomcat.apache.org CC: laraa...@yahoo-inc.com Date: Thu, 9 Feb 2012 12:07:15 -0800 Subject: RE: Cores with FlushableGzipOutputStream Try again now that I'm subscribed. -Original Message- From: Allen Reese Sent: Thursday,

RE: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: mod_jk and URL rewriting/proxying? does one still have to modify the server.xml if we want new hosts to be there the next time we restart tomcat? A brief scan of the code indicates that you will have to maintain

RE: Cores with FlushableGzipOutputStream

2012-02-09 Thread Caldarale, Charles R
From: Allen Reese [mailto:are...@yahoo-inc.com] Subject: RE: Cores with FlushableGzipOutputStream I'm trying to determine what the next course of action should be here. I have an Oracle Support contract, but they don't seem to see this as a JVM issue, and blame it on a native lib. #

Re: choosing an httpd connector

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mari, (Yeah, that was a lot of irrelevant detail). On 2/8/12 7:51 PM, Mari Masuda wrote: Given these constraints I am not sure which connector would be the best choice. I came across this article from 2010 as a result of my (mostly

Re: Cores with FlushableGzipOutputStream

2012-02-09 Thread Mark Thomas
On 09/02/2012 20:07, Allen Reese wrote: Try again now that I'm subscribed. If libzip.so is provided by the JVM installer (and I think it is) then it is still a JVM problem. See [1] for an example where Oracle did accept that an crash in libzip.so was a bug. All changing the Tomcat code

Re: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Mark Thomas
On 09/02/2012 20:18, Caldarale, Charles R wrote: From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: mod_jk and URL rewriting/proxying? does one still have to modify the server.xml if we want new hosts to be there the next time we restart tomcat? A brief scan of the

Re: Cores with FlushableGzipOutputStream

2012-02-09 Thread Konstantin Kolinko
2012/2/10 Allen Reese are...@yahoo-inc.com: Try again now that I'm subscribed. -Original Message- From: Allen Reese Sent: Thursday, February 09, 2012 12:03 PM To: 'users@tomcat.apache.org' Cc: Lars Anderson Subject: Cores with FlushableGzipOutputStream We've just upgraded from

Re: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 2/9/12 2:40 PM, C C wrote: To test, I created a webapp with a single servlet, ExceptionServlet, that simply throw a ServletException in its service() method, e.g.: public class ExceptionServlet extends HttpServlet { protected void

Re: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casper, On 2/9/12 1:43 PM, Casper Wandahl Schmidt wrote: Den 09-02-2012 19:36, Caldarale, Charles R skrev: From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com] Subject: mod_jk and URL rewriting/proxying? I don't want the app to become

RE: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ServletException logging changes between 5.5 and 6.0/7.0? In order to use log4j with Tomcat 6.0 and 7.0, you need to download some Tomcat extras as described here:

Re: [OT] Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andres, On 2/9/12 11:26 AM, Andres Aguado wrote: Hi, first, for me there is a powerfull reason for maintain 5.5 version. This is the initial version and application is working fine now, and I think that i'm not prepare to execute the upgrade, i

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andres, On 2/9/12 12:29 PM, Andres Aguado wrote: Great, it's great!. First obstacle overcomed. Now, i've compiled .java file and it's been created a .class file. Now i've got this .class file and i've added it to catalina.jar and

Re: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/9/12 4:06 PM, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ServletException logging changes between 5.5 and 6.0/7.0? In order to use log4j with Tomcat 6.0 and 7.0, you

RE: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread ken dias
unsubscribe From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Thu, 9 Feb 2012 15:06:39 -0600 Subject: RE: ServletException logging changes between 5.5 and 6.0/7.0? From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ServletException logging

RE: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread ken dias
unsubscribe From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date: Thu, 9 Feb 2012 15:06:39 -0600 Subject: RE: ServletException logging changes between 5.5 and 6.0/7.0? From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: ServletException logging

RE: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread Caldarale, Charles R
From: ken dias [mailto:kend...@hotmail.com] Subject: RE: ServletException logging changes between 5.5 and 6.0/7.0? unsubscribe Zero-for-three... http://tomcat.apache.org/lists.html#tomcat-users - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL

RE: Cores with FlushableGzipOutputStream

2012-02-09 Thread Allen Reese
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Thursday, February 09, 2012 1:00 PM To: Tomcat Users List Subject: Re: Cores with FlushableGzipOutputStream 2012/2/10 Allen Reese are...@yahoo-inc.com: Try again now that I'm subscribed.

Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool

2012-02-09 Thread Pid *
On 9 Feb 2012, at 17:10, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Pid [mailto:p...@pidster.com] Subject: Re: Enabling JMX Remote Ports to connect Tomcat server remotelly with jconsole tool warning: [path] bad path element

Re: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread C C
Hi Christopher, - Original Message - From: Christopher Schultz ch...@christopherschultz.net To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Thursday, February 9, 2012 1:00 PM Subject: Re: ServletException logging changes between 5.5 and 6.0/7.0? -BEGIN PGP SIGNED

Path parameters and getRequestURI

2012-02-09 Thread Terence M. Bandoian
On 1:59 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, There was a change in 6.0.33 (and it has always been the case in 7.0.x?) that HttpServletRequest.getRequestURI now returns path parameters as part of the URI. That notably includes the URL-encoded

Re: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 2/9/12 5:00 PM, C C wrote: From: Christopher Schultz ch...@christopherschultz.net So log4j.properties is located in WEB-INF/classes? Where is log4j.jar? My log4j.properties is in WEB-INF/classes, and log4j.jar is in WEB-INF/lib.

Re: Path parameters and getRequestURI

2012-02-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Terrence, On 2/9/12 5:16 PM, Terence M. Bandoian wrote: On 1:59 PM, Christopher Schultz wrote: Is it safe to simply remove everything after the initial ; if I'm not interested in any path parameters? I don't want to just trim-off that kind of

Re: ServletException logging changes between 5.5 and 6.0/7.0?

2012-02-09 Thread Konstantin Kolinko
So log4j.properties is located in WEB-INF/classes? Where is log4j.jar? My log4j.properties is in WEB-INF/classes, and log4j.jar is in WEB-INF/lib. Okay. Do you have any other code in this example webapp -- for instance, something that actually loads the log4j.properties file? I don't

Re: Path parameters and getRequestURI

2012-02-09 Thread Konstantin Kolinko
2012/2/9 Christopher Schultz ch...@christopherschultz.net: There was a change in 6.0.33 (and it has always been the case in 7.0.x?) that HttpServletRequest.getRequestURI now returns path parameters as part of the URI. That notably includes the URL-encoded jsessionid that Tomcat uses when the

Re: clarification on Correct error in fix for 49683

2012-02-09 Thread Janne Jalkanen
Just to confirm - 7.0.25 seems to solve the problem for the most part. /Janne On 24 Jan 2012, at 10:53, Janne Jalkanen wrote: Been running 7.0.25 in production now for a day and the fd leak seems at least mitigated somewhat. lsof still lists a few open sockets left by Tomcat, but this

Re: starting connectors after the tomcat startup

2012-02-09 Thread Pradeep Fernando
Hi all, I could achieve the required behaviour by extending the standardService provided by tomcat. In my overrided startInternal() method i just dont start connectors. thanks, --Pradeep - To unsubscribe, e-mail:

Re: Why am I Getting org.apache.catalina.realm.JDBCRealm getPassword SEVERE: Exception performing authentication?

2012-02-09 Thread Jonathan Rosenberg
After many sessions of logging, testing, etc. I have convinced that I have been looking at tow unrelated issues: 1) Tomcat's auth was failing due to closed DB connections. But this is actually not a problem was unrelated to the problem I was trying to track down. 2) My app's DB pool is not set

Re: mod_jk and URL rewriting/proxying?

2012-02-09 Thread Casper Wandahl Schmidt
Den 09-02-2012 22:02, Christopher Schultz skrev: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Casper, On 2/9/12 1:43 PM, Casper Wandahl Schmidt wrote: Den 09-02-2012 19:36, Caldarale, Charles R skrev: From: Casper Wandahl Schmidt [mailto:kalle.pri...@gmail.com] Subject: mod_jk and URL