Re: cluster error recovered?

2009-12-14 Thread Filip Hanik - Dev Lists
increase your send timeout, 3000 seconds is very aggressive, and you would have to tune away most long GC pauses to not timeout. increase your dropTimeout, it seems you're getting false positives, prolly GC again Filip On 12/11/2009 04:28 PM, Mitch Claborn wrote: tomcat 6.0.20 cluster See

Re: Can RequestDispatcher forward long-polled requests? (Comet)

2009-12-11 Thread Filip Hanik - Dev Lists
On 12/10/2009 09:10 PM, moeshroom wrote: If so, how? On BEGIN events I am storing the HttpServletRequest, HttpServletResponse, and the ServletContext associated with the request. From my MessageSender thread I am successfully able to write to my stored HttpServletResponses. But I can't

Re: Dedicated Thread Pool

2009-11-19 Thread Filip Hanik - Dev Lists
yes, if maxThreadsminSpareThreads, then threads will be killed off and the pool will shrink. and when traffic comes back, it creates new threads, with new names Filip On 11/19/2009 10:12 AM, Mohsen Saboorian wrote: Then is it normal that an executor stops and removes a thread from the pool?

Re: jdbc-pool ignoring minIdle ?

2009-11-16 Thread Filip Hanik - Dev Lists
hi Xavier, the pool is not ignoring the minIdle flag, but you have configured p.setMaxAge(43200); This means,that if a connection has been connected longer than this, next time you call con.close() it will be closed and not returned to the pool. The connection pool itself at this

Re: Tomcat Clustering

2009-11-13 Thread Filip Hanik - Dev Lists
you running into this? https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 On 11/13/2009 03:42 PM, Mate1 Subscription wrote: Hi, I have been trying to configure clustering between 2 instances of Tomcat on the same physical server. Unfortunately it is not working. Would someone be able

Re: Comet response is set to empty HTTP 200 reply by the framework problem

2009-11-10 Thread Filip Hanik - Dev Lists
200 OK is immediate, but the body is left open. meaning, the chunk is left. you can share your tcpdump and tomcat logs Filip On 11/10/2009 07:08 AM, georgi danov wrote: Hi, I have a CometProcessor servlet that receives events and queues them for processing by separate thread pool

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
hi Josh, calling Connection.close() does not close statements and resultsets. There is an interceptor you can configure called StatementFinalizer that does exactly that during the close call. Filip On 10/29/2009 07:17 PM, Josh Gooding wrote: I wrote some code on top of the Tomcat's

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
...@gmail.comwrote: AHH, I will read the API for the StatementFinalizer. I was looking at something to do that. Thank you Filip! On Fri, Oct 30, 2009 at 9:53 AM, Filip Hanik - Dev Lists devli...@hanik.com wrote: hi Josh, calling Connection.close() does not close statements

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
) {} } } } On 10/30/2009 09:54 AM, Filip Hanik - Dev Lists wrote: http://svn.apache.org/viewvc/tomcat/trunk/modules/jdbc-pool/java/org/apache/tomcat/jdbc/pool/interceptor/StatementFinalizer.java?view=log Filip On 10/30/2009 08:34 AM, Josh Gooding wrote: Hey what API

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
the statement and resultset as well. That way I can run the recycleConnection method and it will take care of everything instead of having more spaghetti code. Doing this much should increase the servers performance. On Fri, Oct 30, 2009 at 12:12 PM, Filip Hanik - Dev Lists devli...@hanik.com

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
I am making an assumption that is what it is.) On Fri, Oct 30, 2009 at 12:12 PM, Filip Hanik - Dev Lists devli...@hanik.com wrote: look at jdbc-pool.html it has all the info, here are examples out of it Configuration Resource name=jdbc/TestDB auth=Container

Re: MISC; Tomcat-5.5.12 Cluster giving Severe Error in ReplicationListener

2009-10-21 Thread Filip Hanik - Dev Lists
just upgrade to the latest version of Tomcat Filip On 10/19/2009 09:37 AM, Imad Hachem wrote: Dear all, I am using Tomcat-5.5.12 installed on Separate machines and configured as Clustered Session Replication. After stopping one of the Nodes, my Session Replication is not working very

Tomcat training at ApacheCon

2009-10-06 Thread Filip Hanik - Dev Lists
In addition to the Tomcat Track, http://us.apachecon.com/c/acus2009/schedule#tomcat , we are also putting on a 2 day Tomcat training, http://us.apachecon.com/c/acus2009/sessions/452 , It's a great track for both administrators and developers and goes above and beyond just the configuration

