Re: [Tomcat JDBC Pool] Close pooled connections via JMX

2012-03-10 Thread Filip Hanik - Dev Lists
On 3/3/2012 10:50 AM, Brooke Hedrick wrote: On Mar 3, 2012 11:48 AM, Brooke Hedrickbrooke.t.hedr...@gmail.com wrote: On Mar 3, 2012 11:35 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Brooke Hedrick [mailto:brooke.t.hedr...@gmail.com] Subject: Re: [Tomcat JDBC Pool] Close

Re: What is the best way to view Tomcat JDBC pool properties in Tomcat 6?

2012-03-10 Thread Filip Hanik - Dev Lists
cast it to java.sql.Connection On 3/8/2012 4:29 AM, hodgesz wrote: Yes you are correct we are creating the pool in Spring configuration as it is more natural for our application, but the only problem we see now is once we upgraded to 7.0.26 we see the following exception in the logs when

Re: Using Tomcat7 JDBC Connection Pool

2012-02-13 Thread Filip Hanik - Dev Lists
Here is an example String query = BEGIN DBMS_LOCK.sleep(seconds = 5.01); END; It is pretty obvious that you can't do SELECT 1; SELECT 1; is this would result in TWO result sets. But you can create a block and execute any number of instructions The above example executes a stored procedure.

Re: Apache tribes deserialization issues

2012-01-09 Thread Filip Hanik - Dev Lists
your workaround is valid I would not expect thread context class loader to work, as the thread for deserializing is the thread from the tribes TCP thread pool On 12/29/2011 5:06 AM, Madhav Bhargava wrote: Hi All, We are using Apache tribes library for presence and inter node communication

Re: Session replication fails with Member send is failing

2011-12-08 Thread Filip Hanik - Dev Lists
On 12/7/2011 9:04 AM, Jürgen Link wrote: Caused by: org.apache.catalina.tribes.RemoteProcessException: Received a failedack:org.apache.catalina.tribes.transport.Constants.FAIL_ACK_DATA sure thing, this is actually telling the sender that an exception happened on the receiver end. Take a look

Re: Antw.: how to properly configure tomcat 7 cluster with BackupManager

2011-12-01 Thread Filip Hanik - Dev Lists
http://www.datadisk.co.uk/html_docs/java_app/tomcat6/tomcat6_clustering.htm http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html On 10/27/2011 9:29 AM, juergen.l...@gmail.com wrote: Hi Mark, thanks a lot for this

Re: Securing Tomcat cluster communication

