Re: tomcat slowing down

2012-05-23 Thread George Sexton
Just out of idle curiosity, are you running in a virtual server? On 5/16/12 6:49 AM, Christian Kaufhold wrote: Hi, we have the problem that tomact is slowing down after a while until even the manager app becomes unusable. Our System: 2 Quadcores/24 GB Mem OpenSuse 11.4 tomcat 6.0.29

Re: tomcat slowing down

2012-05-23 Thread Christian Kaufhold
Hi George, No its just a plain server. I used selenium and probe to check the issue. Its definitely a Memory leak problem. I try to find the leaks now. Von meinem iPad gesendet Am 23.05.2012 um 18:42 schrieb George Sexton geor...@mhsoftware.com: Just out of idle curiosity, are you running

Re: Tomcat 7. MX4J

2012-05-23 Thread Filip Hanik Mailing Lists
http://tomcat.apache.org/tomcat-6.0-doc/config/listeners.html#JMX_Remote_Lifecycle_Listener_-_org.apache.catalina.mbeans.JmxRemoteLifecycleListener - Original Message - From: Vadzim Mikhalenak vadzim.mikhale...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday,

Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
Hi, I'm testing this functionality (versions 6.0.35 and 7.0.27) but it's not working for me (https://issues.apache.org/bugzilla/show_bug.cgi?id=49543 , http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Links). --server.xml GlobalNamingResources Resource

JRE Access violation

2012-05-23 Thread David kerber
Any suggestions as to where to start looking for this error? This is TC 7.0.22 32-bit running on Windows Server 2008R2, on a Dell Dual-processor 4-core hyperthreaded (total 16 cores according to the OS) box with 16GB RAM. Overall memory usage is approx 26% according to task Manager. There

Re: JRE Access violation

2012-05-23 Thread Mark Thomas
On 23/05/2012 21:53, David kerber wrote: Any suggestions as to where to start looking for this error? Ditch the ODBC-JDBC bridge driver and get a JDBC driver for the database you are using. The ODBC-JDBC bridge is not recommended for production use. Mark

Re: JRE Access violation

2012-05-23 Thread David kerber
On 5/23/2012 4:57 PM, Mark Thomas wrote: On 23/05/2012 21:53, David kerber wrote: Any suggestions as to where to start looking for this error? Ditch the ODBC-JDBC bridge driver and get a JDBC driver for the database you are using. The ODBC-JDBC bridge is not recommended for production use.

Re: Shared data source (Bug 49543)

2012-05-23 Thread Konstantin Kolinko
2012/5/24 Robert Anderson ranom...@gmail.com: Hi, I'm testing this functionality (versions 6.0.35 and 7.0.27) but it's not working for me (https://issues.apache.org/bugzilla/show_bug.cgi?id=49543 , http://tomcat.apache.org/tomcat-7.0-doc/config/context.html#Resource_Links). --server.xml

Re: Shared data source (Bug 49543)

2012-05-23 Thread Joao Silva
Hi The ResourceLink element will use the parameters name, global and type. Everything else is being ignored, as the resource link is but reference to the global shared data source. See http://tomcat.apache.org/tomcat-7.0-doc/config/context.html, searching for ResourceLink. Best regards On

Re: JRE Access violation

2012-05-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/23/12 5:17 PM, David kerber wrote: On 5/23/2012 4:57 PM, Mark Thomas wrote: On 23/05/2012 21:53, David kerber wrote: Any suggestions as to where to start looking for this error? Ditch the ODBC-JDBC bridge driver and get a JDBC

Re: JRE Access violation

2012-05-23 Thread Konstantin Kolinko
2012/5/24 David kerber dcker...@verizon.net: Any suggestions as to where to start looking for this error? This is TC 7.0.22 32-bit running on Windows Server 2008R2, on a Dell Dual-processor 4-core hyperthreaded (total 16 cores according to the OS) box with 16GB RAM.  Overall memory usage is

jk 1.2.36 throwing 503/sendfull/cping errors

2012-05-23 Thread Anthony J. Biacco
Centos 5.8, x86_64, apache 2.2.22, java 1.6.0_32, tomcat 7.0.27, apr 1.4.6 (also happens on another machine with apache 2.2.21 and java 1.6.0_29, rest of the versions are the same) Connecting apache to tomcat ajp, same machine. Once I upgraded to 1.2.36 I started receiving 503 errors when trying

user switching or application interacting with container based authentication

2012-05-23 Thread dirk ooms
Hello, we are running a web application with form based authentication. we now have a requirement to switch between users (for subsets of users) with a minimum of user interaction (log out and log in providing username password is way too much work for the user). so i was thinking of providing

RE: jk 1.2.36 throwing 503/sendfull/cping errors

2012-05-23 Thread Anthony J. Biacco
Centos 5.8, x86_64, apache 2.2.22, java 1.6.0_32, tomcat 7.0.27, apr 1.4.6 (also happens on another machine with apache 2.2.21 and java 1.6.0_29, rest of the versions are the same) FWIW I also tried the following combos with the same effects: tomcat 7.0.25/jni 1.1.22/apr 1.4.5 tomcat

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
Hi, Thanks guys. 1. You have to wrap all this with try/finally and invoke close() on ResultSet and Statement before calling that method on Connection (which returns it to the pool, but does not actually close it). I'd have resource leaks otherwise. Cetainly, in this code I just wanted to test

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
Hi João, This documentation also says: When the attribute factory=org.apache.naming.factory.DataSourceLinkFactorythe resource link can be used with two additional attributes to allow a shared data source to be used with different credentials. When these two additional attributes are used in

Re: user switching or application interacting with container based authentication

2012-05-23 Thread chris derham
any hint on fast-user-switching or applications-interacting-with-container-based-authentication are very welcome. Dirk, We had an app where support staff can login, and then on a special form enter the username of the person to impersonate and their own password (to prevent abuse), and the

Re: Shared data source (Bug 49543)

2012-05-23 Thread Konstantin Kolinko
2012/5/24 Robert Anderson ranom...@gmail.com: 2. You need to set alternateUsernameAllowed= true on Tomcat JDBC pool  [1] Otherwise arguments in ds.getConnection(user,password) method on that datasource are ignored. Good, I'll test it. Anyway, the following description and example in

Re: Shared data source (Bug 49543)

2012-05-23 Thread Robert Anderson
Sorry, for the wall of text. :) IIRC there is no support for getConnection(username, password) in Apache Commons DBCP pool at all, and it was a new feature in Tomcat JDBC pool at that time. Yes, it is the problem. I've lost many hours following an example in documentation about ResourceLink and

Re: JRE Access violation

2012-05-23 Thread David Kerber
On 5/23/2012 5:39 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/23/12 5:17 PM, David kerber wrote: On 5/23/2012 4:57 PM, Mark Thomas wrote: On 23/05/2012 21:53, David kerber wrote: Any suggestions as to where to start looking for this error? Ditch

Re: JRE Access violation

2012-05-23 Thread David Kerber
On 5/23/2012 6:05 PM, Konstantin Kolinko wrote: 2012/5/24 David kerberdcker...@verizon.net: Stack: [0x0cb0,0x0cc0], sp=0x0cbfea10, free space=1018k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [ntdll.dll+0x532d0]

Re: jk 1.2.36 throwing 503/sendfull/cping errors

2012-05-23 Thread Mladen Turk
On 05/24/2012 12:12 AM, Anthony J. Biacco wrote: Centos 5.8, x86_64, apache 2.2.22, java 1.6.0_32, tomcat 7.0.27, apr 1.4.6 (also happens on another machine with apache 2.2.21 and java 1.6.0_29, rest of the versions are the same) Connecting apache to tomcat ajp, same machine. Once I upgraded to

encrypt the database password

2012-05-23 Thread Bill Wang
Hi All, There is a tomcat server with some database setup. cd apache-tomcat-6.0.29/conf cat server.xml Resource auth=Container driverClassName=oracle.jdbc.driver.OracleDriver factory=oracle.jdbc.pool.OracleDataSourceFactory maxActive=20 maxIdle=10 maxWait=-1

Re: Tomcat 7. MX4J

2012-05-23 Thread Vadzim Mikhalenak
Hi, This Listener doesn't register MX4J HttpAdapter. So I wrote my Listener that do it. Now I can access MBeans through http://host:port (MX4J Page) Best regards, Vadim. On Wed, May 23, 2012 at 10:14 PM, Filip Hanik Mailing Lists devli...@hanik.com wrote: