RE: Custom realm.authenticate() that would work with any realm - possible?

2011-12-09 Thread ohaya
Hi Chuck, Thanks for the pointer to the CombinedRealm, but, as I've been working with the test implementation that I mentioned for extending the JNDIRealm, I *think* that I'm coming to the realization that I was asking for is probably not possible, or at least not practical, unless I'm totally

Re: SSL configuration on apache tomcat 6 - Oracle EL5

2011-12-09 Thread Pid *
On 9 Dec 2011, at 07:54, Oladapo Moshood morec...@gmail.com wrote: On Thu, Dec 8, 2011 at 8:41 AM, Daniel Mikusa dmik...@vmware.com wrote: On Thu, 2011-12-08 at 08:22 -0800, Oladapo Moshood wrote: After the re-installation of the whole Apache Tomcat Native Library, I still get: Ok,

Re: AJP connection timeout setting/Tomcat 6 vs. 7 questions

2011-12-09 Thread André Warnier
Kari Scott wrote: On Dec 6, 2011, at 2:25 PM, André Warnier wrote: Kari Scott wrote: We are running Tomcat 6. 0.32 with jdk1.6.0_26 on Solaris 10, mod_ajp 1.3 and Apache 2.2.21 on all but one production server which is the same except for it's running Tomcat 7.0.21. I have some

Re: Custom realm.authenticate() that would work with any realm - possible?

2011-12-09 Thread Brian Burch
On 09/12/11 18:02, oh...@cox.net wrote: Hi Chuck, Thanks for the pointer to the CombinedRealm, but, as I've been working with the test implementation that I mentioned for extending the JNDIRealm, I *think* that I'm coming to the realization that I was asking for is probably not possible, or

RE: RemoteIpFilter not working

2011-12-09 Thread spring
Can you send a dump of the HTTP headers received by the webapp and the return value of the various request.getXXX methods? That would be very helpful, here. getRemoteAddr(): 85.214.210.60 -- proxy IP x-forwarded-for: 85.178.56.216 -- client IP x-forwarded-host: foobar.eu -- proxy

Re: Custom realm.authenticate() that would work with any realm - possible?

2011-12-09 Thread André Warnier
Hi Jim. As I recall, your original issue was that there is no OAM plugin for Tomcat, and therefore, you are doing the OAM authentication within the front-end Apache, and then passing the user-id to Tomcat. And then, you find yourself in Tomcat with a user-id, but without any roles

Multiple Tomcats on the Machine

2011-12-09 Thread Alexander Diedler
Hello We have three instances of Tomcat on a Windows Server and want to access on every instance several applications through the Manager app. In every /Catalina/[hostname]/manager.xml is Context docBase=${catalina.home}/webapps/manager privileged=true antiResourceLocking=false

add and modify globalnamingresources on the fly

2011-12-09 Thread Marcelo Romulo Fernandes
Hi people,     Is it possible to change globalnamingresources at tomcat and reflect the changes to a running instance without restart?     I want do add and change datasources global resources dynamically without restart tomcat!     Is it possible? I investigated probe

Re: MVC or Model2 with Tomcat

2011-12-09 Thread Pid
On 08/12/2011 10:51, Blaxton wrote: snip On 6 Dec 2011, at 15:52, Blaxton blaxx...@yahoo.com wrote: I have added the host directive to server.xml and moved appexmp1 contents to ROOT directory and now I can access www.mydomain.com/index.jsp with no problem, however now the servlets are not

Re: Tomcat JMX/RMI: How server interface is choosen?

2011-12-09 Thread Pid
On 08/12/2011 11:15, Ilya Kazakevich wrote: I enable JMX server and JMX Registry in tomcat using Listener className=org.apache.catalina.mbeans.JmxRemoteLifecycleListener rmiRegistryPortPlatform=10001 rmiServerPortPlatform=10002 / Client connects to 10001 and tomcat returns its address

Re: Tomcat 7.0.23 won't start

2011-12-09 Thread Pid
On 08/12/2011 15:04, Jacob Champlin wrote: Add a Realm definition or wait until 7.0.24. There's a bug in 7.0.23. I am waiting for 7.0.24. I'm wincing as I ask: is there a particular reason that you're defining the Context in server.xml - it's been strongly recommended to not do that for

Re: Tomcat 7.0.23 won't start