Re: Tomcat training at ApacheCon

2009-10-06 Thread Filip Hanik - Dev Lists
On 10/06/2009 10:55 AM, Martin Gainty wrote: sounds great..any sessions for chicago,ny,boston or dc? for ApacheCon? none planned that I know of. thanks, Martin Gainty __ Date: Tue, 6 Oct 2009 07:30:20 -0600 From: devli...@hanik.com

Re: Comet and mod_jk

2009-10-05 Thread Filip Hanik - Dev Lists
There are only two connectors in Apache Tomcat that support Comet, APR HTTP and NIO HTTP connectors. This means, if you want Apache in front of it, you would use mod_proxy_http Filip On 10/05/2009 04:39 AM, Markus Innerebner wrote: Hi all, I see that when using Mod JK (ver. 1.2.26-2) together

Re: Connection between ListenerStart and clustering

2009-10-02 Thread Filip Hanik - Dev Lists
listenerStart error will have a stack trace in another log file depending on what version of Tomcat you are using. That stack trace will take out the guess work of what actually went wrong best Filip On 10/02/2009 10:12 AM, Bocalinda wrote: Hi again, I obviously meant ListenerStart Error.

Re: Connection between ListenerStart and clustering

2009-10-02 Thread Filip Hanik - Dev Lists
Correct, not denying nor confirming. I'm informing you that your log files would tell you what the actual error is :) Filip On 10/02/2009 10:32 AM, Bocalinda wrote: Hi Filip. I'm using version 6.0.20. You are not denying that the clustering could cause a ListenerStart Error, is that correct?

Re: Comet duplicate END events

2009-10-01 Thread Filip Hanik - Dev Lists
On 09/30/2009 11:36 PM, Dan D wrote: I have the exact situation as described thoroughly here: http://www.mail-archive.com/users@tomcat.apache.org/msg66793.html wanna send us a test case? otherwise, duplicate END events should not be a big deal, easy to handle Any thoughts?

Re: Tomcat Comet and Proxy question

2009-10-01 Thread Filip Hanik - Dev Lists
On 10/01/2009 09:48 AM, Sven Eisenhauer wrote: Hello *, I have a question regarding the Comet technology in combination with a HTTP proxy. First of all, my application is working fine so far, no problems. I am using Tomcat 6.0.20 on Windows XP and 6.0.18 on Ubuntu Linux, running a

Re: what does j_security_check do in clustering?

2009-09-23 Thread Filip Hanik - Dev Lists
j_security_check is stored as a note with the user session, but that data is not being replicated. Filip On 09/17/2009 12:05 AM, Rex Wang wrote: Dear Tomcat, I meet a problem when config a web project which using the form based security in clustering. When I set session affinity = true in

Re: what does j_security_check do in clustering?

2009-09-23 Thread Filip Hanik - Dev Lists
On 09/23/2009 11:40 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 9/23/2009 10:12 AM, Filip Hanik - Dev Lists wrote: j_security_check is stored as a note with the user session, but that data is not being replicated. So, the session notes

Re: Comet high CPU usages on IoEndpoint$Poller.run()

2009-09-18 Thread Filip Hanik - Dev Lists
to closing the event. Is that necessary? Another question is that why the TIMEOUT error keeps coming every few seconds? Is it something intrinsic with the XMLHttpObject or ActiveXObject used in browser javascript or something wrong in Tomcat? Thanks! On Wed, Sep 16, 2009 at 10:14 AM, Filip Hanik - Dev

Re: Horizontal Cluster Session Persistence during Failover

2009-09-17 Thread Filip Hanik - Dev Lists
serverB is not receiving multicast packets from serverA solutions: 1. fix multicasting 2. use static memberships Filip On 09/14/2009 09:06 AM, Alexander Bacon wrote: Even though my servers are configured identically (except for jvmRoutes), they're behaving differently. If the session begins

Re: How do I get hold of Tomcat JDBC pool lib

2009-09-17 Thread Filip Hanik - Dev Lists
http://people.apache.org/~fhanik/jdbc-pool/ On 09/16/2009 09:18 AM, Gaurav Lohiya wrote: Hi, I recently heard about the new Tomcat JDBC library, an alternative for the DBCP lib. We see concurrency issues with the DBCP lib and are desperately looking for a lib which can work in a highly

Re: Comet high CPU usages on IoEndpoint$Poller.run()

2009-09-16 Thread Filip Hanik - Dev Lists
On 09/13/2009 06:51 PM, Hacking Bear wrote: On ERROR with subtype other than DISCONNECT, I just ignore it, i.e. no call to event.close() nor trying to close the streams. an error means you should always close, or you can leave a thread spinning call error over and over again, you can't hold

