Re: Comet processor blocks if chunk includes final CRLF

2008-01-08 Thread Filip Hanik - Dev Lists
fyi, we had to rework the patch, as there is a nasty data corruption bug with the old way of doing things. the new patch is at http://people.apache.org/~fhanik/patches/fix-bz7-alt-1.patch and is up for voting Filip Filip Hanik - Dev Lists wrote: the patch has been applied and will go

Re: Comet API Question

2008-01-08 Thread Filip Hanik - Dev Lists
yes, uncommenting that valve in context.xml should do the trick, is it not firing or are you just not catching it? 2nd question, currently it just marks the request/response as non comet, and then calls response.finishResponse(), this will write any left over bytes to the socket. Filip Jens

Re: debugging connectors

2008-01-09 Thread Filip Hanik - Dev Lists
no debug property anymore, you can add org.apache.coyote.http11.level=FINE in your logging.properties file Filip Dmitry Beransky wrote: Hi, I can't find any definitive documentation on this. Does the element in Tomcat 5.5. support the "debug" property (I've seen examples of this in older T

Re: Tomcat Java Wrapper problems under T4.1.18, jdk1.3.1

2008-01-10 Thread Filip Hanik - Dev Lists
hi Tim, ThreadDumpWrapper, you have the source code for that, so you can modify it any way you want, including compiling it for JDK 1.3.1 but the class Bootstrap is in 4.1, it should be in TC_HOME/bin/bootstrap.jar Filip [EMAIL PROTECTED] wrote: Hi I'm attempting to use the Tomcat Wrapper (

Re: One of my boxes, the cluster is not working anymore

2008-01-15 Thread Filip Hanik - Dev Lists
Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: easiest way to see your packets fly by, is to use wireshark and just sniff UDP packets Filip Randy Paries wrote: On Jan 7, 2008 1:55 PM, Filip Hanik - Dev Lists <[EMAIL PRO

Re: How can I preserve a directory on Deployment?

2008-01-15 Thread Filip Hanik - Dev Lists
you answered your own question, yes, move the directory external to the webapp Filip Greg Kontos wrote: Hello, I have an application with an uploads directory located within the project root directory ( $TOMCAT_HOME/webapps/${project.dir}/uploads ) When I redeploy my .war file I want t

Re: Cluster error, timeouts.

2008-01-16 Thread Filip Hanik - Dev Lists
ok, it looks like you might have ended up with a rogue socket, and what happens is that any message sent to that socket just gets lost in the ether, since it doesn't have any interest ops. There is a workaround for this, turn off keep alives all together, or implement a keep alive timeout Opti

Re: One of my boxes, the cluster is not working anymore

2008-01-16 Thread Filip Hanik - Dev Lists
Lists <[EMAIL PROTECTED]> wrote: question is, why are you using tcpdump, when you need to track down UDP packets :) the reason there is no membership established is because the machine is not receiving multicast packets (UDP), so that's what you need to track down Filip Randy P

Re: Tomcat 6's nio protocol is slower than the regular HTTP/1.1 protocol

2008-01-16 Thread Filip Hanik - Dev Lists
that's expected, maybe not 30% but it all depends on the test. What the NIO allows you for, is to have more sockets than threads, and also being able to free up a worker thread when sending down static content to the client. Filip Shlomi Tsur wrote: Hi We are testing the new nio connector,

Re: Tomcat 6 cluster

2008-01-16 Thread Filip Hanik - Dev Lists
it would be very strange to how the cluster would have anything to do with this :) the error you are getting is: Caused by: java.net.UnknownHostException: lexecfin the JDBC driver is unable to resolve that name, put the name in your hosts file, or put the IP address instead of hostname for th

Re: Tomcat 6 - Cluster error.

2008-01-17 Thread Filip Hanik - Dev Lists
already replied to your old thread ok, it looks like you might have ended up with a rogue socket, and what happens is that any message sent to that socket just gets lost in the ether, since it doesn't have any interest ops. There is a workaround for this, turn off keep alives all together, or i

Re: Ordered loading of WAR files