2011-11-23 Thread Filip Hanik - Dev Lists
On 10/6/2011 8:31 AM, Afkham Azeez wrote: I had a look at the Tribes code. Can somebody please explain how Channel.SEND_OPTIONS_SECURE works? not yet implemented :( From the JavaDoc: SEND_OPTIONS_SECURE - Message is sent over an encrypted channel How is this encrypted channel setup? How do

Re: Securing Tomcat cluster communication

2011-11-23 Thread Filip Hanik - Dev Lists
Yes, that way you could encrypt your data packets and not worry about the wire protocol. the placement of the interceptor will be important, so that you don't encrypt packets you don't need to (like ping and failure detection) Filip On 11/23/2011 10:53 AM, Afkham Azeez wrote: On Wed, Nov 23,

Re: Cluster - No faulty members identified

2011-11-18 Thread Filip Hanik - Dev Lists
remove bind=172.30.5.77 Filip On 11/4/2011 6:41 AM, Alexander Diedler wrote: Hello @ll, I have two Tomcat instances (6.0.32 x64 on Windows) on the same server. Both servers make their own clustering with the other physical node independent from each other on the same machine. I get during

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Filip Hanik - Dev Lists
most likely you have GC running all the time http-bio-80-exec-107 daemon prio=10 tid=0x2aaab31ea000 nid=0x47b2 runnable [0x436ab000] java.lang.Thread.State: RUNNABLE at java.util.HashMap.get(HashMap.java:303) at sae.HTMLEncoder.encode(HTMLEncoder.java:46) this should not be a stage

Re: Problem with threads in stage Service (Tomcat 7.0.14)

2011-07-28 Thread Filip Hanik - Dev Lists
that's an academic exercise for you, in the meantime, add in this option to your startup options -XX:-DisableExplicitGC Filip On 7/28/2011 1:07 PM, Alejandro Henao González wrote: I dont believe that have GC running all the time, but the GC is called in the above line to HTMLEncoder.encode.

Re: Comet over HTTPS: END event recieved immeidately for the first few times

2011-07-14 Thread Filip Hanik - Dev Lists
this helps you understand the scenario better. Thanks, Sudeep -Original Message- From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Sent: Wednesday, July 13, 2011 1:43 PM To: Tomcat Users List Subject: Re: Comet over HTTPS: END event recieved immeidately for the first few times

Re: Comet over HTTPS: END event recieved immeidately for the first few times

2011-07-13 Thread Filip Hanik - Dev Lists
-Original Message- From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Sent: Sunday, July 10, 2011 8:12 PM To: Tomcat Users List Subject: Re: Comet over HTTPS: END event recieved immeidately for the first few times try the latest version of Tomcat 6, if that doesn't work, provide a test

Re: Tomcat Pool and XA datasource

2011-07-13 Thread Filip Hanik - Dev Lists
you've misconfigured it. the driverClassName would have to be a driver. Using XA data sources needs to create the datasource for those connections first. There is an example towards the bottom of http://www.tomcatexpert.com/blog/2010/04/01/configuring-jdbc-pool-high-concurrency Filip On

Re: Comet over HTTPS: END event recieved immeidately for the first few times

2011-07-10 Thread Filip Hanik - Dev Lists
try the latest version of Tomcat 6, if that doesn't work, provide a test case so we can take a look at it On 7/8/2011 4:07 PM, Sudeep Pradhan wrote: Any insights on this? -Original Message- From: Sudeep Pradhan [mailto:pradh...@vmware.com] Sent: Wednesday, June 29, 2011 4:54 PM To:

Re: getAllClusterSessions gives OptionalDataException

2011-07-07 Thread Filip Hanik - Dev Lists
On 6/28/2011 2:31 AM, Konstantin Kolinko wrote: 2011/6/23 Ronald Klopronald-mailingl...@base.nl: Hi, I have an exception when one on my Tomcat nodes restarts. The session are not synced and user complain about being logged out. I was running 6.0.32 and had the problem. Now I'm running a custom

Re: getAllClusterSessions gives OptionalDataException

2011-06-23 Thread Filip Hanik - Dev Lists
are there other versions of Apache Tomcat running in the same cluster? Check the logs for what members are joining the cluster, then check what version they are best Filip On 6/23/2011 10:14 AM, Ronald Klop wrote: Hi, I have an exception when one on my Tomcat nodes restarts. The session are

Re: async requests on cluster

2011-06-08 Thread Filip Hanik - Dev Lists
On 6/7/2011 3:34 PM, Mark Thomas wrote: On 07/06/2011 21:46, Seth Lenzi wrote: The isAsyncSupported() method of the SerlvletRequest object returns false when you uncomment theCluster className=org.apache.catalina.ha.tcp.SimpleTcpCluster/ element in the server.xml file (Tomcat 7.0.14).

Re: Tomcat 6 Clustering vs. Tomcat 5.5 clustering

2011-06-06 Thread Filip Hanik - Dev Lists
On 5/23/2011 6:50 AM, Martin Knoblauch wrote: Hi, while moving an application from Tomcat 5.5 to Tomcat 6 I found some differences in clustering, that I could not resolve myself: e. G. What happened to replicationMode, ackTimeout waitForAck? In TC 5.5 I had: Sender

Re: Tomcat download stream gets broken

2011-05-19 Thread Filip Hanik - Dev Lists
Looks like the client disconnected, that is a fairly normal scenario. You have to be able to handle the error if a client disconnects prior to having downloaded all the content Filip On 5/19/2011 8:46 AM, Gerardo Corro wrote: Trying gmail Hi all, I have a file download servlet running on

Re: How to close all connections in a Tomcat container db connection pool?

2011-05-16 Thread Filip Hanik - Dev Lists
in Tomcat 7 (not sure if backported to 6), you configure a Resource closeMethod=close / Filip On 5/11/2011 7:55 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 5/10/2011 7:24 PM, Dale Ogilvie wrote: The cause of the error was the db

Re: Connection pool race condition

2011-04-28 Thread Filip Hanik - Dev Lists
this is the way to go, just setup a service dependency On 4/28/2011 7:36 AM, Peter Crowther wrote: You could use Windows' service dependency management ( http://support.microsoft.com/kb/193888) to start Tomcat only after Oracle reports that it's running. This might still cause problems if

Re: Connection pool race condition

2011-04-28 Thread Filip Hanik - Dev Lists
Hanik - Dev Lists wrote: this is the way to go, just setup a service dependency On 4/28/2011 7:36 AM, Peter Crowther wrote: You could use Windows' service dependency management ( http://support.microsoft.com/kb/193888) to start Tomcat only after Oracle reports that it's running. This might

Re: Why can't Tomcat find class org.apache.tomcat.jdbc.pool DataSourceFactory?

2011-04-20 Thread Filip Hanik - Dev Lists
download tomcat-jdbc.jar from http://people.apache.org/~fhanik/jdbc-pool/ and put it in your lib directory Filip On 4/20/2011 7:38 AM, dunnlow wrote: So, I'm investigating moving away from an oracleconnectionpool and using the tomcat connection pool. I followed the myriad of examples for

Re: HttpSessionActivationListener sessionDidActivate not getting called

2011-04-08 Thread Filip Hanik - Dev Lists
did any data actually get written to /shared/httpd/tomcat_sessions It could be that there is a permission problem best Filip On 4/8/2011 1:20 PM, Aggarwal, Ajay wrote: I enabled logging, created 1 session and restarted tomcat. This is what I see in the logs. Is there anything suspicious

Re: Trouble with jdbc drivers in TC 7

2011-04-07 Thread Filip Hanik - Dev Lists
The config has changed from Resource ... param to Resource driverClassName= that could be your culprit On 4/7/2011 12:08 PM, David kerber wrote: System: Windows Server 2008 R2 Standard (64-bit) JRE: 1.6.0_24 x64 TC: 7.0.11, installed in c:\Program Files\..., so it detected an x64

Re: JDBC Pool Disconnections

2011-04-06 Thread Filip Hanik - Dev Lists
On 4/5/2011 7:31 AM, הילה wrote: name=jdbc/com/vstechnology/appname scope=Shareable type=javax.sql.Datasource url=jdbc:jtds:sqlserver://SQLServerName:1433/DBname;useCursors=false;sendStringParametersAsUnicode=false factory=org.apache.tomcat.jdbc.pool.DataSourceFactory maxActive=200 minIdle=0

Re: TomcatCluster data replication

2011-04-06 Thread Filip Hanik - Dev Lists
On 4/6/2011 1:22 PM, Jürgen Jakobitsch wrote: hi, i'm in need of data replication in a tomcat-cluster. i set up a tomcat cluster of three tomcats on a single machine with a apache (mod_jk) front that does the load balacing. everything works absolutely charming for reading requests, my trouble

Re: JDBC Pool Disconnections

2011-04-06 Thread Filip Hanik - Dev Lists
validate == connection is open and working if they are worried about performance, there is a compromise that gets you best of both worlds testOnBorrow=true validationQuery=select 1 validationInterval=3 this ensures that in a high concurrency environment, the number of validations are

Re: JDBC Pool Disconnections

2011-04-06 Thread Filip Hanik - Dev Lists
On 4/6/2011 1:54 PM, הילה wrote: I wanted to add the last string as well, but they said to forget about it.. :] and they should know best however, if disconnections will continue (there are some right now) I'll try it anyway as for the connection validation = you said that if the DB closes a