Re: Tomcat 6 Clustering with session replication problem

2009-09-16 Thread Filip Hanik - Dev Lists
On 09/14/2009 03:42 AM, Davy NESTOR wrote: It didn't work. I used the sessionExample.jsp page from the tomcat exemple directory. does it use serializable attributes? I go to http://serv-1/sessionExample.jsp and http://serv-2/sessionExample.jsp to check if my session if the same. Is it the

Re: Tomcat 6 Clustering with session replication problem

2009-09-13 Thread Filip Hanik - Dev Lists
did you try with path Context path= Filip On 09/10/2009 09:20 AM, Davy NESTOR wrote: Context path=/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: Comet high CPU usages on IoEndpoint$Poller.run()

2009-09-13 Thread Filip Hanik - Dev Lists
Whis is the event.close conditional when there is an error, what if you get a Comet report that says Type=CometEvent.EventType.ERROR Subtype=null ? Filip On 09/13/2009 01:25 PM, Hacking Bear wrote: } else if (event.getEventType() == CometEvent.EventType.ERROR) { final

Re: Problem with Tomcat 6 cluster

2009-09-08 Thread Filip Hanik - Dev Lists
what do your logs tell you? Filip On 09/08/2009 02:33 AM, Sumedh Sakdeo wrote: Hello All, I have a setup with two tomcat instances(AB). I have configured an apache web server 2.2 for load balancing and fail over. Setup looks fine as per the configurations suggested. Let tomcat A be

[ANN] Apache Tomcat 5.5.28 released

2009-09-03 Thread Filip Hanik - Dev Lists
The Apache Tomcat team announces (a bit late) the immediate availability of Apache Tomcat 5.5.28 stable. Apache Tomcat 5.5.28 incorporates numerous security updates and bug fixes. Please refer to the change log for the list of changes: http://tomcat.apache.org/tomcat-5.5-doc/changelog.html

Re: ServletContext.getContext() always returns when calling from root context (even with crossContext)

2009-08-28 Thread Filip Hanik - Dev Lists
invalid path path=/ try path= On 08/28/2009 02:57 AM, Jan Jonas wrote: I have a very annoying problem with tomcat 6: ServletContext.getContext() always returns null if I call the method from the root context, i.e. the context I have defined with path=/ in my server.xml. I also tried

Re: DBCP config question

2009-08-28 Thread Filip Hanik - Dev Lists
its better to see if there is a way to do it in the JDBC url itself. As soon as you set the defaultAutoCommit flag to a value, DBCP will issue a getAutoCommit and possible setAutoCommit each time you use the connection. Both calls may go back to the DB depending on how the driver implements

Re: tow instances but one webapps : possible ?

2009-08-27 Thread Filip Hanik - Dev Lists
On 08/27/2009 04:33 AM, Mark Thomas wrote: coucou78 coucou78 wrote: hello, Here we need to have two instances of Tomcat 5.0.30 running at the same time (tomcat1 , tomcat2) , for sure on differents ports, BUT those instances must have the same webapps folder. ../webapps : app1

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
what version of Tomcat, and we will get it fixed On 08/25/2009 12:22 AM, CS Wong wrote: Periodically, I'm getting problems with my Tomcat 6 cluster (2 nodes). One of the nodes would just go haywire and generate a ton of logs repeating the following: Aug 25, 2009 11:44:10 AM

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
I've taken a look at the code. The fix for this is easy, but it doesn't explain why it happens. This is a concurrency issue, but if you're not running the latest tomcat version, then it could already have been fixed. best Filip On 08/25/2009 01:55 AM, CS Wong wrote: Hi Michael, The logs are

Re: Tomcat cluster fails and generates tons of logs

2009-08-25 Thread Filip Hanik - Dev Lists
that the problem won't reoccur once this has been done. Thanks, Wong On Tue, Aug 25, 2009 at 11:35 PM, Filip Hanik - Dev Lists devli...@hanik.com wrote: I've taken a look at the code. The fix for this is easy, but it doesn't explain why it happens. This is a concurrency issue

Re: Problems with Tomcat when trying to get Jackrabbit installed

2009-08-20 Thread Filip Hanik - Dev Lists
You would have to know all the security options to define in the policy file that apply to jackrabbit, in order to run it with the security manager turned on On 08/20/2009 02:46 PM, kbar wrote: Thanks awarnier, That worked perfectly. Although I will have to hunt down why I have to disable

Re: IOException with Tomcat Comet during write/flush

2009-08-14 Thread Filip Hanik - Dev Lists
don't clip the stack trace please, do you have the full one? On 08/14/2009 03:24 PM, Jason Ward wrote: Hello, I'm seeing IOExceptions when writing/flushing my Comet servlet OutputStream. The fist exception is difficult to pinpoint, but it seems it raises and ERROR event which ultimately

Re: IOException with Tomcat Comet during write/flush

2009-08-14 Thread Filip Hanik - Dev Lists
or at least clean it to the point where I can distribute. Hope to get that to you on Monday. As I said tho, the crux of the problem is coming from the first ioex which doesn't give me a trace... just the error event. But I'm sure you caught that from my first post.. Filip Hanik - Dev Lists wrote

Re: swallowOutput not working properly?

2009-08-14 Thread Filip Hanik - Dev Lists
On 08/14/2009 09:57 PM, Eric B. wrote: Mark Thomasma...@apache.org wrote in message news:4a85f872.7040...@apache.org... Eric B. wrote: Based on that configuration (and swallowOutput documentation) I would expect that all logging from my root context would therefor go through

Re: Tomcat 6 clustering and engine's defaulthost

2009-08-13 Thread Filip Hanik - Dev Lists
consider this, if you have engine name=x host name=h1 context path=/foo host name=h2 context path=/foo how is the cluster supposed to map replication data from one tomcat instance to another if it doesn't use the host name? :) Filip On 08/13/2009 03:55 AM, Ossi wrote: On Wed, Aug 12,

Re: swallowOutput not working properly?

2009-08-13 Thread Filip Hanik - Dev Lists
Tomcat doesn't use log4j in v6 in its standard distribution. You have to build an adapter for that Filip On 08/13/2009 12:49 PM, Eric B. wrote: Hi, I'm trying to get Tomcat to log the output each context individually in its own log file. I tried using the swallowOutput in mycontext object

Re: questions on tomcat cluster

2009-08-13 Thread Filip Hanik - Dev Lists
I'm not sure what youre pointing at here, what is not working? Filip On 08/10/2009 09:48 PM, TianJing wrote: i use the patch you send to me, it is much better than before,but it still have some problems: i must refresh the page and it could works for a few minute,then the session has gone.i

Re: swallowOutput not working properly?

2009-08-13 Thread Filip Hanik - Dev Lists
On 08/13/2009 02:09 PM, Eric B. wrote: Filip Hanik - Dev Listsdevli...@hanik.com wrote in message news:4a84706e.2040...@hanik.com... Tomcat doesn't use log4j in v6 in its standard distribution. You have to build an adapter for that I don't understand at all. Can you please

Re: NIO vs APR vs JIO connectors?

2009-08-13 Thread Filip Hanik - Dev Lists
On 08/13/2009 09:39 AM, Eric B. wrote: Hi, I've been trying to read all the threads relating to which connector is best to use HTTP (no SSL). I am planning to use Pound as an HTTP load balancer in front of Tomcat as I have no need for all the bells and whistles that Apache provides and Pound

Re: Tomcat Comet and persistent connections

2009-08-10 Thread Filip Hanik - Dev Lists
after step 4 you should call close on the CometEvent. this way, tomcat should recycle all objects and be ready for a new request. you see, otherwise the next request would become a simple READ event (where the HTTP headers would become the body) in your case, the reason you're getting an error

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
are the Tomcat machines on the same box? if yes, and this is tomcat 6.0.20, there is a regression in the tomcat code https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 If this is not the case, let us know and we can help you further Filip On 08/10/2009 05:51 AM, TianJing wrote: Hi all,

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
are on different machines, one is on the same server with apache. 2009/8/10 Filip Hanik - Dev Lists devli...@hanik.com mailto:devli...@hanik.com are the Tomcat machines on the same box? if yes, and this is tomcat 6.0.20, there is a regression in the tomcat code

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
,what should i do to solve the problem? thanks very much! 2009/8/10 Filip Hanik - Dev Lists devli...@hanik.com mailto:devli...@hanik.com so replication is actually working for you, you just have a classpath issues with how you setup your libraries. Filip On 08/10/2009 08:35

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
but totally unrelated to the actual issue he has :) Filip On 08/10/2009 10:20 AM, Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Subject: Re: questions on tomcat cluster actually, your classpath is probably good. Its in the way the system loads its

