Re: CometProcessor questions

2008-11-17 Thread Filip Hanik - Dev Lists
hi Franck, are you using this Bayeux impl? http://svn.apache.org/viewvc/tomcat/trunk/modules/bayeux/ or do you have your own? Filip Franck Wolff wrote: Hi, I'm developing Tomcat/Comet support for Granite Data Service (Flex clients) and I've got few questions abou

Re: Tomcat 6 cluster with Session Persistence not working :(

2008-11-17 Thread Filip Hanik - Dev Lists
inline: Manu_SF wrote: Hi, After some digging through and still not able to get it work, I thought of posting it here... Here's what I am trying to accomplish: * Have Apache as a Loadbalancer for 2 Tomcat 6 instances - All running on the same Linux box * Implement the session persistence using

Re: Tomcat 6 cluster with Session Persistence not working :(

2008-11-17 Thread Filip Hanik - Dev Lists
Manu_SF wrote: Thanks a ton, Filip. Here are the details about the 3 questions you asked. Please tell me what am I missing here? 1. distributable tag: There's no "Context" attribute in either web.xml or server.xml, but however context.xml in the same conf directory had Context tag, for which I

Re: problem with Connection pooling in tomcat 5.5

2008-11-18 Thread Filip Hanik - Dev Lists
the factory factory="oracle.jdbc.driver.OracleDriver" should not be a driver, but a factory object for a javax.sql.DataSource Filip Felix Schumacher wrote: Am Dienstag, den 18.11.2008, 23:37 +0530 schrieb Sridhar n: Hello friends, I am doing small web application ,in that I am doing con

Re: CometProcessor questions

2008-11-18 Thread Filip Hanik - Dev Lists
it only does POST, no GET messages, there is a patch pending (and one already applied) for 6.0 when it comes to comet, so testing with trunk would be best Filpi Franck Wolff wrote: Hi again, I just checked the Bayeux in Tomcat and it cannot work for me: it seems to only support GET request

Re: CometProcessor questions

2008-11-19 Thread Filip Hanik - Dev Lists
hi Franck, Franck Wolff wrote: Hi Filip, Ok, my (partly) mistake. I've missread this comment: ///GET method or application/x-www-form-urlencoded/ in BayeuxServlet.checkBayeux... Anyway, I can't change everything now and I need to read the request input stream (I'm getting AMF3 binary data),

Re: cluster configuration

2008-11-19 Thread Filip Hanik - Dev Lists
just to make sure 1. you are using 6.0.18 and 2. the IP you are trying to bind to is valid and 3. could you be using linux? this is the code that is telling you about the failure 186 : fhanik 586228 if (mcastBindAddress != null) { 187 : try { 188 : l

Re: SSL setup question

2008-11-20 Thread Filip Hanik - Dev Lists
the infinite loop is fixed in 6.0.18, the system will still not start, since the JVM you're running with doesn't support the type of cipher that you're keystore is trying to use search http://tomcat.markmail.org for the same error, it's been answered before Filip Neil B. Cohen wrote: I'm h

Re: CometProcessor questions

2008-11-20 Thread Filip Hanik - Dev Lists
Franck Wolff wrote: Hi Filip, Hum... I need a CometProcessor (long-polling) for data push, even if requests/responses are encoded in AMF3. you can do this, that's ok. Not as efficent as using send file, which you could write your own long poll servlet to do (see DefaultServlet.java how to in

Re: CometProcessor questions

2008-11-20 Thread Filip Hanik - Dev Lists
for very small responses you don't need send file, and can just write the response out to the servlet output stream on an async thread while the request thread is used to do other stuff in the contains Filip Franck Wolff wrote: I'm not doing file streaming... A typical usage of my implementati

Re: tomcat 6 clustering issue

2008-11-20 Thread Filip Hanik - Dev Lists
this message 2008-11-20 17:08:29.999 [main] [INFO] org.apache.coyote.http11.Http11Protocol - Stopping Coyote HTTP/1.1 on http-8080 tells us that you stopped the tomcat instance Filip rohit aman wrote: Hi, I have a tomcat cluster ( with tomcat 1 and tomcat 2 ) with a hardware load balanc

Re: Connectors and apache with mpm worker

2008-11-21 Thread Filip Hanik - Dev Lists
remove this worker.maintain=30 worker.worker1.connection_pool_size=1 for now, and just accept the defaults Filip Martin Spinassi wrote: Hi everyone! I'm doing some performance tests under apache and tomcat using jakarta connectors. Searching around, I've read about apache-worker (not jaka

Re: cluster configuration

2008-11-21 Thread Filip Hanik - Dev Lists
(ex); // todo, exception handling? } } } -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: November 19, 2008 5:01 PM To: Tomcat Users List Subject: Re: cluster configuration just to make sure 1. you are using 6.0.18 and 2. the IP you

Re: tomcat 6.0.18 clustering.. session getting replicated partially

2008-11-24 Thread Filip Hanik - Dev Lists
post a sample app, and we can test it out Filip rohit aman wrote: Hi, I had setup a tomcat cluster with two nodes. followed the instructions from "tomcat 6 clustering how to" document. I created a sample application to test out my cluster. This application has a cart where u can add items.

Re: tomcat 6.0.18 clustering.. session getting replicated partially

2008-11-25 Thread Filip Hanik - Dev Lists
ached one. 2)mark the web.xml in \apache-tomcat-6.0.18\webapps\examples\WEB-INF as distributable by adding tag 3)then access this by using https://localhost/examples/jsp/sessions/carts.jsp Please let me know...Thanks for doing this Rohit On Mon, Nov 24, 2008 at 6:55 PM, Filip Hanik

Re: Threadpool doesn't contain any threads

2008-11-26 Thread Filip Hanik - Dev Lists
could just be flaky jmx code, meaning we don't publish completely accurate numbers Filip Kees Jan Koster wrote: Dear Praveen, Everyday we are noticing the tomcat not responding on a port. On further inspection we noticed that the thread pool that is serving this port has no threads. Right a

Re: Tribes and IPv6 Support

2008-12-02 Thread Filip Hanik - Dev Lists
Thanks Mike, This would really be a JVM issue, and it doesn't look that promising http://x86.sun.com/thread.jspa?messageID=10274291 http://forums.java.net/jive/thread.jspa?messageID=247308 http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4640544 Filip Mike Wannamaker wrote: I'm having an is

Re: Unable to stop SimpleTcpReplicationManager

2008-12-04 Thread Filip Hanik - Dev Lists
If you are using Tomcat 6, you can also use BackupManager Filip Pieter Temmerman wrote: This problem is solved. I replaced the SimpleTcpReplicationManager by the DeltaManager and everything works as expected. On Wed, 2008-12-03 at 23:48 +0100, Pieter Temmerman wrote: Hi all, I'm having t

Re: Rogue https threads

2008-12-04 Thread Filip Hanik - Dev Lists
a simple upgrade to 6.0.18 would most likely solve your problem Filip Robert J Morman wrote: Good afternoon. We have a problem with our production tomcat server in that the CPU will climb after a restart from 1-2% to 100%. The rate of climb corresponds to the amount of traffic we receive (th

Re: tomcat gets stuck after a load for streams writing

2008-12-08 Thread Filip Hanik - Dev Lists
6.0.18 tons of bug fixes (and security) Filip Michal Singer wrote: * I see that the requests processors increase but it does not stop the stuck * The data base is slow on get connection but i checked the connections and i still have many left that can be used * i see that the active threads co

Re: Saved state has incompatible save version

2008-12-09 Thread Filip Hanik - Dev Lists
I don't think that is a Tomcat error, more likely to come from the application running inside tomcat Filip [EMAIL PROTECTED] wrote: Dear all, i got this error message in catalina.out: "FATAL ERROR: Saved state has incompatible save version" Does anybody know what this means and what causes

Re: tomcat 6.0.18 clustering.. session getting replicated partially

2008-12-10 Thread Filip Hanik - Dev Lists
dded as 7th item to the first 6 items and the 3 items we added later can not be seen) Thanks for the help rohit On Tue, Nov 25, 2008 at 10:20 AM, Filip Hanik - Dev Lists < [EMAIL PROTECTED]> wrote: you're attachment didn't go through, just post a complete example somewhere o

Re: A few clustering related doubts

2008-12-15 Thread Filip Hanik - Dev Lists
Pieter Temmerman wrote: Hi I got a Tomcat cluster set up, which is working for most applications. However, since I am experiencing some problems (See another thread of mine "Deltamanager + Session beans: Do they like eachother?"), I reread the Tomcat clustering documentation. The following are

Re: DeltaManager + Session beans: Do they like eachother?

2008-12-15 Thread Filip Hanik - Dev Lists
the DeltaManager (and BackupManager 6.0) only triggers on setAttribute/removeAttribute so this wont work Cart cart = (Cart)session.getAttribute("cart"); cart.addItem("cucumber"); the simple tcp replication manager replicates the entire session and is able to capture this scenario but that is

Re: tomcat 6 delta manager dirtyFlag

2008-12-16 Thread Filip Hanik - Dev Lists
rohit aman wrote: Hi, I have tomcat cluster setup and it's working fine. All I need to do now is to replicate the session after every request. For SimpleTcpReplicationManager

Re: TOMCAT & Win Server 2003

2008-12-16 Thread Filip Hanik - Dev Lists
you probably compiled your .class using JDK 1.6, and then you run Tomcat using JDK 1.5 Filip gen wrote: > Hi, All > > Thanks in advance, I need helps on the follows. > > I have the following problems/questions. > > 1. Is TOMCAT6 running at the platform of >Win server 2003? > 2. I faied to in

Re: How do you determine the amount of Tomcat threads in use?

2008-12-16 Thread Filip Hanik - Dev Lists
I'd say this is the best way to do it, since it gives you an accurate count. Filip Mark Stevens wrote: Hi all, Just a quick question on how to see threads in use, I have been using prstat -L -p , however I suspect this is not the correct way to do it. Thanks, Mark. ---

Re: Tomcat 6 JDBC connection not found

2008-12-22 Thread Filip Hanik - Dev Lists
here is the name you specify jdbc/my_jdbc_name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have configured the string workout_logger, and that one doesn't exist Filip arturoguedez wrote: Hi! I have been reading how to setup datasource

Re: Using precompiled JSPs

2008-12-22 Thread Filip Hanik - Dev Lists
http://people.apache.org/~fhanik/precompile.html Filip motit wrote: 1. see my ant script below 2. I didn’t change the jasper’s package name hierarchy (e.g org.apache.jsp) 3. I did update my war’s web.xml with the jspservet mapping with *.jsp 4. I have assisted by http://tomcat.ap

Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2008-12-22 Thread Filip Hanik - Dev Lists
When this happens, simply take a thread dump, and we can see why it is hanging Unix: kill -3 jstack -l Windows Ctrl+Break in the console jstack -l Filip jsandhu2204 wrote: Problem1 : While starting tomcat6, sometimes it starts other times it simply hangs on the following message: INFO:

Re: problem in getting large object in pooled database

2008-12-22 Thread Filip Hanik - Dev Lists
accessToUnderlyingConnectionAllowed="true" see exact steps here http://commons.apache.org/dbcp/configuration.html Filip ahmet temiz wrote: hello I try to develop jsf application with pooled postgresql and tomcat 6. when I try to retrieve large object, I get exception. here is the code that

Re: Tomcat 6 JDBC connection not found

2008-12-22 Thread Filip Hanik - Dev Lists
e posting. I guess I forgot to rename the in the error. other than that, do you see anything else wrong? Filip Hanik - Dev Lists wrote: here is the name you specify jdbc/my_jdbc_name and here is your error Could not find datasource:jdbc/workout_logger as you can see, somewhere you have c

Re: Tomcat 6 JDBC connection not found

2008-12-23 Thread Filip Hanik - Dev Lists
; has full access to the DB it's trying to use. Is it possible that I am missing a library or something in the classpath of tomcat? I already have the mysql connector library ( I had my DB connections working fine without datasources before, but I am trying to switch to using datasources). Tha

Re: NullPointerExceptions on startup with NIO connector

2008-12-23 Thread Filip Hanik - Dev Lists
order to address the issue :) Filip Hanik - Dev Lists wrote: yes, that is correct Alex Talis wrote: Filip, does this mean that this fix will be in 6.0.19 production release? Thanks - Original Message ---- From: Filip Hanik - Dev Lists To: Tomcat Users List Sent: Wednesday, O

Re: NullPointerExceptions on startup with NIO connector

2008-12-23 Thread Filip Hanik - Dev Lists
, Dec 24, 2008 at 11:01 AM, Filip Hanik - Dev Lists < devli...@hanik.com> wrote: already there http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/tomcat/util/net/NioEndpoint.java?r1=719262&r2=719267 Filip ssenecal wrote: Is there any chance of getting this bac

Re: Tomcat 6 JDBC connection not found

2008-12-23 Thread Filip Hanik - Dev Lists
uration.buildEntityManagerFactory(Ejb3Configuration.java:669) at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126) at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52) Filip Hanik - Dev Lists wrote: post

Re: HELP NEEDED: Https, Tomcat, Apache - Total Noob to all this

2009-01-03 Thread Filip Hanik - Dev Lists
just add the same proxy statements to your SSL virtual host Filip scurenton wrote: First off, I am sure this is probably posted somewhere but not sure what to search on. I am new to the Tomcat world so bare with me. I have a reverse proxy setup in our DMZ running Tomcat 5 and Apache 2 and an

Re: URGENT: Tomcat 4 error

2009-01-05 Thread Filip Hanik - Dev Lists
what JDK are you using? there is a good chance that adding |-Djava.net.preferIPv4Stack=true to your command line for starting tomcat, will solve the issue Filip | rajesh202023 wrote: Hi, I am getting the following error message when tomcat 4 is being run on Solaris 9 machine. It exists all

Re: Tomcat 6; getting logging to work

2009-01-07 Thread Filip Hanik - Dev Lists
have you defined 6mmi.org.apache.juli.FileHandler I don't see that in your addition Filip juan.velez wrote: I followed the directions in that link (http://tomcat.apache.org/tomcat-6.0-doc/logging.html) and my logging messages still do not show up. I mean, I see the INFO messages generated by

Re: Tribes Startup Help

2009-01-07 Thread Filip Hanik - Dev Lists
hi Mike, it all looks good. There is one side effect you may not be aware of. by default the 'receiver' autobind is enabled. that means if receiver.setPort(port) is not available, it will increment the port number and try again. so the actual port might be different from what you think you have

Re: Tomcat 6; getting logging to work

2009-01-07 Thread Filip Hanik - Dev Lists
, \ 3manager.org.apache.juli.FileHandler, 4admin.org.apache.juli.FileHandler, \ 5host-manager.org.apache.juli.FileHandler, 6mmi.org.apache.juli.FileHandler, \ java.util.logging.ConsoleHandler Filip Hanik - Dev Lists wrote: have you defined 6mmi.org.apache.juli.FileHandler I don't see th

Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-08 Thread Filip Hanik - Dev Lists
://www.nabble.com/file/p21347289/CheatSheet-Tomcat6-hangs-if-put-distributeable-tag.rtf CheatSheet-Tomcat6-hangs-if-put-distributeable-tag.rtf Filip Hanik - Dev Lists wrote: When this happens, simply take a thread dump, and we can see why it is hanging Unix: kill -3 jstack -l Windows Ctrl+Break

Re: Tomcat 6 does not start in a cluster. It simply hangs... Any Idea..

2009-01-12 Thread Filip Hanik - Dev Lists
three-times.txt Thread-dump-three-times.txt Filip Hanik - Dev Lists wrote: Could you take more than one thread dump, take 3, wait 5 seconds between each. As you can see, the startup thread is still executing your application code com.valleyoak.util.IVosTableInfo, this is the thread that star

Re: How to handle Expect: 100-continue

2009-01-13 Thread Filip Hanik - Dev Lists
if you use wireshark, you should see that Tomcat already does it automatically. if you look at the code StandardWrapperValve.java, it should call response.acknowledge(), and if the client sent an expect header, tomcat will write out the 100 continue Filip Nathan Ashworth wrote: What's the sim

Re: Clustering Dies with error.

2009-01-13 Thread Filip Hanik - Dev Lists
hi Nick, the issue in the email was caused by a dead lock in 6.0.14 and was later resolved. Upgrading to 6.0.18 should take care of the problem Filip Nick Ascione wrote: Filip, I am having the exact issue that is referred to in the link below. I have tried the recommended workarounds but I a

Re: Help: Connecting Tomcat to CA-IDMS using JDBC Type 4 Drivers (JNDI / IDMSDataSource)

2009-01-13 Thread Filip Hanik - Dev Lists
If your JDBC driver has a DataSource, then check to see if it has a javax.naming.spi.ObjectFactory implementation, this is the one you would specify in the factory="some.impl.DataSourceFactory" attribute, for example. Some drivers don't have factories, and then you simply use Tomcat's own facto

Re: How to handle Expect: 100-continue

2009-01-13 Thread Filip Hanik - Dev Lists
, it looks like Tomcat is only handling half of the POST, while it is up to to servlet to read and parse the other half. Is that the expected process when dealing with 100-continue? Filip Hanik - Dev Lists wrote: if you use wireshark, you should see that Tomcat already does it automati

Re: How to handle Expect: 100-continue

2009-01-13 Thread Filip Hanik - Dev Lists
Nathan Ashworth wrote: Thanks, Filip. Upon further investigation, we've discovered that our POSTs were bigger than the default maxPostSize value (2MB). The call to getParameter("foo") was returning null and doing a trace showed that the client was not sending the body. good catch It appears

Re: Help: Connecting Tomcat to CA-IDMS using JDBC Type 4 Drivers (JNDI / IDMSDataSource)

2009-01-14 Thread Filip Hanik - Dev Lists
you are calling this method public Connection getConnection(String username, String password) throws SQLException { throw new UnsupportedOperationException("Not supported by BasicDataSource"); } try calling DataSource.getConnection() without a username and password Filip jpma

Re: Question abut CometProcessor EventSubType.TIMEOUT semantics

2009-01-24 Thread Filip Hanik - Dev Lists
are you calling response.flushBuffer() to flush your data? that is probably what you are missing David Boreham wrote: I'm re-writing an application to use the CometProcessor interface. Generally things are working but despite several late evenings single-stepping through the connector code, I'

Re: Question abut CometProcessor EventSubType.TIMEOUT semantics

2009-01-25 Thread Filip Hanik - Dev Lists
are you able to submit a simple example, and we shall get it taken care of Filip David Boreham wrote: David Boreham wrote: Filip Hanik - Dev Lists wrote: are you calling response.flushBuffer() to flush your data? No, I was calling response.getOutputStream().flush(). I'll try your sugge

Re: Transfer all HttpSessions from one cluster node to another

2009-01-25 Thread Filip Hanik - Dev Lists
nlif wrote: Hi all, We intend to run in a cluster, with stickiness enabled, and without replication. This of course does not give us failover capabilities, in case of a server crash, but it is sufficient for our needs. However, we would like to be able to transfer all sessions currently on on

Re: Question abut CometProcessor EventSubType.TIMEOUT semantics

2009-01-26 Thread Filip Hanik - Dev Lists
David Boreham wrote: Filip Hanik - Dev Lists wrote: are you able to submit a simple example, and we shall get it taken care of Yes...but only in the parallel universe where I have loads of spare time ;) 0.18 like the people helping you for free on the mailing lists? :) Realistically it'