2008-01-18 Thread Filip Hanik - Dev Lists
I believe if you specify your applications as elements inside server.xml, they will be deployed in the order they are specified Filip Fu-Tung Cheng wrote: Hi, I have two war files. One is an authentication war and the other is setup to use the authentication war via the servlet context.xml

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Filip Hanik - Dev Lists
this is not a cluster error, basically, you are storing a map in the session, and someone is modifying the map while the cluster is trying to replicate it org.apache.commons.collections.LRUMap Filip LERBSCHER JEAN-PIERRE wrote: Hi, We work on Tomcat clustered server (5.5) and we have thi

Re: comet end event

2008-01-18 Thread Filip Hanik - Dev Lists
during end and error, you MUST close the Comet event Filip Peter Warren wrote: What do I do to make the END event stop repeating? I don't want to close the CometEvent yet because the server is waiting for data to send to the client. If I don't close the comet event, the END event repeats ince

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-18 Thread Filip Hanik - Dev Lists
the solution is to not store stuff in the session modified by other threads, if that's the case, then its not really something you wanna store in a session Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | this is

Re: comet end event

2008-01-19 Thread Filip Hanik - Dev Lists
nt is closed? Would you consider it a bug that HttpURLConnection is implemented that way? Peter On Jan 18, 2008 9:21 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: during end and error, you MUST close the Comet event Filip Peter Warren wrote: What do I do to make the END

Re: comet questions

2008-01-20 Thread Filip Hanik - Dev Lists
} public String receive() throws IOException { if (firstRead) { firstRead = false; readHeaders(); } return readChunk(); } private void readHeaders() throws IOException { String header; while

Re: comet end event

2008-01-20 Thread Filip Hanik - Dev Lists
est? Peter On Jan 19, 2008 6:01 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: I'm not sure what HttpURLConnection has to do with Tomcat or comet. and yes, asynchronous writes are possible, just not after the END or ERROR events have been issued Filip Peter Warren wro

Re: comet client doesn't receive server response

2008-01-20 Thread Filip Hanik - Dev Lists
yes, most proxies will wait until they receive the end of the response, before passing it on. that's what you are seeing, a regular servlet, ends the response right away Filip Peter Warren wrote: What is interesting to me is that the exact same client code only using a different url (i.e. to a

Re: comet client doesn't receive server response

2008-01-21 Thread Filip Hanik - Dev Lists
hine. On Jan 20, 2008 8:30 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: yes, most proxies will wait until they receive the end of the response, before passing it on. that's what you are seeing, a regular servlet, ends the response right away Filip Peter Warren wrote:

Re: comet end event

2008-01-21 Thread Filip Hanik - Dev Lists
ll generate an END event: ...End will also be called when data is available and the end of file is reached on the request input (this usually indicates the client has pipelined a request). depends on what you mean by pipeline, see above Thanks, Peter On Jan 20, 2008 8:15 PM, Filip Hanik - Dev L

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
.out.println("read error"); return; } } while (inputStream.available() > 0); } } On Jan 21, 2008 11:53 AM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: answers inline Peter Warren wrote: First off, thanks for

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
System.out.println("Read " + n + " bytes: " + new String(buf, 0, n) + " for session: " + request.getSession(true).getId()); } else if (n < 0) { System.out.println("read error"); return;

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
return; } } while (inputStream.available() > 0); } } On Jan 21, 2008 11:53 AM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: answers inline Peter Warren wrote: First off, thanks for your responses. The contributors to

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
your test client is wrong,I've pasted in the correct one only three changes 1. set the timeout so that the socket stays alive 2. keep reading data so that the socket stays alive 3. 0crlfcrlf as the last chunk works as expected. to make a workable client, it should read until it gets the last-ch

Re: comet end event