Re: questions on tomcat cluster

2009-08-10 Thread Filip Hanik - Dev Lists
On 08/10/2009 10:20 AM, Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Subject: Re: questions on tomcat cluster actually, your classpath is probably good. Its in the way the system loads its classes. Not true - jre/lib is loaded by the bootstrap

Re: Tomcat 6 shutdown hangs server when using JDK 6.0_15

2009-08-10 Thread Filip Hanik - Dev Lists
if you entire server dies, then it sounds more hardware related, could be software triggered, but no, tomcat shouldn't kill your system :) Filip On 08/10/2009 02:57 PM, Dan Denton wrote: Hello all. I'm running an RHEL 4 server on a VMware VM hosting tomcat 6, using JDK 6.0_15. When I

Re: Console Output Not Going Anywhere

2009-08-09 Thread Filip Hanik - Dev Lists
swallowOutput=true multiple times in myContext tag. Sorry, I should have mentioned that. Yes, I've tried it both ways, multiple times. BTW, is that something new in Tomcat6? I've never seen it before now. Filip Hanik - Dev Lists wrote: did you set swallowOutput=true in conf

Re: Console Output Not Going Anywhere

2009-08-08 Thread Filip Hanik - Dev Lists
that. Yes, I've tried it both ways, multiple times. BTW, is that something new in Tomcat6? I've never seen it before now. Filip Hanik - Dev Lists wrote: did you set swallowOutput=true in conf/context.xml? Filip On 08/07/2009 07:01 PM, Allen Williams wrote: I'm trying to get Tomcat 6 up