Re: No access log for AJP traffic

2011-04-06 Thread Filip Hanik - Dev Lists
Tomcat 6 http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/valves/AccessLogValve.java?annotate=1030188 Look at the invoke() method, it logs the data Tomcat 7 http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/valves/AccessLogValve.java?view=annotate Look

Re: No access log for AJP traffic

2011-04-06 Thread Filip Hanik - Dev Lists
The logging now takes place in the CoyoteAdapter http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/connector/CoyoteAdapter.java?r1=1086351r2=1086352; Filip On 4/6/2011 2:26 PM, Filip Hanik - Dev Lists wrote: Tomcat 6 http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org

Re: Tomcat hardware requirments

2011-04-05 Thread Filip Hanik - Dev Lists
On 4/5/2011 10:46 AM, bfackrell wrote: What are the hardware requirements for Tomcat 7? I looked (Google and on the Apache website) I’m just finishing a college course that taught Java technologies that interact with Tomcat but I want to know more so I’ve decided to try to build my own Tomcat

Re: Tomcat 6.0.32, Http11NioProtocol and log poll

2011-03-29 Thread Filip Hanik - Dev Lists
On 3/21/2011 10:55 AM, ar...@bca-group.com wrote: I don't think I do this but I'm double-checking. Thanks. After writing to the OutputStream, should I just close the OutputStream which seems to generate a CometEvent.CLOSE or explicitly call event.close() after closing the stream? yes,

Re: What is the right way to redirect http to https with tomcat 7 ?

2011-03-14 Thread Filip Hanik - Dev Lists
On 3/14/2011 3:46 PM, János Löbb wrote: Hi, I set up ssl using the JAVA_HOME/bin/keytool on OSX 10.6.6 - JSSE type configuration with a self-signed certificate. Modified server.xml to include a connector: Connector port=8443 protocol=org.apache.coyote.http11.Http11Protocol

Re: Cleaning up after tomcat jdbc-pool?

2011-03-09 Thread Filip Hanik - Dev Lists
On 03/07/2011 06:46 PM, Nicholas Sushkin wrote: I don't think the default pool has any glaring leaks. However, your db may. I have ran into cases when Oracle would run out of PGA memory, which cleared with tomcat restart. It may help to use connection validation feature of tomcat's new pool to

Re: SSL on Apache 6.0.18 troubles

2011-03-08 Thread Filip Hanik - Dev Lists
add SSLEnabled=true to your connector Filip On 3/8/2011 12:20 PM, Jacob Nyhart wrote: I am running Apache version 6.0.18 on a Windows 2003 server. Cannot go to 6.0.29 yet because of vendor/client requirements. I am attempting to setup SSL, but am not having any success and so I seek your

Re: Cleaning up after tomcat jdbc-pool?