2008-01-22 Thread Filip Hanik - Dev Lists
eam.flush(); } private void sendLastChunk() throws IOException { byte[] outputBytes = new String("0" + DELIMITER).getBytes(ENCODING); outputStream.write(outputBytes); outputStream.flush(); } } On Jan 22, 2008 9:07 AM, Filip Hanik - Dev Lists <[EMAIL PROTECTED

Re: Tomcat 6 - Cluster error.

2008-01-22 Thread Filip Hanik - Dev Lists
pdate. Best Regards Raúl. -Mensaje original- De: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Enviado el: jueves, 17 de enero de 2008 19:01 Para: Tomcat Users List Asunto: Re: Tomcat 6 - Cluster error. already replied to your old thread ok, it looks like you might have ended up w

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-22 Thread Filip Hanik - Dev Lists
if you look at the stack trace, there is no error in the clustering code. something is modifying your session attribute while the cluster is trying to send it Filip Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | the solution

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-23 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | if you look at the stack trace, there is no error in the clustering | code. something is modifying your session attribute while the cluster is | trying to send it I'm sugge

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy

2008-01-24 Thread Filip Hanik - Dev Lists
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Filip, Filip Hanik - Dev Lists wrote: | no, its just common sense, given that the session should represent a | client state, | and by the time the cluster tries to serialize it, the request is over. There's no guar

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy

2008-01-24 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy given that the session should represent a client state, and by the time the cluster tries to serialize it, the

Re: comet end event

2008-01-24 Thread Filip Hanik - Dev Lists
m happy to get you any more information you need. Otherwise, I appreciate your time and thanks for all your work on tomcat! Peter On Jan 22, 2008 2:37 PM, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: your test client is wrong,I've pasted in the correct one only three changes

Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy

2008-01-25 Thread Filip Hanik - Dev Lists
Caldarale, Charles R wrote: From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: ConcurrentModificationException on tomcat cluster with SimpleTcpClusterstrategy that is correct, we thought of this scenario and decided that we wouldn't support it. Not unreasonab

Re: Embed license to tomcat

2007-06-08 Thread Filip Hanik - Dev Lists
I would consider your license and mac id work to be a waste of time. If they want to crack your software, they will. Instead just attach your company's software license to it. Instead spend the time building the application so good that they will want to buy it from you, and buy support for it a

Re: Tomcat 6 clustering question

2007-06-08 Thread Filip Hanik - Dev Lists
change channelSendOptions="6" to channelSendOptions="0" and see how that works for you Filip Prabhu wrote: We have enabled tomcat 6 clustering with two machines. After doing that we noticed two things. 1. Tomcat is taking atleast 5 minutes to start. There are only 5 webapps in total. 2. useD

Re: Invalid Content-Length error for the size greater than

2007-06-08 Thread Filip Hanik - Dev Lists
the servlet specification defines Content-Length as an int. even though in some places tomcat has it as a long, you are still running into this limitation so the problem is in the spec, and needs to be corrected there Filip Daniel Dang wrote: Hi All I am using Apache-tomcat-5.5.16 version (aj

Re: Comet: Unsufficiently synchronized recycling decisions

2007-06-13 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: Hello, I did not get any response on my post from 2 weeks ago. Even if non-recycling of request/response objects happens only sporadically and only in webapps where asynchronous responses may happen before the event processing has finished, it is definitively a bug. Sho

Re: Nio problems on OSX

2007-06-13 Thread Filip Hanik - Dev Lists
documented here http://tomcat.apache.org/tomcat-6.0-doc/config/http.html -Djava.net.preferIPv4Stack=true Filip Peter wrote: Hi I'm trying to use the Nio connector with Tomcat 6.0.13 running with Java 1.5.0_07 on OSX 10.4.9. When trying to access port 8080 which was declared with the Nio conn

Re: Thread Pool

2007-06-13 Thread Filip Hanik - Dev Lists
you need to call start(), not run() Filip Siraj Haider wrote: Hello, Now I have changed my servlet. I have created a new class ResultFetcher extended by thread and now I am doing the checking part inside that Thread.run() method. and calling the new class like this : ResultFetcher rf

Re: Comet: Unsufficiently synchronized recycling decisions

2007-06-14 Thread Filip Hanik - Dev Lists
my application which runs an embedded Tomcat and a whole bunch of additional threads when the system is under load, but it does not happen in a simple test situation. Regards, Matthias -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, June

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-14 Thread Filip Hanik - Dev Lists
man, I need to get a CPU like that, that can actually work 4 times its max capacity :) Filip - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: sticky sessions not sticking

2007-06-14 Thread Filip Hanik - Dev Lists
change your JVM route to jvmRoute="worker1", as I believe the jvmRoute value has to match the name of the worker. Filip Eddie Yee wrote: Hi, I am not sure if this is a bug, but it appears that my sticky sessions configuration don't want to stick. I am running two servers with tomcat 5.5.

Re: SSL Tomcat and Apache.

2007-06-14 Thread Filip Hanik - Dev Lists
Jason Lanpher wrote: Hi all, I have a question for all of you network admins out there. I am wondering if it is possible to share an ssl key between both Apache 2.X and Tomcat 5.X if they are connected via mod jk. Is this possible or does each server have to have its own ssl key?

Re: load balancing

2007-06-20 Thread Filip Hanik - Dev Lists
copy the balancer application from Tomcat 5 into your Tomcat 6 install Asensio, Rodrigo wrote: I'm trying to implement a load balancing solution with tomcat55 with an ubuntu704 as load balancer with 3 legacy win2003 tomcat55 behind. I found a great article published in onjava.com (http://onja

Re: load balancing

2007-06-20 Thread Filip Hanik - Dev Lists
like crazy our tomcats (I have the webapp and the bizlogic in the same server) and the most elegant solution for my situation is just putting a small load balancer in the front. Thanks buddy. rodrigo -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday

Re: Configuring Tomcat 5.5 to use unicast membership discovery

2007-06-21 Thread Filip Hanik - Dev Lists
not in 5.5, in Tomcat 6 you can supply static members Filip Andrew R Feller wrote: Hello everyone, Is it possible to configuring Tomcat 5.5 to use unicast for the membership discovery mechanism rather than multicast? I have read through both the Tomcat Clustering/Session Replication (

Re: Tomcat clustering without multicasting

2007-06-22 Thread Filip Hanik - Dev Lists
Tomcat 6 supports this using the StaticMembershipInterceptor Filip Vinu Varghese wrote: Hi all, I am trying clustering with tomcat, but I have machines with multicast disabled. So is there any way to do clustering without multicasting, like use tcp for notifying member addition and removal ?

Re: Tomcat, Comet and Apache

2007-06-23 Thread Filip Hanik - Dev Lists
my only guess would be to turn off buffering in mod_proxy, if that is possible Filip Sebastiaan van Erk wrote: Hi all, I wrote a Comet servlet for Tomcat, and am ready to deploy it. However, my "normal" mode of deployment, namely Apache + mod_jk in front of Tomcat no longer works in this si

Re: How to add -Djava.library.path to tomcat

2007-06-26 Thread Filip Hanik - Dev Lists
set it in catalina.bat or catalina.sh or you can define setenv.sh/setenv.bat in the bin directory with the line set JAVA_OPTS=-Djava.library.path= (win) and similar for unix Filip Yifan (Eric) Jiang wrote: Hi, I would like to load a library (.dll in windows and .so in linux) in a Jav

Re: $CATALINA_HOME/common/lib or WEB-INF/lib

2007-06-28 Thread Filip Hanik - Dev Lists
Przemysław Klein wrote: Mentioned webapps are strictly related. In fact they are part of one large system. What is the best way to add make library/libraries available to all application? Put it in $CATALINA_HOME/common/lib or is there better way to do that? shared/lib if you want the applicati

Re: tomcat crashes

2007-06-29 Thread Filip Hanik - Dev Lists
looks like it is a VM thread that is crashing, not a tomcat thread.what are your command line options to the JVM? could be a GC bug, Filip daniel steel wrote: all, i am not sure if this a bug or OS problem or our install problem (this is the first ever crash). at one of our new installs

Re: Using Tomcat 5.5.23 with jdk 1.6.0_1

2007-06-29 Thread Filip Hanik - Dev Lists
if you have the whole dump we can look into it deeper, my guess is that its a JVM bug or a combo of JVM/OS Filip Christopher Hartung wrote: Hi there, we are using Tomcat 5.5.23 with jdk 1.6.0_1. But sometimes we get errors like this: # # An unexpected error has been detected by Java Runtim

Re: Unable to disable output buffering

2007-07-02 Thread Filip Hanik - Dev Lists
does calling response.flushBuffer not do anything for you? Filip Fabio Rossi wrote: Hi, thank you for the answer, but my problem in different. When I send the data, I specify the content lenght and the client knows if the "download" is completed or not. The problem is that, with output buffer

Re: Tomcat 5.5 Clustering issues

2007-07-03 Thread Filip Hanik - Dev Lists
the disappeared message appears 3seconds after the member added message. 3 seconds is the timeout you have set, ie, if no multicast heartbeat is received after 3 seconds, consider the member dead. so it seems like multicasting is not working properly on your system. Filip Andrew R Feller wrote

Re: Tomcat 5.0.28 SocketException error

2007-07-03 Thread Filip Hanik - Dev Lists
this would be your hint java.lang.OutOfMemoryError so yes, running out of memory would crash your server. what you can do is 1. upgrade to 1.4.2_14 2. add "-XX:+HeapDumpOnOutOfMemoryError" to your JAVA_OPTS this will produce a .hprof file containing your memory dump, you can then analyze the

Re: Tomcat 6 classloader errors

2007-07-03 Thread Filip Hanik - Dev Lists
you can still use shared/lib, you just must configure it using conf/catalina.properties Filip Peter Stavrinides wrote: Apologies, thanks for your help! ... at the moment I cant open the link, but I will check it out in a minute. Thanks again. Peter Caldarale, Charles R wrote: From: Peter Stav

Re: How internally does a jndi resource get created?

2007-07-03 Thread Filip Hanik - Dev Lists
for any element, you can define the factory that creates the object. and this factory implements the javax.naming.spi.ObjectFactory you can also take a look at the class org.apache.naming.factory.ResourceFactory in Tomcat, this is the default one that does the instantiation Filip Jevin M

Re: tomcat compile failure on debian build.xml base.path for JDT eclipse jars et. al.

2007-07-03 Thread Filip Hanik - Dev Lists
try compiling with JDK 1.5, we've heard that there have been problems compiling with 1.6 Filip david wrote: Hello Tomcat dev, gurus, ranters and ravers, I have downloaded the TC source (apache-tomcat-6.0.13-src.tar.gz) and the ant (1.6) build attempt fails with the following error condition

Re: Apache httpd authentication before

2007-07-05 Thread Filip Hanik - Dev Lists
Aldo Brucale wrote: Hello, I'm using Tomcat 5.5.20 and Sun Java 1.5.0_10 under Debian Linux, using jk version 1.2.18 to connect from Apache. I would like to let Apache do HTTP autentication before forwarding the requests to Tomcat: is this possible? yes it is, and in tomcat's connector elemen

Re: Tomcat Farm Recommendation

2007-07-05 Thread Filip Hanik - Dev Lists
there is no right or wrong solution, but entertain this scenario 1. few very large machines (or) 2. many very inexpensive machines in the case of one machine breaking, using 1) will have a larger impact on your performance than 2) however, in the case of 2) you may have more failures. take go