2011-12-09 Thread Pid
On 08/12/2011 18:42, Christopher Schultz wrote: Jacob, On 12/8/11 10:04 AM, Jacob Champlin wrote: Practical: This was my sandbox config file. I switch between 6 different applications. I do this by switching server.xml files when I switch projects. This keeps things minimal (not

Re: add and modify globalnamingresources on the fly

2011-12-09 Thread Pid
On 09/12/2011 12:31, Marcelo Romulo Fernandes wrote: Hi people, Is it possible to change globalnamingresources at tomcat and reflect the changes to a running instance without restart? I want do add and change datasources global resources dynamically without restart tomcat! Which

Tomcat memory allocation

2011-12-09 Thread Martin O'Shea
Hello Following advice found elsewhere on the internet, I've just added the following line to the catalina.bat file in my installation of tomcat 6.0.26: set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=128m I know that settings: Xms128m -Xmx512m Control the initial heap size and

RE: Tomcat memory allocation

2011-12-09 Thread Caldarale, Charles R
From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: Tomcat memory allocation Following advice found elsewhere on the internet Always to be taken with large chunks of salt. set JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx512m -XX:MaxPermSize=128m You would be better off using CATALINA_OPTS,

RE: Tomcat memory allocation

2011-12-09 Thread Martin O'Shea
Thanks for this Chuck. I realise now what is happening. I thought the PermGen space was used in the heap when now I see it as just storing class definitions. So I could reduce it below 128Mb if I choose. Is there a default value? As to setting Xms and Xmx to the same, I will do that. A job hung

Re: Multiple Tomcats on the Machine

2011-12-09 Thread Pid
On 09/12/2011 11:54, Alexander Diedler wrote: Hello We have three instances of Tomcat on a Windows Server and want to access on every instance several applications through the Manager app. In every /Catalina/[hostname]/manager.xml is Context docBase=${catalina.home}/webapps/manager

RE: Tomcat memory allocation

2011-12-09 Thread Caldarale, Charles R
From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation So I could reduce it below 128Mb if I choose. Is there a default value? Yes - for each platform and JVM type. Use JConsole on a running JVM to see what it is. A job hung earlier and I wonder if

Re: Tomcat memory allocation

2011-12-09 Thread Ronald Klop (Mailing List)
Op vrijdag, 9 december 2011 16:11 schreef Pid p...@pidster.com: On 09/12/2011 14:52, Martin O'Shea wrote: -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 09 Dec 2011 14 46 To: Tomcat Users List Subject: RE: Tomcat memory allocation

RE: Tomcat memory allocation

2011-12-09 Thread Daniel Mikusa
On Fri, 2011-12-09 at 06:52 -0800, Martin O'Shea wrote: Thanks for this Chuck. I realise now what is happening. I thought the PermGen space was used in the heap when now I see it as just storing class definitions. So I could reduce it below 128Mb if I choose. Is there a default value? This is

RE: Tomcat memory allocation

2011-12-09 Thread Caldarale, Charles R
From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation But if I change the settings in catalina.bat to: Don't make changes to catalina.bat; create a setenv.bat to hold all your local settings. set CATALINA_OPTS=%CATALINA_OPTS% -Xms128m -Xmx768m

RE: Tomcat memory allocation

2011-12-09 Thread Martin O'Shea
Sorry to belabour this but if I create a setenv.bat file with settings: set CATALINA_OPTS=%CATALINA_OPTS% -Xms128m -Xmx768m -XX:MaxPermSize=128m where should the file go and does it need to be called from anywhere? -Original Message- From: Caldarale, Charles R

RE: Tomcat memory allocation

2011-12-09 Thread Caldarale, Charles R
From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation Sorry to belabour this but if I create a setenv.bat file with settings: set CATALINA_OPTS=%CATALINA_OPTS% -Xms128m -Xmx768m -XX:MaxPermSize=128m where should the file go and does it need to be called

RE: Tomcat memory allocation

2011-12-09 Thread Martin O'Shea
I should add that Tomcat is running as a Windows service, it isn't started manually. -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: 09 Dec 2011 15 29 To: Tomcat Users List Subject: RE: Tomcat memory allocation From: Martin O'Shea

RE: Tomcat memory allocation

2011-12-09 Thread Caldarale, Charles R
From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation I should add that Tomcat is running as a Windows service, it isn't started manually. In that case, nothing that we've been discussing about JAVA_OPTS, CATALINA_OPTS, startup.bat, catalina.bat, and

Re: Tomcat memory allocation

2011-12-09 Thread André Warnier
Martin O'Shea wrote: I should add that Tomcat is running as a Windows service, it isn't started manually. Then the .bat files are not used. Call up the tomcat?w.exe program, and edit the settings in the Java tab. -Original Message- From: Caldarale, Charles R

Re: Tomcat memory allocation

2011-12-09 Thread David kerber
On 12/9/2011 10:49 AM, Caldarale, Charles R wrote: From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation I should add that Tomcat is running as a Windows service, it isn't started manually. In that case, nothing that we've been discussing about JAVA_OPTS,

RE: Tomcat memory allocation

2011-12-09 Thread Martin O'Shea
This gets weirder. I believe I should be looking in the Windows Registry under: HKEY_LOCAL_MACHINE SOFTWARE Apache Software Foundation Procrun 2,0 But I have no such settings. I simply have: (Default) InstallPath Version But I have: JvmMS (set to 128) jvmMX (set to 256)

RE: Tomcat memory allocation

2011-12-09 Thread Caldarale, Charles R
From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation I believe I should be looking in the Windows Registry DO NOT edit the Windows registry - you will break something. Use the tomcat?w.exe utility; that's what it's for. - Chuck THIS COMMUNICATION MAY

Re: Tomcat memory allocation

2011-12-09 Thread André Warnier
David kerber wrote: On 12/9/2011 10:49 AM, Caldarale, Charles R wrote: From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation I should add that Tomcat is running as a Windows service, it isn't started manually. In that case, nothing that we've been

Re: upgrading from 6.0.20 to 6.0.35

2011-12-09 Thread Hassan Schroeder
On Thu, Dec 8, 2011 at 11:13 PM, Pid * p...@pidster.com wrote: Yes, but we still usually recommend starting afresh each time. It should relatively simple, just make a backup copy of each file you edit, first. Somewhat OT, but I would like to recommend git (http://git-scm.com/) as the

Re: Multiple Tomcats on the Machine

2011-12-09 Thread Mark Eggers
- Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, December 9, 2011 6:58 AM Subject: Re: Multiple Tomcats on the Machine On 09/12/2011 11:54, Alexander Diedler wrote: Hello We have three instances of Tomcat on a

Tomcat 6.0 configuration with Adobe LiveCycle DS ES 3.0 Server

2011-12-09 Thread Anshul Asthana
 Hi,      I want to Configure my Web Server(Tomcat 6.0) so that it can communicate with Adobe LiveCycle DS ES 3.0 Server. I want to know how I can configure my WebServer Tomcat 6.0. for this.   Your early response will be appreciated.   Thanking You, Anshul Asthana

Re: Tomcat 7 Valve not logging correct response size

2011-12-09 Thread Antonios Kogias
On 12/5/2011 9:29 AM, Konstantin Kolinko wrote: 2011/12/5 Antonios Kogiasco...@hua.gr: Good morning, I'm using Tomcat 7.0.16 and a Valve in the server.xml file that uses the %B option to log the Bytes sent, excluding HTTP headers (http://tomcat.apache.org/tomcat-7.0-doc/config/valve.html).

Tomcat Silently Dies and then Won't Restart -- Error 1067

2011-12-09 Thread Robinson, Eric
Tomcat 6 on our Windows 2003 R2 x64 server runs fine for a day or two, then silently dies without leaving any messages in the log files. Then when we try to restart it, we get a Windows error 1067 and the service will not start. We have to reboot the whole server and then tomcat will work fine

Re: Tomcat Silently Dies and then Won't Restart -- Error 1067

2011-12-09 Thread Francis GALIEGUE
On Fri, Dec 9, 2011 at 21:33, Robinson, Eric eric.robin...@psmnv.com wrote: Tomcat 6 on our Windows 2003 R2 x64 server runs fine for a day or two, then silently dies without leaving any messages in the log files. Then when we try to restart it, we get a Windows error 1067 and the service will

RE: Tomcat 7 Valve not logging correct response size

2011-12-09 Thread Caldarale, Charles R
From: Antonios Kogias [mailto:co...@hua.gr] Subject: Re: Tomcat 7 Valve not logging correct response size Files of 1k, 10k, 25k get logged correctly, but files greater than that (50k, 75k, 100k, 1000k) are logged as size zero(0). Are you getting chunked output, by any chance? - Chuck

Tomcat xerces conflicts and Endorsed,Standards Override Mechanism

2011-12-09 Thread Warren Bell
Hello Tomcat Users, I am having a problem with xerces and other jars in the JDK or Tomcat conflicting with jars in my app. I am getting the following exception when instantiating Smooks, a csv library that usese xerces, in a web app running in Tomcat: java.lang.IncompatibleClassChangeError:

Re: Tomcat 7 Valve not logging correct response size

2011-12-09 Thread Konstantin Kolinko
2011/12/9 Antonios Kogias co...@hua.gr: On 12/5/2011 9:29 AM, Konstantin Kolinko wrote: 2011/12/5 Antonios Kogiasco...@hua.gr: Good morning,  I'm using Tomcat 7.0.16 and a Valve in the server.xml file that uses the %B option to log the Bytes sent, excluding HTTP headers

Re: Tomcat 6.0 configuration with Adobe LiveCycle DS ES 3.0 Server

2011-12-09 Thread Pid
On 09/12/2011 18:52, Anshul Asthana wrote: Hi, I want to Configure my Web Server(Tomcat 6.0) so that it can communicate with Adobe LiveCycle DS ES 3.0 Server. I want to know how I can configure my WebServer Tomcat 6.0. for this. Your early response will be appreciated. Sorry I

Re: Tomcat memory allocation

2011-12-09 Thread Pid
On 09/12/2011 16:37, André Warnier wrote: David kerber wrote: On 12/9/2011 10:49 AM, Caldarale, Charles R wrote: From: Martin O'Shea [mailto:app...@dsl.pipex.com] Subject: RE: Tomcat memory allocation I should add that Tomcat is running as a Windows service, it isn't started manually. In

Re: Tomcat 6.0 configuration with Adobe LiveCycle DS ES 3.0 Server

2011-12-09 Thread Anshul Asthana
Where can I find   j.mp/smrtqu Regards, Anshul From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, 10 December 2011 4:36 AM Subject: Re: Tomcat 6.0 configuration with Adobe LiveCycle DS ES 3.0 Server On 09/12/2011 18:52,

Re: Custom realm.authenticate() that would work with any realm - possible?

2011-12-09 Thread ohaya
André Warnier a...@ice-sa.com wrote: Hi Jim. As I recall, your original issue was that there is no OAM plugin for Tomcat, and therefore, you are doing the OAM authentication within the front-end Apache, and then passing the user-id to Tomcat. And then, you find yourself in

RE: Tomcat Silently Dies and then Won't Restart -- Error 1067

2011-12-09 Thread Robinson, Eric
Tomcat 6 on our Windows 2003 R2 x64 server runs fine for a day or two, then silently dies without leaving any messages in the log files. Then when we try to restart it, we get a Windows error 1067 and the service will not start. We have to reboot the whole server and then tomcat

RE: Tomcat Silently Dies and then Won't Restart -- Error 1067

2011-12-09 Thread Caldarale, Charles R
From: Robinson, Eric [mailto:eric.robin...@psmnv.com] Subject: RE: Tomcat Silently Dies and then Won't Restart -- Error 1067 Tomcat 6 on our Windows 2003 R2 x64 server runs fine for a day or two, then silently dies without leaving any messages in the log files. Buried somewhere in the

Re: Custom realm.authenticate() that would work with any realm - possible?

2011-12-09 Thread André Warnier
oh...@cox.net wrote: André Warnier a...@ice-sa.com wrote: Hi Jim. As I recall, your original issue was that there is no OAM plugin for Tomcat, and therefore, you are doing the OAM authentication within the front-end Apache, and then passing the user-id to Tomcat. And then, you find

Re: Custom realm.authenticate() that would work with any realm - possible?

2011-12-09 Thread ohaya
André Warnier a...@ice-sa.com wrote: oh...@cox.net wrote: André Warnier a...@ice-sa.com wrote: Hi Jim. As I recall, your original issue was that there is no OAM plugin for Tomcat, and therefore, you are doing the OAM authentication within the front-end Apache, and

Re: add and modify globalnamingresources on the fly

2011-12-09 Thread Marcelo Romulo Fernandes
I'm working with 7.0.23 - Original Message - From: Pid p...@pidster.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Friday, December 9, 2011 11:36 AM Subject: Re: add and modify globalnamingresources on the fly On 09/12/2011 12:31, Marcelo Romulo Fernandes wrote: Hi