2011-03-07 Thread Filip Hanik - Dev Lists
On 3/7/2011 3:48 AM, Mark Thomas wrote: On 07/03/2011 10:39, הילה wrote: I found this http://people.apache.org/~fhanik/tomcat/jdbc-pool.html that I see that it suits for tomcat 6 as well but I can't find tomcat-jdbc.jar for download, and I understood I need it to use the new pool. from where

Re: Cleaning up after tomcat jdbc-pool?

2011-03-04 Thread Filip Hanik - Dev Lists
On 03/04/2011 02:04 PM, Olivier Lefevre wrote: Thanks! But this: factory=org.apache.tomcat.jdbc.pool.DataSourceFactory is the default, I believe. Didn't you say you were using something else? is not the default. org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory is default Filip -- O.L.

Re: Cleaning up after tomcat jdbc-pool?

2011-03-03 Thread Filip Hanik - Dev Lists
hi Nicholas, where is your pool configured? In server.xml or in your application context? If it is configured in server.xml, then this is a bug, the thread should have been created with the class loader from the pool itself. If it is configured in the application context, then this simply means

Re: Cleaning up after tomcat jdbc-pool?

2011-03-03 Thread Filip Hanik - Dev Lists
On 3/3/2011 11:44 AM, Olivier Lefevre wrote: On 3/3/2011 5:17 PM, Filip Hanik - Dev Lists wrote: If it is configured in the application context, then this simply means you forgot to call DataSource.close on the connection pool when your web application is stopped. This is confusing advice

Re: Exception in hibernate3 relating to timeout

2011-02-25 Thread Filip Hanik - Dev Lists
Use a different connection pool that can properly handle your timeouts when idle. http://people.apache.org/~fhanik/jdbc-pool/ http://people.apache.org/~fhanik/jdbc-pool/jdbc-pool.html Filip On 02/24/2011 11:31 PM, abhishek jain wrote: hi, I am not sure if i am ringing the correct list, but i

Re: Wildcard SSL import from IIS 6 to Tomcat 7?

2011-02-25 Thread Filip Hanik - Dev Lists
Define not working. Do you get an error in the logs? Filip 'On 02/25/2011 10:24 AM, Carlton Whitmore wrote: I setup my SSL wildcard on IIS 6 and exported the cert file to some other IIS servers. Now I'd like to set it up on a Tomcat 7 server. This server already has a standard SSL cert

Re: Wildcard SSL import from IIS 6 to Tomcat 7?

2011-02-25 Thread Filip Hanik - Dev Lists
) -Original Message- From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Sent: Friday, February 25, 2011 11:59 AM To: Tomcat Users List Subject: Re: Wildcard SSL import from IIS 6 to Tomcat 7? Define not working. Do you get an error in the logs? Filip 'On 02/25/2011 10:24 AM, Carlton

Re: Can datasource password be changed in jdbc-pool?

2011-02-22 Thread Filip Hanik - Dev Lists
hi Nicholas, yes and no. You can change the password by simply doing DataSource ds = PoolConfiguration pcf = (PoolConfiguration)ds; pcf.setPassword(...); however, this change would only take into effect for newly created connections, and not the ones already in the pool. There is some

Re: Tomcat 7 Cluster Issue

2011-02-22 Thread Filip Hanik - Dev Lists
It can probably be fixed, there are a few references to this http://www.techienuggets.com/CommentDetail?tx=355312 https://issues.jboss.org/browse/JGRP-777 I'd have to reproduce it, so that I can fix it/work around it. I will open a bugzilla item with this In the meantime, does this still

Re: proxy:ajp 'client denied by server configuration' when too many simultaneous requests happen

2011-02-18 Thread Filip Hanik - Dev Lists
Simplest to try first is the disablereuse flag http://httpd.apache.org/docs/2.2/mod/mod_proxy.html disablereuse On and if that solves the problem, you know that the problem with not enough threads on tomcat. (Could be from stale connections that are still holding a thread) Filip On

Re: proxy:ajp 'client denied by server configuration' when too many simultaneous requests happen

2011-02-18 Thread Filip Hanik - Dev Lists
On 02/18/2011 02:42 PM, Fran Boon wrote: On 18 February 2011 20:19, Filip Hanik - Dev Listsdevli...@hanik.com wrote: Simplest to try first is the disablereuse flag http://httpd.apache.org/docs/2.2/mod/mod_proxy.html disablereuse On and if that solves the problem, you know that the problem

Re: Advantage of using HTTP NIO Connector

2011-02-17 Thread Filip Hanik - Dev Lists
On 02/17/2011 08:11 AM, Mark Thomas wrote: On 17/02/2011 14:56, Afkham Azeez wrote: Hi folks, What is the advantage of using this connector as opposed to the default one? In which scenarios would we tend to use the default connector, and in which scenarios will it be more appropriate to use

Re: Replicate session-object after values in object has been changed

2011-02-16 Thread Filip Hanik - Dev Lists
On 2/15/2011 1:04 PM, Thomas Andraschko wrote: Hmm not really but the tcp cluster with BackupManager would be enough (if it would check for modification). That can be easy, or hard :) If you know how to check for modification, then you can implement a simple filter that adds the attribute

Re: how to refresh connection pool before it gets completely busy

2011-02-07 Thread Filip Hanik - Dev Lists
What do you mean by refresh? best Filip On 2/1/2011 11:53 PM, Rhonny David wrote: Dear All, We are facing connection pool busy problem in tomcat 6.0.29. Till we finalize our investigation, we need connection pool to be refreshed before all connections get busy. Say for example if we have

Re: Problems with connections pool in Tomcat 6.0.18 6.0.20 + MySQL 5.1 + mysql-connector 5.1.x

2011-01-27 Thread Filip Hanik - Dev Lists
Add in validationQuery and testOnBorrow as seen below Resource driverClassName=com.mysql.jdbc.Driver logAbandoned=false maxActive=35 maxIdle=2 maxWait=5000 name=jdbc/TheName password=password removeAbandoned=true removeAbandonedTimeout=60

Re: Tomcat Form Authentication that requires no password for third party SSO

2011-01-27 Thread Filip Hanik - Dev Lists
You could implement your own authenticator, extending the class org.apache.catalina.authenticator.AuthenticatorBase https://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/authenticator/AuthenticatorBase.java?view=markup protected abstract boolean authenticate(Request

Re: Tomcat Form Authentication that requires no password for third party SSO

2011-01-27 Thread Filip Hanik - Dev Lists
Filip On 01/27/2011 10:56 AM, beau.hutche...@thomsonreuters.com wrote: Filip: Thanks, I'll get going on my own authenticator right quick. Does tcserver come with something like this out of the box? Beau -Original Message- From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Sent

Re: Comet and multipart