Re: Tomcat 6 + Apache 2.0 with SSL

2007-07-05 Thread Filip Hanik - Dev Lists
double enchriptation? It is enough with the apache one. Use something like: broweser -> https -> Apache -> http -> tomcat pro: 1- Single enchiptation fast server response. cons (at least fo security): 1- none I may be wrong plesa verify in the mailing list archive Filip Hanik

Re: Tomcat 6 + Apache 2.0 with SSL

2007-07-05 Thread Filip Hanik - Dev Lists
o the Tomcat file structure unless you know exactly how to secure it. Filip hth, arian Filip Hanik - Dev Lists wrote: I think what he wants is browser -> http -> Apache -> http -> tomcat browser -> https-> Apache -> https-> tomcat a lot of companies have thes

Re: Tomcat 5.5 Clustering issues

2007-07-09 Thread Filip Hanik - Dev Lists
Administrator University Information Systems Louisiana State University [EMAIL PROTECTED] (office) 225.578.3737 -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 9:55 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 Clustering issues the

Re: Connection-Pools, MySQL and 8 hours

2007-07-09 Thread Filip Hanik - Dev Lists
The JDBC realm doesn't use the connection pool you've specified below, The JDBC realm uses a single connection, never closes it unless an exception happens. The connection is defined in the section of server.xml Filip Gregor Schneider wrote: Hi list, we're running Tomcat 5.5 here on Debian