Re: Transfer all HttpSessions from one cluster node to another

2009-01-30 Thread Filip Hanik - Dev Lists
Filip nlif wrote: Filip, Thanks. If you could elaborate some more, then maybe I can go ahead and implement this, and I'd be happy to send you the result, so you can use it and save yourself some of the work. Naaman Filip Hanik - Dev Lists wrote: nlif wrote: Hi all, We intend t

Re: Tomcat Clustering trouble when starting up under high load

2009-01-30 Thread Filip Hanik - Dev Lists
state transfer timeout -1 is not a good setting. one should prefer to timeout rather than getting stuck, even if the timeout means we didn't get everything you may also try the backup manager, which does the state transfer in a bit smarter manner. when your system is stuck, then thread dumps

Re: Slightly OT: ApacheCon Europe 2009

2009-01-30 Thread Filip Hanik - Dev Lists
Gregor Schneider wrote: Hi Mark, knowing those conferences, I know how hard it is to get "hands on" the speaker ;) I've registered for the 3 conference days only plus tuesday hackaton. I've got actually no idea how the hackaton works, but I'm curious to meet some of you guys. So if you have a

Re: Performance of APR

2009-01-30 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: Re: Performance of APR However, I haven't seen any benchmarks comparing NIO with APR, especially when it comes to SSL SSL handling is the same for the NIO and the traditional Java connector, so APR