Re: Console Output Not Going Anywhere

2009-08-07 Thread Filip Hanik - Dev Lists
did you set swallowOutput=true in conf/context.xml? Filip On 08/07/2009 07:01 PM, Allen Williams wrote: I'm trying to get Tomcat 6 up and working; didn't have this problem on 5. The code: System.err.println does not print to the log files. With this logging.properties:

Re: use comet on tomcat

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 04:23 AM, zhang99 wrote: 1. in order to use comet in tomcat, i need implement CometProcessor .does that mean my application will be depending on tomcat in order to run since i use the org.apache.catalina.* library? in this case, i will not able to port to other application server

Re: Right way to close database connection pool

2009-08-05 Thread Filip Hanik - Dev Lists
you would need to listen for context destroyed, and cast the datasource to call close() on it Filip On 08/05/2009 10:43 AM, Kirill Ilyukhin wrote: I use database connection pool which is described in webapp's META-INF/context.html: Context Resource auth=Container scope=Unshareable

Re: Right way to close database connection pool

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 11:35 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 8/5/2009 1:05 PM, Filip Hanik - Dev Lists wrote: you would need to listen for context destroyed, and cast the datasource to call close() on it When Tomcat re-deploys

Re: Right way to close database connection pool

2009-08-05 Thread Filip Hanik - Dev Lists
and if you don't want to depend on a specific implementation, use reflection On 08/05/2009 11:10 AM, Mark Shifman wrote: I do it in a contextListener. something like this: public void contextDestroyed(ServletContextEvent event) { Context initContext = new

Re: Trailer header and tomcat

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 02:14 PM, Keyur Shah wrote: Tomcat by default sends chunked responses = Transfer-Encoding:chunked I'm calculating the ETag for the response dynamically as the content is being written to the response stream. Since I'll know the final value of the ETag only when the stream is

Re: Documentation error for BackupManager mapSendOptions?

2009-08-05 Thread Filip Hanik - Dev Lists
On 08/05/2009 01:07 PM, John Shields wrote: In the configuration reference [1] and in numerous examples, it's stated that the default map send options mode for the BackupManager is 6 (asynchronous). In looking at the source code (6.0.18) it does appear that 6 is the default value: private

Re: Tribes

2009-08-03 Thread Filip Hanik - Dev Lists
another. Can you do the write up of an article on how to do this? I understand your valuable time and I volunteer to do an article on tribes for messaging but only if I understand? Can you help please? Filip Hanik - Dev Lists wrote: that is cause *one* of my flaws as a developer is that I'm

Re: java.util.logger

2009-07-29 Thread Filip Hanik - Dev Lists
On 07/28/2009 04:42 AM, Geofrey Rainey wrote: auth.DatasourceLoginModule.handlers = 1lm.org.apache.juli.FileHandler add auth.DatasourceLoginModule.level = FINEST - To unsubscribe, e-mail:

Re: Unlock accept issue

2009-07-28 Thread Filip Hanik - Dev Lists
or open a bug report @ https://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%206 Filip On 07/28/2009 11:10 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcin, You may have better luck posting this to the tomcat-dev mailing list

Re: Clustering help