Re: Tomcat 5.5 Clustering issues

2007-07-09 Thread Filip Hanik - Dev Lists
EMAIL PROTECTED] (office) 225.578.3737 -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, July 09, 2007 9:34 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 Clustering issues correct, on the multicast IP Filip Andrew R Feller wrote: Is the mult

Re: tomcat 6

2007-07-09 Thread Filip Hanik - Dev Lists
you can point JRE_HOME instead of JAVA_HOME to use a jre, Filip Deepa Paranjpe wrote: Does tomcat 6 only need a jre but not a jdk? If so, what should you point your JAVA_HOME to? - Moody friends. Drama queens. Your life? Nope! - their life, your sto

Re: APR/HP-UX startup problems

2007-07-09 Thread Filip Hanik - Dev Lists
can you explicitly try to define the bind address in the element? could it be that the default 0.0.0.0 or whatever it's IPv6 counterpart is, is not accepted? Filip John Pederzolli wrote: I am having issues using APR in an HP-UX environment; Ive successful built/installed APR in multiple Linu

Re: Creating a Logger in Tomcat 5.5.12

2007-07-16 Thread Filip Hanik - Dev Lists
take a look at conf/logging.properties, you can see how they setup logging for the different contexts Filip Archibald Moepi wrote: Hi, I just migrated to Tomcat 5.5.12 from Tomcat 4.1.31 and I want to create a logger for my context, any ideas on how I can complish this? Thanx