Re: help Comet Tomcat

2009-02-02 Thread Filip Hanik - Dev Lists
If you simply are looking for an example to use the CometProcessor interface, there is a module that is built around it https://svn.apache.org/repos/asf/tomcat/trunk/modules/bayeux/ Filip sam wrote: I am new to COMET in Tomcat, someone could show me one example on using COMET in Tomcat

Re: AJP vs HTTP connectors?

2009-02-02 Thread Filip Hanik - Dev Lists
first and foremost, always apply "ol' grandpa's logic" The famous quote is "if it ain't broke, don't fix it" So if you are using something that is working, don't even consider switching just cause some dude on a webinar told you so. That should take you 90% of the way. The rest is understanding

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-09 Thread Filip Hanik - Dev Lists
What benefit do you get from running it with JSVC, vs just writing a simple script into /etc/init.d/ to manage it yourself? Filip Dave Pawson wrote: http://www.dpawson.co.uk/tomcat Any feedback/improvements appreciated. Particularly any errors. Meant as a simple example of getting a first se

Re: comet loop after webapp re-start

2009-02-09 Thread Filip Hanik - Dev Lists
are you not getting the END event at all, even after the app is reloaded? Filip Peter Warren wrote: I'm running tomcat 6.0.18 on Ubuntu 8.10. I have a comet application that maintains an open connection with tomcat. If I re-start my webapp and then close the client connection, tomcat goes int