2009-07-17 Thread Filip Hanik - Dev Lists
correct, you're members are not discovering each other. and its purely multicast related. what do you get when you do ping 224.0.0.1 Filip On 07/16/2009 05:16 PM, Mitch Claborn wrote: Not having much luck getting a simple cluster to work. Using nginx as a front end/load balancer against

Re: Clustering help

2009-07-17 Thread Filip Hanik - Dev Lists
224.0.0.1 (224.0.0.1) 56(84) bytes of data. 64 bytes from 192.168.3.254: icmp_seq=1 ttl=255 time=0.895 ms 64 bytes from 192.168.3.254: icmp_seq=2 ttl=255 time=0.693 ms 64 bytes from 192.168.3.254: icmp_seq=3 ttl=255 time=0.686 ms Mitch Filip Hanik - Dev Lists wrote: correct, you're members

Re: Clustering questions

2009-06-30 Thread Filip Hanik - Dev Lists
Mitch Claborn wrote: I'm investigating to set up my first Tomcat cluster and have some questions. 1. Using a SimpleTcpCluster, it looks like session information is replicated to all members of the cluster. If all members of the cluster go down at once, is the session information lost? Can a

Re: tomcat hang when start with service tomcat start

2009-06-30 Thread Filip Hanik - Dev Lists
are you using a mounted network drive? Filip Caldarale, Charles R wrote: From: zhicheng wang [mailto:zcwli...@hotmail.co.uk] Subject: RE: tomcat hang when start with service tomcat start main prio=10 tid=0x08059000 nid=0x1b5c runnable [0xb749e000] java.lang.Thread.State: RUNNABLE at

Re: Help with Layer 7 LB and Tomcat

2009-06-25 Thread Filip Hanik - Dev Lists
since you're using HTTP:80 on Tomcat, I would configure it this way Connector port=80 proxyPort=443 protocol=HTTP/1.1 SSLEnabled=false secure=true scheme=https/ this should make it work Filip Vinicius Carvalho wrote: Hello there! We are adding a new server to our park, and now we

Re: Tomcat and Salesforce Issue

2009-06-25 Thread Filip Hanik - Dev Lists
define fails to connect when invoked very little information about your actual error in your email Filip Jamz_2010 wrote: Hi all, I have a web service setup on tomcat 5.5 that connects to Salesforce.com through a web service call. This works fine and dandy but after it has been left overnight

Re: How does one control what the path is on the JSESSIONID cookie?

2009-06-23 Thread Filip Hanik - Dev Lists
John Caron wrote: Tomcat 6.0.18 automatically adds the session cookie like: Set-Cookie: JSESSIONID=6D839FF3B960947CC6FD41B98CD02E0D; Path=/thredds How can I change the path part of the cookie? the only thing you can do is set it to empty, by using emptySessionPath. Filip thanks...

Re: apache-tomcat-jdbc-1.0.4 Multiple Resources

2009-06-22 Thread Filip Hanik - Dev Lists
most likely because you mispeled initialSize Filip rogerhb wrote: Using the 1.0.4 version of the tomcat jdbc pool, I defined two resources. It seems that the there is interaction between the two resource defined within the jdbc pool. Upon initialization the following item is logged: Jun 22,

Re: Tomcat Comet and threading?

2009-06-19 Thread Filip Hanik - Dev Lists
You can do the actions on the worker thread or on your on thread. You can read non blocking when you receive a READ event by calling available()0 before you do a read. Writes are blocking when the TCP send buffer fills up, just like a regular servlet Filip Chris Markle wrote: Say I am

Re: DBCP connection pool exhausted, can I trace borrowed connnections from pool?

2009-06-17 Thread Filip Hanik - Dev Lists
set properties removeAbandoned=true removeAbandonedTimeout=60 logAbandoned=true This will expire leaked connections and print out the stack trace from where they were acquired. Filip Arrowx7 wrote: Using mysql JDBC driver. Somewhere in the appilcation, the connections are drawn from the

Re: Tomcat window appears briefly, does not startup - Windows XP

2009-06-16 Thread Filip Hanik - Dev Lists
run CATALINA_HOME/bin/catalina.bat run and no new window will be created Filip Rucker, Timothy wrote: Startup.bat in CATALINA_HOME/bin runs without error, but Tomcat does not startup Tim Rucker Professional Services Americas Teradata * E-Mail: timothy.ruc...@teradata.com

Re: Comet error state always happen--why?