Re: Capturing Tomcat thread dumps from startup.bat (Windows)

2007-07-16 Thread Filip Hanik - Dev Lists
catalina.bat run > dump.log then do a Ctrl+Break for the dump another way is to use a service wrapper that lets you do dumps, http://people.apache.org/~fhanik/wrapper.html Filip Jayson Enriquez wrote: I am unable to copy Tomcat thread dumops when launching it from Startup.bat from a command

Re: tomcat cluster and maven2?

2007-07-20 Thread Filip Hanik - Dev Lists
Kristian Rink wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Folks; still all along considering switching our application environment to tomcat6, I wonder whether there is a meaningful way of deploying a web application to multiple tomcats / a tomcat cluster using maven2? FarmWarDeployer

Re: Capturing Tomcat thread dumps from startup.bat (Windows)

2007-07-20 Thread Filip Hanik - Dev Lists
? Thank you Jayson -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Monday, July 16, 2007 11:46 AM To: Tomcat Users List Subject: Re: Capturing Tomcat thread dumps from startup.bat (Windows) catalina.bat run > dump.log then do a Ctrl+Break for the d

Re: Capturing Tomcat thread dumps from startup.bat (Windows)

2007-07-20 Thread Filip Hanik - Dev Lists
-Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Friday, July 20, 2007 12:13 PM To: Tomcat Users List Subject: Re: Capturing Tomcat thread dumps from startup.bat (Windows) a tomcat thread dump is equal to a java thread dump, the latter is the co

Re: Manager Deployer and build.xml

2007-07-23 Thread Filip Hanik - Dev Lists
you probably don't have the Realm or your deployment client setup with the correct username/password Filip Sangoi, Nehal (Gexpro, consultant) wrote: Hi I have implemented manager-deployer config in my tomcat 5.5.23 setup. And using ant for my build.xml to deploy webapps. I am recieveing bel

Re: What to put in Linux filesystem for Tomcat?

2007-07-23 Thread Filip Hanik - Dev Lists
Tomcat doesn't need anything but the JVM, but what the JVM needs, that's another story :) Filip lightbulb432 wrote: What is the minimum set of folders and files needed for Tomcat to run on Linux? I ask because if you dedicate a server for Tomcat and nothing else, you must want to minimize the

Re: Paths, Directories, Cookies: How do you get a session, or a file?

2007-07-23 Thread Filip Hanik - Dev Lists
aladdin wrote: After using Tomcat for over a year, one thing I still can't get straight is how directories are resolved. I would love it if someone could point me to a reference that ties together the context in server.xml, mod_jk mounts, and web.xml mappings, particularly with regard to an Ap

Re: Write custom valve?

2007-07-24 Thread Filip Hanik - Dev Lists
Doug Black wrote: How can I best pass ips allowed by a valve to pass through to my application while forcing ips that are denied to log in through a realm? The only possible behavior I can detect of either RemoteAddrValve or RemoteHostValve is to force requests through the IP or host filter and

Re: COMET with Tomcat 6.0.13 causes 405 Error