Re: Session replication problem

2009-02-09 Thread Filip Hanik - Dev Lists
Mohamedin wrote: I have a problem with Session replication. I am running multible tomcat instance on the same server. And I have 4 servers of the same configuration (Multible tomcat instances). I have enabled the session replication on these 4 servers (In each instance with different port). T

Re: Session replication problem

2009-02-10 Thread Filip Hanik - Dev Lists
mp; server2.tomcat8081 to replicate their sessions What I see in the log is all see all sessions e.g. server1.tomcat8080, server2.tomcat8080, server1.tomcat8081 & server2.tomcat8081 replicate the sessions all together Thanks a lot, Mohamedin ----- Original Message - From: "Filip

Re: Clustering: Session replication

2009-02-10 Thread Filip Hanik - Dev Lists
For each Tomcat set http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-receiver.html that way you broad cast your-ip-goes-here instead. alternatively, setup your hostname properly, and make sure the hostname resolves to the IP address, and not 127.0.0.1 Filip Jorge Medina wrote: Hi

Re: Trouble with cluster and JMX

2009-02-10 Thread Filip Hanik - Dev Lists
log looks good, the warning could be that you are using an old configuration option take a look at http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html also, what could mean that it doesn't work, would be that multicast is not working for you, and you need to enable multicast. you can