2011-01-04 Thread Filip Hanik - Dev Lists
On 1/4/2011 1:26 AM, sol myr wrote: Filip, thanks for your reply. You are correct that the server simply writes data, which we can format any way we like. However, we were wondering whether Tomcat has any utilities/configurations to make it easier. E.g: 1) If we use multipart format (to

Re: Comet and multipart

2011-01-03 Thread Filip Hanik - Dev Lists
On 1/3/2011 7:48 AM, sol myr wrote: Hi, We're implementing a CometServlet on top of Tomcat NIO connector, using long polling. Currently we're using the approach recommended by most tutorials: the client opens a connection and waits for a message (for a configured timeout); if such a message

Re: Session replication question

2010-12-23 Thread Filip Hanik - Dev Lists
make sure your clocks are synced across all machines, since session expiration is time based Filip On 12/23/2010 8:22 AM, Jorge Santiago Cruz Lambert wrote: Hi! I'm not an expert on Tomcat and we purchase a load balancer service with two tomcat 6.0.29 instances in separate Ubuntu servers

Re: Tomcat 6.0.18 related NIO questions.

2010-12-22 Thread Filip Hanik - Dev Lists
hi shrikant, there are many benefits of NIO in a tomcat 6, the main being there is no longer a thread-per-connection limit. Note in Tomcat 7, even with the blocking connector, you can have more connections than threads. The NIO connector will read your request headers in a non blocking fashion,

Re: unable to configure SSL in Tomcat 7.0

2010-12-22 Thread Filip Hanik - Dev Lists
I'd definitely consider it a bug if tomcat continues startup in HTTP mode instead, when the file is not found. Filip On 12/22/2010 3:35 PM, Pid * wrote: On 22 Dec 2010, at 18:07, Ajay TSajayts1...@gmail.com wrote: I am new to Tomcat and am trying to install Apache Tomcat 7.0.5 on Windows 7

Re: Session replication with multicast

2010-11-29 Thread Filip Hanik - Dev Lists
On 11/26/2010 06:36 AM, Guillaume HERAIL wrote: Hi, OS : Debian lenny Tomcat : 7.0.2 JRE : 1.6.0_21 I have a problem trying to clusterize two tomcat on two different boxes. I want to use the MemberShip's argument bind to tell to tomcat wich interface to use but i get an exception :

Re: Session replication with multicast

2010-11-29 Thread Filip Hanik - Dev Lists
alternatively, try to add -Djava.net.preferIPv4Stack=true to your JVM args On 11/26/2010 06:36 AM, Guillaume HERAIL wrote: Hi, OS : Debian lenny Tomcat : 7.0.2 JRE : 1.6.0_21 I have a problem trying to clusterize two tomcat on two different boxes. I want to use the MemberShip's argument

Re: Issue with clustering

2010-05-10 Thread Filip Hanik - Dev Lists
try upgrading On 05/04/2010 08:24 AM, Marc Wilmots wrote: Hi List, Since a few weeks now, I started to notice in the catalina.out log file messages regarding the cluster's operatability. It reports that a member or members in my cluster have disappeared, and appeared (member still alive)

Re: Tomcat 6.0 clustering problem with replication mode.

2010-04-14 Thread Filip Hanik - Dev Lists
The first error java.util.ConcurrentModificationException happens cause the membership changed in between. The error logs, but the system is not interrupted. The second error java.net.SocketTimeoutException: Read timed out This means the node failed to respond. This means you got a problem.

Re: Tomcat on AIX 5.3

2010-04-14 Thread Filip Hanik - Dev Lists
you'd have to figure out what takes the time. Could be anything, including a DNS timeout Filip On 04/14/2010 08:34 AM, János Löbb wrote: Hi, I installed Tomcat 6.0.26 in an IBM P6 LPAR . The java version is 1.5.0 that is equivalent to Java 5. The LPAR has 12G memory and there are two

Re: Hung threads

2010-04-13 Thread Filip Hanik - Dev Lists
Looks like just idle threads, not really a problem If you want the thread pool to shrink and stop idle threads, use an Executor element in server.xml Filip On 04/13/2010 08:50 AM, Jeffrey Janner wrote: Before someone asks for it: Connector address=172.16.27.1 port=443

Re: Tomcat NIO : CometProcessor

2010-04-02 Thread Filip Hanik - Dev Lists
:23 AM, Michael Wojcik wrote: Filip Hanik - Dev Lists wrote: I just skimmed this through, but from what I remember, the CRLF after /xml should not be counted into your chunk header No, the chunk-size is the entire length of the chunk. Since a chunked content-body can include any sort

Re: Tomcat NIO : CometProcessor

2010-03-31 Thread Filip Hanik - Dev Lists
hi Chris, if the connection is closed, most likely there is some sort of data error somewhere. Record your transaction with Wireshark, and we can examine it. Low latency http, meaning sending traffic back and forth should be possible within the body of the request Filip On 03/31/2010 07:01

Re: Tomcat NIO : CometProcessor

2010-03-31 Thread Filip Hanik - Dev Lists
something? BTW the last message(second xml) isnt examined by my servlet, there I already receive event Client_Disconnected instead of a read I expected. Let me know if you need more information. Thanks in advance Chris. Filip Hanik - Dev Lists schrieb: hi Chris, if the connection is closed

Re: Tomcat NIO : CometProcessor

2010-03-31 Thread Filip Hanik - Dev Lists
On 03/31/2010 09:29 AM, Christian Pfeiffer wrote: 31 32 Let's take a look at the data you are sending 0040 36 17 31 32 0d 0a 3c 78 6d 6c 3e 48 65 6c 6c 6f 6.12..xmlHello 0050 3c 2f 78 6d 6c 3e 0d 0a /xml.. Your Chunk header: 31 32 That represents : 12 Which means, Tomcat will expect 18

[ANN] New Tomcat Committer: Keiichi Fujino (kfujino)

2010-03-31 Thread Filip Hanik - Dev Lists
On behalf of the Tomcat committers I am pleased to announce that Keiichi Fujino (kfujino) has been voted in as a new Tomcat committer. Please join me in welcoming him. Regards, Filip - To unsubscribe, e-mail:

Re: Proposal : Enhancing docs for RemoteIpValve and RemoteIpFilter

2010-03-30 Thread Filip Hanik - Dev Lists
simply open a bugzilla ticket and attach your patch there Filpi On 03/30/2010 09:02 AM, Cyrille Le Clerc wrote: Dear all, I would be very happy to enhance the docs of the RemoteIpValve (1) and the RemoteIpFilter (2) if the project is interested. I was thinking about adding sample

Re: Session replication: Channel.SEND_OPTIONS_SECURE

2010-03-24 Thread Filip Hanik - Dev Lists
On 03/23/2010 09:46 AM, Tom wrote: On Tue, Mar 23, 2010 at 1:58 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Tom [mailto:808...@gmail.com] Subject: Session replication: Channel.SEND_OPTIONS_SECURE There is little documentation about Channel.SEND_OPTIONS_SECURE

Re: jndi global look up questions

2010-03-18 Thread Filip Hanik - Dev Lists
On 03/18/2010 07:05 AM, Caldarale, Charles R wrote: From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Subject: Re: jndi global look up questions What do you mean by global JNDI access. Judging from the example code supplied by the OP, he or she wants a kludge in Tomcat to so that

Re: question on tribes member alive time

2010-03-11 Thread Filip Hanik - Dev Lists
On 03/11/2010 01:46 AM, Eddie Hsiung wrote: Hi I'm trying to debug a vendor product which uses Apache Tribes as its cluster communication implementation. I've identified that each member of the cluster derives the master node instance using the aliveTime field of all members of the cluster.

Re: Comet event.setTimeOut Bug!! Still no answer

2010-03-10 Thread Filip Hanik - Dev Lists
once a timeslot for free support opens up, I will answer :) Filip On 03/09/2010 12:24 AM, Animesh Sonkar wrote: Hi, I am not sure why my previous mail was not answered? I hope that i will get the reply this time So here is the same query again... Was curious what