2007-07-25 Thread Filip Hanik - Dev Lists
your servlet must implement the CometProcessor interface Filip FelixG wrote: Hi everyone, I am trying to get the Adv. IO feature of Tomcat 6.0.13 (running on a sparc sun solaris 8 with JDK6) working. After searching the mailing-lists I changed the connector in server.xml to use the

Re: Mod_jk error

2007-07-26 Thread Filip Hanik - Dev Lists
also solves your problem +JkDisableReuse in httpd.conf Filip Rainer Jung wrote: André Vila Cova wrote: Red Hat Enterprise Linux AS release 4 (Nahant Update 5) Release : Jakarta-Tomcat 5.5.20 Modulo nativo APR: tomcat-connectors-1.2.20 JVM versão. : Sun JVM1.5.0_11 I th

Re: Comet example at Tomcat 6

2007-07-26 Thread Filip Hanik - Dev Lists
you must be using the APR or NIO connector Hi! I just run the chat example ,but ,it seems did not work ; the code seems can't reach the line begin(event, request, response) please help me fix that,thanks; john No

Re: Tomcat with/without Tomcat native library

2007-07-27 Thread Filip Hanik - Dev Lists
Petr Sumbera wrote: Hi Guys, Does anybody have experience or even better some numbers comparing performance of Tomcat running with and without Tomcat native library (libtcnative-1)? most definitely, the APR connector lets you do keep alive connections on more connections than you have threads

Re: Question about File ownership file upload and HTTP Post

2007-07-27 Thread Filip Hanik - Dev Lists
Josh Rountree wrote: I have a servlet that processes requests for file uploads. When I write this file to disk, root is the owner? Is this the correct behavior? Since I do not have root access on the machine that the servlet executes I cannot remove these files. Any documentation that explains ho

Re: Tomcat 6 equivalent of Tomcat 5's stateSessionTimeout

2007-07-27 Thread Filip Hanik - Dev Lists
Anthony J Biacco wrote: I'd like to change the default of 60 seconds in relation to the log " This operation will timeout if no session state has been received within 60 seconds." Is there an equivalent? I'm running 6.0.13. stateTransferTimeout? Filip Thanx! -Tony ---

Re: sessions not persisting between servlet calls

2007-07-29 Thread Filip Hanik - Dev Lists
David Smith wrote: If you are proxying your webapp, did you also set proxyName and proxyPort in your connector config for port 8081 in server.xml? in httpd.conf use ProxyPreserveHost, and that way you only have to set proxyPort in server.xml but even without proxyPort/proxyName, your cookies sh

Re: COMET - Delays in output