2009-06-15 Thread Filip Hanik - Dev Lists
most likely your client is closing your connection due to inactivity, nothing you can do about it you would do setTimeout(Long.MAX_VALUE) if you want a really long timeout, I'm not sure -1 is a valid value Filip stang wrote: Hi there, I'm trying to test out Tomcat's comet support by

Re: Tomcat cluster on Windows 7 RC

2009-06-15 Thread Filip Hanik - Dev Lists
you could be running into this regression https://issues.apache.org/bugzilla/show_bug.cgi?id=47308 if you are using 6.0.20, otherwise you may not have multicasting configured Filip Sergey Elin wrote: Hi, I'm trying to setup a simple 2-node tomcat cluster on Windows 7 RC. Everything works fine

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-12 Thread Filip Hanik - Dev Lists
Rainer Jung wrote: On 12.06.2009 02:57, Filip Hanik - Dev Lists wrote: Rainer Jung wrote: On 10.06.2009 22:57, Filip Hanik - Dev Lists wrote: this is because apache a2 only has routes for td201 and td202... but not td101... therefore it doesn't know how to handle td101

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-11 Thread Filip Hanik - Dev Lists
Rainer Jung wrote: On 10.06.2009 22:57, Filip Hanik - Dev Lists wrote: this is because apache a2 only has routes for td201 and td202... but not td101... therefore it doesn't know how to handle td101. why don't you setup all four routes for a1 and a2. then use the mod_proxy_balancer

Re: Consequences of Reusing Clustered JSESSIONID

2009-06-10 Thread Filip Hanik - Dev Lists
this is because apache a2 only has routes for td201 and td202... but not td101... therefore it doesn't know how to handle td101. why don't you setup all four routes for a1 and a2. then use the mod_proxy_balancer lbset variable to set a preferred route, and problem will be solved Filip

Re: How Can I integrate tomcat6 cometprocessor + apache2.2 (load balancing)

2009-06-03 Thread Filip Hanik - Dev Lists
using apache with blocking threads and tomcat with comet is somewhat a contradiction. use a regular servlet to achieve what you want Filip redmoon wrote: Nice to meet you. I am trying to integrate tomcat6 and apache2.2 for load balancing. I tested connecting tomcat6 and apache2.2 (not nio)

Re: What is a typical Comet event flow, with multiple READ events?

2009-06-03 Thread Filip Hanik - Dev Lists
When a browser is a client, you typically don't have multiple read events. Filip Pieter Fibbe wrote: Hi, I have been trying to write a Comet webapp, but it's not totally clear to me when and how CometEvents are exactly triggered. According to the documentation a typical life cycle of a Comet

Re: ServletContextAttributeListener and a cluster

2009-06-03 Thread Filip Hanik - Dev Lists
Robbert-Jan Roos wrote: Hi, We've been playing around with the DistributedContext, and setAttribute getAttribute works perfectly. I was wondering if it is possible to get a distributed ServletContextAttributeListener. So when we do setAttribute(foo, bar) on cluster node1 I would like to

Re: NIO Connector: Possible key leak