Re: ReplicationValve filter ...

2010-02-25 Thread Filip Hanik - Dev Lists
The idea behind the ReplicationValve filter is to save time and do not check for session changes for certain URL's. However, it takes about the same time to check if the session has changed as to go through the filter, so you can leaveit empty best Filip On 02/25/2010 06:43 AM, Stephane

Re: NioConnector limits and comet requests

2010-02-25 Thread Filip Hanik - Dev Lists
On 02/23/2010 10:09 PM, James Roper wrote: Hi, I'm trying to understand how the Tomcat 6.0 NIO connector handles the various limit attributes in the configuration, particularly in regards to comet requests. I've had a look at the source code, and I think I understand, but I'd like to

Re: NioConnector limits and comet requests

2010-02-25 Thread Filip Hanik - Dev Lists
On 02/25/2010 01:26 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, On 2/25/2010 12:47 AM, James Roper wrote: Is there anyone on this list with a detailed knowledge of the NIO Connector? In spite of his terse reply, Filip is, I believe, quite

Re: NioConnector limits and comet requests

2010-02-25 Thread Filip Hanik - Dev Lists
svn co http://svn.apache.org/repos/asf/tomcat/trunk On 02/25/2010 01:48 PM, Filip Hanik - Dev Lists wrote: On 02/25/2010 01:26 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 James, On 2/25/2010 12:47 AM, James Roper wrote: Is there anyone on this list

Re: Slow requests when using Executor pool