Re: Simple Tomcat 6, servlet tutorial. First draft for comment

2009-02-11 Thread Filip Hanik - Dev Lists
p function would issue a kill, then sleep X seconds and then issue a kill -9 if the process is still running Filip Dave Pawson wrote: 2009/2/10 Filip Hanik - Dev Lists : What benefit do you get from running it with JSVC, vs just writing a simple script into /etc/init.d/ to manage it yoursel

Re: Trouble with cluster and JMX

2009-02-11 Thread Filip Hanik - Dev Lists
sure turn on org.apache.catalina.ha.level = FINE org.apache.catalina.tribes.level = FINE in logging.properties however, regular membership discovery over multicast show up even without these entries did you mark your webapp Filip Eric B. wrote: "Filip Hanik - Dev Lists" wrote

Re: comet end vs. client_disconnect

2009-02-11 Thread Filip Hanik - Dev Lists
Peter Warren wrote: How do I distinguish between a comet END event generated due to a client disconnect and an end event generated for some other reason? I'm using tomcat 6.0.18 with the nio connector. On both windows xp sp3 and ubuntu 8.10, I'm seeing END events generated when a client disconn

Re: Trouble with cluster and JMX

2009-02-12 Thread Filip Hanik - Dev Lists
Eric B. wrote: "Filip Hanik - Dev Lists" wrote in message news:49937f4b.9050...@hanik.com... sure turn on org.apache.catalina.ha.level = FINE org.apache.catalina.tribes.level = FINE in logging.properties however, regular membership discovery over multicast show up even with