2007-07-30 Thread Filip Hanik - Dev Lists
FelixG wrote: Hi, I'm trying to implement the comet code-example from the Tomcat documentation, using Tomcat 6.0.13, Http11NioProtocol is working and my servlet is implementing CometProcessor. I am trying to write into the response's PrintWriter with this code in event(): if (event.getEventType(

Re: COMET - Delays in output

2007-08-01 Thread Filip Hanik - Dev Lists
til I call close() manually for the stream. yes, the browser doesn't really know what to do with the request until the response is complete Filip felix Filip Hanik - Dev Lists wrote: flush should push out the data for you. If not, please open a bugzilla item and attach the test

Re: Error reported when starting app in cluster

2007-08-03 Thread Filip Hanik - Dev Lists
the same app would have to run on both instances, Filip Derek Alexander wrote: Getting an ERROR reported when starting webapp within a cluster. Note, at this time I am starting the first server in the cluster, which is the 192.168.0.1 mentioned in the error message. Can someone please explai

Re: Error reported when starting app in cluster

2007-08-03 Thread Filip Hanik - Dev Lists
Derek Alexander wrote: the same app would have to run on both instances, You mean this error is normal when starting the first server in a cluster? if it was the first server, it wouldn't request state from another, would it ?:) -

Re: SSO session replication within TC 5.5.23 cluster

2007-08-07 Thread Filip Hanik - Dev Lists
okie. Is there an better way to achieve this in my code base ? Thanks In Advance, Vinod - Original Message From: Filip Hanik - Dev Lists <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Wednesday, May 30, 2007 2:49:59 PM Subject: Re: SSO session replication within TC 5.5.23

Re: SSO session replication within TC 5.5.23 cluster

2007-08-07 Thread Filip Hanik - Dev Lists
tomcat to also contain jvmRoute (mentioned in Engine node in server.xml) so that my load balancer rewrites my SSO sessions directly to the correct cluster member. Thanks, Vinod - Original Message From: Filip Hanik - Dev Lists <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Tuesday,

Re: Tomcat 6 cluster management

2007-08-08 Thread Filip Hanik - Dev Lists
Mark Faircloth wrote: The Tomcat 6 documentation says that the MBean values 'type=Cluster' and 'type=Cluster,host=${HOST}' should be available like they were in Tomcat 5.5. However, they are not visible via jmx using jconsole or Probe. Does anyone know how to view Cluster information in Tomc

Re: tomcat is looking for a class I don't use anymore

2007-08-08 Thread Filip Hanik - Dev Lists
make sure you delete all the .ser files, that is where your session info is stored even stored during a restart Filip Mastrorillo Laurence wrote: Hi everybody, I am having a problem with an old class no longer in used in my application. I am using tomcat 5.0.18 with jdk 1.5 from ibm. I undepl

Re: Tomcat native.

2007-08-08 Thread Filip Hanik - Dev Lists
Alec Bickerton wrote: Hi, I've only recently returned to using tomcat since tomcat 4.0.1 and I note that things have moved on somewhat. I'm currently working with the Tomcat 5.5.xx line. I would like to know is : What exactly is the advantage of using the tomcat-native library? no longer hav

Re: very slow upload over SSL

2007-08-08 Thread Filip Hanik - Dev Lists
feel free to open a bugzilla item, and attach a test case, and I will look at it http://issues.apache.org/bugzilla/enter_bug.cgi?product=Tomcat%206 Filip Hoa Doan wrote: Hi, I am trying to upload a file size of 2MB to my server. Doing it without SSL takes only 1 sec but doing it over SSL t

Re: Tomcat native.

2007-08-09 Thread Filip Hanik - Dev Lists
Leon Rosenberg wrote: On 8/8/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: Alec Bickerton wrote: Hi, I've only recently returned to using tomcat since tomcat 4.0.1 and I note that things have moved on somewhat. I'm currently working with the Tomcat 5.5.xx li

Re: Tomcat giving JDK Precedence Over JARs in WAR

2007-08-09 Thread Filip Hanik - Dev Lists
javax.xml and the whole endorsed fiasco is very tricky. What I would suggest is to simply ditch your additional XML libraries and use the ones that come with the JDK saves you a lot of head ache and time Filip Gregor Schneider wrote: david, I already include xml-apis-1.3.03.jar in the W

Re: multiple comet requests

2007-08-14 Thread Filip Hanik - Dev Lists
hi Peter, thanks for the example, I am able to reproduce this error, let me take a look and see why it is happening, Filip Peter Warren wrote: How do you send multiple requests to the same comet servlet? Sending multiple chunks of a single request is fine. My problem occurs after the client

Re: multiple comet requests

2007-08-14 Thread Filip Hanik - Dev Lists
turns out that if the request is comet, the recycling of the input/output filter is not happening. I have fixed this, you can try the tomcat-coyote.jar from http://people.apache.org/~fhanik/tomcat/tomcat-coyote.jar Filip Filip Hanik - Dev Lists wrote: hi Peter, thanks for the example, I am

Re: multiple comet requests

2007-08-15 Thread Filip Hanik - Dev Lists
60) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412) Filip Hanik - Dev Lists wrote: turns out that if the request is comet, the recycling of the input/output filter is not happening. I have fixed this, you can try the tomcat-coyote.jar from http://people.apache.org/~fhanik/tomcat/tomcat-coyote.jar Fil

Re: Tracking active session in a tomcat cluster

2007-08-16 Thread Filip Hanik - Dev Lists
Tomcat 5.5 has an all-to-all replication mechanism, hence all nodes should be identical. you would only need to see the sessions on one node to get a picture of what is looks like elsewhere. there is a flag called "notifyListenersOnReplication" this is only for attribute replication for nodes

Re: comet read & httpsession timeout

2007-08-16 Thread Filip Hanik - Dev Lists
Peter Warren wrote: A comet read event doesn't update the last accessed time of an HttpSession -- which means comet read events will never prevent an http session (not the comet session) from timing out and the connection getting closed. Is that by design? If so, can anyone offer me suggestions

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