2010-02-04 Thread Filip Hanik - Dev Lists
turn off keep alive for your profiler to not give you false positives maxKeepAliveRequests=1 Connector port=8080 protocol=HTTP/1.1 maxKeepAliveRequests=1 connectionTimeout=2 redirectPort=8443 / On 02/03/2010 02:14 PM, youngm wrote: (This is a new thread

Re: Force New Connection Pool

2010-02-03 Thread Filip Hanik - Dev Lists
On 02/03/2010 08:31 AM, Dan Denton wrote: Hello all. I'd like to find a way to force my tomcat instances to get new connection pools, without stopping and starting the instances and kicking out all of my connected users. I'm using Oracle RAC with a failover service, and should one node fail,

Re: Still unable to get a heap dump from Tomcat running on Windows as a service

2010-02-02 Thread Filip Hanik - Dev Lists
set the HeapDumpPath option, so you can actually write to a location on disk On 02/02/2010 02:19 PM, Caldarale, Charles R wrote: From: Laird Nelson [mailto:ljnel...@gmail.com] Subject: Still unable to get a heap dump from Tomcat running on Windows as a service I am still unable to get Tomcat

Re: CometProcessor proxied through Apache httpd

2010-01-27 Thread Filip Hanik - Dev Lists
On 01/27/2010 08:26 AM, Stephen Byrne wrote: Is there a way to get CometProcessor to work when proxying through Apache httpd? Here is what I have tried: I have an HttpServlet implementing CometProcessor. When I have a Tomcat connector like this: Connector port=8912 protocol=HTTP/1.1

Re: AW: Comet Connection Writeable?

2010-01-25 Thread Filip Hanik - Dev Lists
have this compiled somewhere? Best regards, Steffen -Ursprüngliche Nachricht- Von: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Gesendet: Dienstag, 19. Januar 2010 15:50 An: Tomcat Users List Betreff: Re: Comet Connection Writeable? Hi Steffen, At http://svn.apache.org/viewvc

Re: Adding/removing hosts dynamically?

2010-01-21 Thread Filip Hanik - Dev Lists
answer is yes, it is possible. Others have done it successfully. If you want a place to start, take a look at host manager servlet http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/manager/host/HostManagerServlet.java?view=annotate Note, this doesn't imply that you have

Re: Can anyone do a simple war deployment in Tomcat 6?

2010-01-21 Thread Filip Hanik - Dev Lists
simplest http://tomcat.apache.org/tomcat-6.0-doc/appdev/sample/ http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html On 01/21/2010 01:41 PM, Clay McCoy wrote: I want to deploy a war file in an embedded Tomcat. There a few outdated examples, and many posts where this gets asked and

Re: Can anyone do a simple war deployment in Tomcat 6?

2010-01-21 Thread Filip Hanik - Dev Lists
an embedded Tomcat is the same as a regular Tomcat if you configure it that way. The easiest way I can think of is to take a look at the class we use to launch a simple tomcat in trunk http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/startup/Tomcat.java?view=annotate there

Re: Comet Connection Writeable?

2010-01-19 Thread Filip Hanik - Dev Lists
Hi Steffen, At http://svn.apache.org/viewvc/tomcat/sandbox/gdev6x/ I implemented the feature you are looking for. Where you would do CometEvent.interestOps(CometEvent.CometOperation.OP_WRITE); and you will receive a CometEvent.EventType.WRITE When I tried to write sample applications against

Re: SSLv3/TLS man-in-middle vulnerability

2010-01-18 Thread Filip Hanik - Dev Lists
On 01/18/2010 10:18 AM, Mark Thomas wrote: On 18/01/2010 11:03, Steve G. Johnson wrote: We recently installed Tomcat 5.5.23 in Windows server to support the Infor WebUI (webtop) application. We installed a cerificate and are using SSl on port 8443. This all works fine. The local IT

Re: NIO-connector problems (excessive CPU-usage)

2010-01-13 Thread Filip Hanik - Dev Lists
yes, the issue is known. However, we have not been able to create a use case for it, since I've never been able to reproduce it. One of the work arounds would be to close the selector, but that is a royal pain, since you'd then have to reregister all keys and you'd end up in a synchronization

Re: NIO-connector problems (excessive CPU-usage)

2010-01-13 Thread Filip Hanik - Dev Lists
(SelectorImpl.java:80) at org.apache.tomcat.util.net.NioEndpoint$Poller.run(NioEndpoint.java:1545) at java.lang.Thread.run(Thread.java:619) /Tobias -Original Message- From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Sent: den 13 januari 2010 16:13 To: Tomcat Users List

Re: More on Tomcat Sessions - limiting cluster session replication to sessions that will last longer than 'n' duration

2010-01-13 Thread Filip Hanik - Dev Lists
The sensible approach would be 1. Refactor DeltaManager and BackupManager to defer the session creation message until the request is complete 2. Then simply swap out the ReplicationValve with an implementation that makes sense Filip On 01/12/2010 11:42 AM, Robin Wilson wrote: REPOSTING

Re: Error running two tomcats in same cluster on same Windows box

2009-12-23 Thread Filip Hanik - Dev Lists
address=224.0.0.0 that's not an IP, the last 0 is not allowed, must be 1-254 Filip On 12/22/2009 05:36 PM, John Tangney wrote: We run two tomcats on the same Windows Server 2008 box. They have their server.xml tweaked so that they use unique ports. Here's a diff: $ diff server.xml

Re: Error running two tomcats in same cluster on same Windows box

2009-12-23 Thread Filip Hanik - Dev Lists
sorry, ignore previous post, it's failing on this operation: socket.setInterface(mcastBindAddress); There is a small chance that Window's doesn't allow multicast sockets to be bound to an IP try removing the bind attribute Filip On 12/23/2009 06:48 AM, Filip Hanik - Dev Lists wrote

Re: Error running two tomcats in same cluster on same Windows box

2009-12-23 Thread Filip Hanik - Dev Lists
On 12/23/2009 11:42 AM, John Tangney wrote: Thanks for your response, Filip! On Dec 23, 2009, at 6:05 AM, Filip Hanik - Dev Lists wrote: sorry, ignore previous post, Yeah, I had the same reaction to 224.0.0.0 but it works when one Tomcat is running, so I assumed it's OK. it's failing

Re: Error running two tomcats in same cluster on same Windows box

2009-12-23 Thread Filip Hanik - Dev Lists
On 12/23/2009 01:46 PM, John Tangney wrote: On Dec 23, 2009, at 12:19 PM, Filip Hanik - Dev Lists wrote: On 12/23/2009 11:42 AM, John Tangney wrote: it's failing on this operation: socket.setInterface(mcastBindAddress); There is a small chance that Window's doesn't allow multicast sockets

Re: Errors in session replication and very high server load

2009-12-20 Thread Filip Hanik - Dev Lists
Well, the log messages you see, are all based on timeouts. If your system has a load average of 12, unless you have a 12-way machine, that is very high, and could be the cause of your timeouts. You will need to figure out what is causing the high load average. Filip On 12/18/2009 01:30 AM,

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-17 Thread Filip Hanik - Dev Lists
to handle this issue by creating a proxy for the statement and resultSet. We will attach it to the bugzilla ticket as a workaround, but we think the issue should be fixed inside the jdbc-pool (it could be a fixed JdbcInterceptor). Thanks, Guillermo On Wed, Dec 16, 2009 at 12:19 AM, Filip Hanik - Dev

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-16 Thread Filip Hanik - Dev Lists
this issue by creating a proxy for the statement and resultSet. We will attach it to the bugzilla ticket as a workaround, but we think the issue should be fixed inside the jdbc-pool (it could be a fixed JdbcInterceptor). Thanks, Guillermo On Wed, Dec 16, 2009 at 12:19 AM, Filip Hanik - Dev Lists

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-15 Thread Filip Hanik - Dev Lists
On 12/15/2009 10:34 AM, Guillermo Fernandes wrote: Hi, I'm using ddlutils 1.0 and tomcat jdbc pool 1.0.7.1 and I getting an error due to a connection is closed and the pool is not aware of that. Basically the issue is that ddlutils has a resultset iterator and when it finishes it closes the

  1   2   3   4   5   6   7   8   9   10   >