2009-05-27 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, (I have no idea why my messages are getting messed-up... apologies for the empty messages... I swear I'm sending whole messages!) During performance testing, I got the following warnings in catalina.out. I'm using

Re: NIO Connector: Possible key leak

2009-05-27 Thread Filip Hanik - Dev Lists
- Hash: SHA1 Filip, On 5/27/2009 8:45 AM, Filip Hanik - Dev Lists wrote: Christopher Schultz wrote: These are the warnings I received: May 23, 2009 5:03:20 AM org.apache.tomcat.util.net.NioBlockingSelector$KeyReference finalize WARNING: Possible key leak, cancelling key in the finalizer

Re: NIO Connector: Too many open files

2009-05-22 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, On 5/21/2009 12:34 PM, Filip Hanik - Dev Lists wrote: hi Christopher, generally, ulimit -n 1024 is too low for any kind of web server. Fair enough, but I'm not putting an unreasonable load on my server

Re: NIOConnector and high memory consumption

2009-05-21 Thread Filip Hanik - Dev Lists
hi Sagi, are you referring to the Http11NioProcessor objects? If so, you should be able to configure the cache size when connections are released. So you could also use maxKeepAliveRequests to limit it do you have the memory dump available? Filip sagi tomcat wrote: Hello, I am using Tomcat

Re: NIOConnector and high memory consumption

2009-05-21 Thread Filip Hanik - Dev Lists
, the processor is doing nothing (reference in kept in the connections map, socket state is LONG), consuming memory and not returned to the cache. On Thu, May 21, 2009 at 5:12 PM, Filip Hanik - Dev Lists devli...@hanik.com wrote: hi Sagi, are you referring to the Http11NioProcessor objects? If so

Re: NIO Connector: Too many open files

2009-05-21 Thread Filip Hanik - Dev Lists
hi Christopher, generally, ulimit -n 1024 is too low for any kind of web server. And there was also a file descriptor leak in the NIO connector, fixed in http://svn.apache.org/viewvc?rev=734454view=rev this is when Tomcat NIO serves up static content. Filip Christopher Schultz wrote:

Re: Tomcat Cluster issue

2009-05-08 Thread Filip Hanik - Dev Lists
my guess is that when you store a hibernate object in your session, it doesn't transfer well, Filip dhanesh kk wrote: List, I am trying a transparent failover cluster with 2 separate TC-6.0.8 nodes with a apache2.2 node as LoadBalancer with mod_proxy_ajp JDK 1.5.0_15 and platform

Re: Session Replication problem

2009-05-08 Thread Filip Hanik - Dev Lists
no all operating systems support a bind address for multicast sockets socket = new MulticastSocket(new InetSocketAddress(address,port)); Filip sudhakar p wrote: Hi I am trying to configure Clustering/Session Replication in Tomcat 6.0.18 and am getting this message when I start the tomcat

Re: Session Replication problem

2009-05-08 Thread Filip Hanik - Dev Lists
instead. Filip sudhakar p wrote: Hi Filip, Thanks for your reply My server OS is Linux Red Hat Enterprise Linux Server release 5.3 which will be support MULTICAST. Please help to fix the problem Thanks in Advance Raju On Fri, May 8, 2009 at 8:50 AM, Filip Hanik - Dev Lists devli

Re: Database pooling prob

2009-05-02 Thread Filip Hanik - Dev Lists
if the client and the server are on the same machine, you would get two lines in the netstat output TCP[::1]:80 Michael:50522 ESTABLISHED TCP[::1]:50522Michael:http ESTABLISHED one line is for the server connection, and the other one is for

Re: jk's Chunk length too large message

2009-05-01 Thread Filip Hanik - Dev Lists
means the data doesn't fit in the AJP package. You can configure the size of the AJP package, has to be configured on both httpd and tomcat. look for max_packet_size in http://tomcat.apache.org/connectors-doc/reference/workers.html and look for |packetSize in

Re: possible to monitor cxn accept queue in NIO?

2009-04-30 Thread Filip Hanik - Dev Lists
acceptCount controls a TCP stack parameter for a backlog. The only way to monitor the backlog, would be to use tools for your operating system that let you introspect the TCP information the stack implementation provides so that is one level of an accepted connection, accepted by the OS, but

Re: Apache Tribes: does anything actually use securePort

2009-04-29 Thread Filip Hanik - Dev Lists
Hi Bill, it's not yet implemented. So having the setting in the API, lets us do the implementation. But NIO/SSL is generally a pain in the neck, so I haven't gotten around to it yet if you wish to contribute, please let us know Filip william.m.sm...@gmail.com wrote: I am trying to figure out

Re: sample java application to test session replication in transparen failover cluster

2009-04-29 Thread Filip Hanik - Dev Lists
Googling Tomcat cluster will yield plenty of examples Filip dhanesh kk wrote: Thanks for the information. P On Wed, Apr 29, 2009 at 2:27 PM, Pid p...@pidster.com wrote: dhanesh kk wrote: Hi Does any one have a sample java web application to share to test a transparent

Re: Session Replication problems

2009-04-27 Thread Filip Hanik - Dev Lists
we'd need the entire stacktrace, not just a snippet for it to be helpful to us. Filip Mohamedin wrote: Dear All, I use these configuration to enable session replication: Master server: Engine name=Catalina defaultHost=localhost jvmRoute=master Cluster

Re: Fwd: username/password being logged in clear text

2009-04-23 Thread Filip Hanik - Dev Lists
Tomcat doesn't print any usernames passwords to any logfiles. So most likely, your application is what is causing it. Filip jithu mada wrote: -- Forwarded message -- From: jithu mada jithu.m...@gmail.com Date: Wed, Apr 22, 2009 at 5:38 PM Subject: username/password being logged

Re: Replication Stops Overnight

2009-04-11 Thread Filip Hanik - Dev Lists
sounds like a 'stale connection'. what I would do first, is to turn off keep alive look up keepAliveCount and keepAliveTime in http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-sender.html Filip Theparanoidone Theparanoidone wrote: Greetings, We are using tomcat6 cluster in two

<    1   2   3   4   5   6   7   8   9   10   >