Re: Fatal error: Cleaner terminated abnormally

2009-02-17 Thread Filip Hanik - Dev Lists
search the sun database, some results there http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6521677 supposedly fixed in Java 7 :( Filip Taylan Develioglu wrote: Hi Guys, Our application is a servlet running in a container in Tomcat standalone. It uses the following NIO connector definitio

Re: Tribes

2009-02-19 Thread Filip Hanik - Dev Lists
that is cause *one* of my flaws as a developer is that I'm not very good at writing and maintaining docs there is a bit more here http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html the rest is in the code of the library, which isn't that big. if you have any specific questions l

Re: Clustering probleme

2009-02-19 Thread Filip Hanik - Dev Lists
It's a serialization error. One of the attributes in your session that was serialized on serverA, failed to deserialize on serverB Are you possible running different versions of the same class on the two servers? Filip Stephane DUCAS wrote: Hello I've tryed vertical clustered tomcat installat

Re: nio connector configuration

2009-02-19 Thread Filip Hanik - Dev Lists
peter, if you post your test code packaged in such a way that who ever helps you doesn't have to reverse engineer your app to setup the test case and test it locally, then you most likely wont have to pay anyone to help you. The more effort you provide in providing information to the list, incl

Re: making compression work using GzipInterceptor in tomcat cluster

2009-02-27 Thread Filip Hanik - Dev Lists
hi Amit, I will take a look Filip Amit Chandel wrote: I have been able to set up a working tomcat cluster with 2 physically separate tomcat instances (IP: 172.17.1.102 and 172.17.1.103) with tomcat version 6.0.10, using following config (showing just one here, the other one is similar instead t

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 Connectio

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
: 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 and resultsets. There

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
og Filip On 10/30/2009 08:34 AM, Josh Gooding wrote: Hey what API holds the statementFinalizer? On Fri, Oct 30, 2009 at 9:57 AM, Josh Goodingwrote: 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

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
et 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> wrote: look at jdb

Re: ConnectionPool question

2009-10-30 Thread Filip Hanik - Dev Lists
which 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 Code: import java.sql.Connection;

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 (a.k.a

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 to

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 poi

Re: jdbc-pool ignoring minIdle ?

2009-11-17 Thread Filip Hanik - Dev Lists
ry failure was the only case where the pool can have less connections than minIdle. Maybe you could add a note about this or change the behaviour. Best regards, Xavier. Filip Hanik - Dev Lists a écrit : hi Xavier, the pool is not ignoring the minIdle flag, but you have configured p.setMa

Re: Dedicated Thread Pool

2009-11-19 Thread Filip Hanik - Dev Lists
yes, if maxThreads>minSpareThreads, 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: 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 figur

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 out

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 conn

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 H

Re: tomcat jdbc pool is not proxying resultSets and preparedStatements

2009-12-17 Thread Filip Hanik - Dev Lists
Thank you very much! On 12/17/2009 07:11 AM, Guillermo Fernandes wrote: I have attached the interceptor to the bugzilla ticket. Actually, it extends the AbstractStatementInterceptor. Guillermo. On Wed, Dec 16, 2009 at 4:47 PM, Filip Hanik - Dev Lists wrote: correct, there is an

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, moh

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 /cygdrive

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, Fili

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

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 mul

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 ni

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

2010-01-13 Thread Filip Hanik - Dev Lists
lections$UnmodifiableSet) - locked<0x548b0798> (a sun.nio.ch.PollSelectorImpl) at sun.nio.ch.SelectorImpl.select(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 M

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 this

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 Security

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: 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 t

<    5   6   7   8   9   10   11   12   >