Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-03-30 Thread Filip Hanik - Dev Lists
the problem you are having is because you didn't shutdown the java process. invoking shutdown.sh when your tomcat instance has suffered a memoryleak doesn't guarantee that it will stop, or how long it takes to stop it. you must ensure the process is killed properly Filip Bryce Nesbitt wrote:

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-01 Thread Filip Hanik - Dev Lists
it's blocking on initialization of SSL, did you set the correct attributes for APR/SSL (they are not the same as the java connector) Filip Stefan Armbruster wrote: Hi, thanks for the responses so far. I removed all libapr* deb packages and installed apr 1.2.8 from source, but Tomcat still

Re: Tips needed: restarting tomcat without risk of java.net.BindException

2007-04-02 Thread Filip Hanik - Dev Lists
shutdown and start in the same thread (so shutdown completes before the startup happens). AFIK, shutdown actually does shut down the java process. If shutdown is not meant to shut down the java process, what does it do? Filip Hanik - Dev Lists wrote: the problem you are having is because you

Re: Tomcat 6 web root directory

2007-04-02 Thread Filip Hanik - Dev Lists
Filip Hoa Doan wrote: Hi, I am trying to direct Tomcat to my own web root director, and I know you can do that by changing the host tag in server.xml. But Tomcat wont read any of my web file unless they are in a folder name 'ROOT'. Kind of confusing but here is an example of what i did.

Re: Tomcat 6.0.10 Comet question

2007-04-03 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, Thanks for all the answers! :-) It's good to know the way the events should be treated and interpreted. It's quite different from how it's described on http://tomcat.apache.org/tomcat-6.0-doc/aio.html, and the JavaDoc does not really describe the spec either.

Re: connection pool

2007-04-04 Thread Filip Hanik - Dev Lists
Martin Gainty wrote: MG-- You want to make sure your abandoned connections are properly re-cycled e.g. To configure a DBCP DataSource so that abandoned dB connections are removed and recycled add the following paramater to the ResourceParams configuration for your DBCP DataSource Resource:

Re: Tomcat 6.0.10 hangs on startup when APR enabled

2007-04-04 Thread Filip Hanik - Dev Lists
Mladen Turk wrote: Stefan Armbruster wrote: Hi finally I did this: rm /dev/random; ln -s /dev/urandom /dev/random ... and Tomcat starts up fine. Wow, that something. You are very brave and root ;) awesome! Try with setting: $> export RANDFILE=/dev/urandom then start Tomcat. or create a $HO

Re: Tomcat 6.0.10 Comet question

2007-04-04 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/3/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: yes, a proposal is coming up, my guess is that you will do a {public int write(ByteBuffer)} on the CometEvent object. returns number of bytes written, but nothing is set in stone yet I hope that your pr

Re: session replication

2007-04-04 Thread Filip Hanik - Dev Lists
Yerramsetti, Naga wrote: Hi, What happens if we use session replication and we try to store in session an object that is not serializable? throws an error, probably an IllegalArgumentException on session.setAttribute you can also take a look at www.terracotta.org, as they don't require

Re: High cpu on Apache 2.2.3/Tomcat 5.5.20/APJ1.3 - Windows Server 2003 R2 SP1 SE

2007-04-04 Thread Filip Hanik - Dev Lists
if you are already using mod_proxy, why use AJP, mod_proxy in particular, has a more solid implementation in HTTP than AJP Filip Mirko Viviani wrote: Hi, We are using Tomcat 5.5.20 with Apache 2.2.3/ssl/svn and jdk 1.6.0-b105 on a Windows Server 2003 R2/SP1 SE with 4 Xeon cores and 4GB ram.

Re: How to trace successful ssl handshake?

2007-04-04 Thread Filip Hanik - Dev Lists
-Djavax.net.debug=handshake,ssl Filip Julien Gaulon wrote: Dear Tomcat Users, I'm using a tomcat 5.5 on win XP. My servlet uses 2 secure connectors (different cipher suites and protocol SSL and TLS) on 2 ports. I have already found a way to have in my servlet a trigger when a ssl handshake

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-06 Thread Filip Hanik - Dev Lists
Elias Naur wrote: Hi, I'm experimenting with the new tomcat 6 NIO connector to get a CometProcessor servlet running. I've run into a problem that I hope you guys can help me with. I'm testing a servlet that looks like this: public final class QueryEvent extends HttpServlet implements CometProc

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-06 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/6/07, Rémy Maucherat <[EMAIL PROTECTED]> wrote: On 4/6/07, Elias Naur <[EMAIL PROTECTED]> wrote: > Hi, > > I'm experimenting with the new tomcat 6 NIO connector to get a > CometProcessor servlet running. I've run into a problem that I hope > you guys can help me with. I'm

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-08 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/7/07, Rémy Maucherat <[EMAIL PROTECTED]> wrote: On 4/6/07, Elias Naur <[EMAIL PROTECTED]> wrote: > I'm aware that a correct implementation must empty the buffer on a > READ event, but as I stated in the original post, a READ event is > never received (not even when the cli

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-08 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/8/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: Elias Naur wrote: > On 4/7/07, Rémy Maucherat <[EMAIL PROTECTED]> wrote: >> On 4/6/07, Elias Naur <[EMAIL PROTECTED]> wrote: >> > I'm aware that a correct implementation m

Re: Tomcat 6 NIO connector/CometProcessor goes to 100% CPU usage

2007-04-09 Thread Filip Hanik - Dev Lists
Elias Naur wrote: On 4/9/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: Elias Naur wrote: > On 4/8/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: >> Elias Naur wrote: >> > On 4/7/07, Rémy Maucherat <[EMAIL PROTECTED]> wrote: >> >>

Re: my webapp is crashing the JVM intermittently

2007-04-09 Thread Filip Hanik - Dev Lists
I would take a hint from this line Current thread (0x099aedf8): GCTaskThread [id=18292] My guess is that you have enabled parallel and concurrent GC/mark/sweep, remove all the GC options from your command line and try again I've seen this error before Filip Randy Paries wrote: Hello, I am not

Re: [Fwd: [Fwd: Re: [Fwd: Can't run jsp pages on tomcat 6.0.10]]]

2007-04-09 Thread Filip Hanik - Dev Lists
this is the list that goes into Tomcat lib annotations-api.jar jasper-el.jartomcat-dbcp.jar catalina-ant.jar jasper-jdt.jar tomcat-i18n-es.jar catalina-ha.jar jasper.jar tomcat-i18n-fr.jar catalina-tribes.jar jsp-api.jar tomcat-i18n-ja.jar catalina.jar

Re: Tomcat 6.0.x & OpenEJB

2007-04-11 Thread Filip Hanik - Dev Lists
http://geronimo.apache.org they did it :) filip José Perdigão wrote: Hi, has anyone been able to integrate OpenEJB with Apache-Tomcat 6.0.x? Or is it just impossible to do it? - To start a new topic, e-mail: users@tomcat.ap

Re: Tomcat 6.0.x & OpenEJB

2007-04-12 Thread Filip Hanik - Dev Lists
David Blevins wrote: On Apr 11, 2007, at 8:21 PM, Filip Hanik - Dev Lists wrote: http://geronimo.apache.org they did it :) filip :) Just as a general note, as with OpenEJB 1.0 and before (0.9.x, 0.8.x, etc) you can once again plug OpenEJB 3 into Tomcat. OpenEJB 3 is the EJB 3.0 version

Re: Log4j with Tomcat 5.5 on JRockit

2007-04-12 Thread Filip Hanik - Dev Lists
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.defaultlog=error you are forcing commons-logging to not use log4j Filip Pranas Baliuka wrote: Hello, Can some one help me problems in starting TomCat 5.5 on JRockit with log4

Re: NullPointerException after approx 3000 comet requests

2007-04-24 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, I'm running Tomcat 6.0.10 on Linux Ubuntu Feisty on Java 5. I have a CometProcessor which handles a large number of requests in a very short time, and after about 3000 requests I consistently get the following two errors: Apr 18, 2007 12:09:19 PM org.apache.tom

Re: Any documentation/example about org.apache.catalina.Comet* ?

2007-04-24 Thread Filip Hanik - Dev Lists
Benjamin Larchevêque wrote: Hello, I saw that Tomcat proposes some interfaces to use Comet like Servlet from version 6.x. Even(t) if I get the main idea I was not able to reuse the pseudo code servlet ChatServlet provided on the following page: http://tomcat.apache.org/tomcat-6.0-doc/aio.html

Re: Memory Leak with Comet

2007-04-24 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: I did a fresh build this morning from the SVN trunk, and I see the memory leak with both NIO and APR connector. Why don't you enable -XX:+HeapDumpOnOutOfMemoryError and send us a link where we can download the HPROF files that get generated. Also send us your config a

Re: Memory Leak with Comet

2007-04-25 Thread Filip Hanik - Dev Lists
Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for. Filip Reich, Matthias wrote: So far, I have the feeling that I am the only one who has see

Re: Memory Leak with Comet

2007-04-25 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/25/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: Do you have a small test case, if nothing else, your connections should eventually timeout and that should recycle the processors. As long as the comet connection is active, the processor is spoken for

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
definitely a bug, I will work on a fix right away. Filip Sebastiaan van Erk wrote: Hi, I have the following problem with Comet. I have a long request, and I asynchronously write data to the output stream of the response while the request is between the BEGIN and END/ERROR events. However, the

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Sebastian, I have checked in a fix to SVN. You can also work around the problem by not using the shared selector by adding -Dorg.apache.tomcat.util.net.NioSelectorShared=false to your command line Filip Filip Hanik - Dev Lists wrote: definitely a bug, I will work on a fix right away. Filip

Re: Building from source

2007-04-25 Thread Filip Hanik - Dev Lists
1. dont use folders with spaces, in theory they should work, in practice, who knows 2. building is easier than that, follow these steps a) svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x b) cd tc5.5.x c) edit build.properties.default (the base.path parameter is where it will

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
Daniel Doubleday wrote: Hi this post is a follow up from http://issues.apache.org/bugzilla/show_bug.cgi?id=42198 where this post does not belong. I want to find out if my understanding of the comet api in tomcat is right concerning how connections are handled and event are triggered. I have a ve

Re: comet events and connections

2007-04-25 Thread Filip Hanik - Dev Lists
e is bound to the request / response model. As soon as the response is closed you would expect an END event. That's pretty much how it is Filip Filip Hanik - Dev Lists wrote: Daniel Doubleday wrote: Hi this post is a follow up from http://issues.apache.org/bugzilla/show_bug.cgi?id=

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Hanik - Dev Lists wrote: Sebastian, I have checked in a fix to SVN. You can also work around the problem by not using the shared selector by adding -Dorg.apache.tomcat.util.net.NioSelectorShared=false to your command line Filip Filip Hanik - Dev Lists wrote: definitely a bug, I will work on

Re: Comet problem when writing a lot of data to the OutputStream

2007-04-25 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/26/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: Sebastiaan van Erk wrote: > Hi, > > The fixes seem to work well, thanks again! :-) Excellent, thanks for bringing it to my attention And it was committed before tagging, not 5 minutes after as

Re: comet: missing initial READ event?

2007-04-26 Thread Filip Hanik - Dev Lists
Yes, this is an interesting use case, I usually issue a read on the BEGIN event. These events are IO related, ie, triggered by IO events and that is what they are. Since the data already has been read in with the request headers, there will be no following IO event. You could issue a read() in t

Re: how to close a comet request outside of an event?

2007-04-26 Thread Filip Hanik - Dev Lists
Correct, an asynchronous close doesn't go all the way down to the IO layer, it just marks the request closed. remember event.close doesn't mean TCP.socket.close, it means that this event/request sequence is done There are still many enhancements to be done to the Comet API, such as non blockin

Re: how to close a comet request outside of an event?

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Rémy Maucherat wrote: On 4/26/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: I don't understand why the client does not get an immediate -1 (EOF) on the read() as soon as I do this. The socket itself does not need to be closed, but the output stream close should flu

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Rémy Maucherat wrote: On 4/26/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: Hi, If the body of the POST request is not present at the time of the getParameter() call, it returns null even if the parameter value is set. Things don't work like this, obviously. Pa

Re: how to close a comet request outside of an event?

2007-04-27 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, * Is it possible, somehow, to end a request asynchronously (that is, outside the event method)? Because I keep getting "Out of file descriptor errors" since the END events come so terribly late after I do the close(). you'd still get "too many open files" errors

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-04-27 Thread Filip Hanik - Dev Lists
Rémy Maucherat wrote: On 4/27/07, Sebastiaan van Erk <[EMAIL PROTECTED]> wrote: > GET parameters, ie parameters in the URL will work. > However, using Comet you shouldn't rely on parameters in the body, the > body if for you usage, and your usage alone. Seems to me that this is a pretty common u

Re: Issues concerning Tomcat clustering

2007-04-29 Thread Filip Hanik - Dev Lists
Vinícius Paiva wrote: Hi, In the tomcat clustering documentation it's not even mentioned the problems concerning applications with the usage of critical sessions/semaphores (concurrency) and in-memory caching of data. Has anybody any suggestion of reading about how to deal with this?

Re: Tomcat 6 sending only header for first chunked http response

2007-04-29 Thread Filip Hanik - Dev Lists
[EMAIL PROTECTED] wrote: Tomcat 6 Http Connector will first send only the header during a large chunked response. This causes problems for some of our client processors. In 5 and 5.5 with the same code, the header is sent along with some of the body content. We are doing no flush until all conte

Re: -XX:+HeapDumpOnOutOfMemoryError

2007-04-30 Thread Filip Hanik - Dev Lists
working directory is the "bin" directory Filip [EMAIL PROTECTED] wrote: In the working directory of the process. Of course you need enough free disk space. working directory means something like: /TomcatServer/work/Catalina/localhost/webapp_name/ ? because there is nothing there :( and

Re: Comet: problem with request.getParameter() in Comet POST requests

2007-05-02 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: -Original Message- From: Sebastiaan van Erk [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 7:24 PM To: Tomcat Users List Subject: Re: Comet: problem with request.getParameter() in Comet POST requests GET parameters, ie parameters in the URL

Re: Comet and Async Servlets - Architecture Question

2007-05-03 Thread Filip Hanik - Dev Lists
Praveen Balaji wrote: Thanks Sebastiaan. I came to about the same conclusions as you listed out here. I also saw your post on parsing POST parameters and I think it's going to create problems for me as well! I am unsure the API would be "improved". I simply think, as Filip pointed out ear

Re: problem with tomcat clusters sso with apache load balancer

2007-05-03 Thread Filip Hanik - Dev Lists
I don't think the clusterSSO implementation ever really got finished. It got submitted, but never completed. At least that was my impression of it Filip Alejandro Fernandez wrote: Hi, I am Alejandro from Argentina. I am having an issue with tomcat 6.0.10 using clusters and single sign on, wh

Re: NIOSelector busy wait

2007-05-03 Thread Filip Hanik - Dev Lists
it will return 0 after the timeout has expired if there was no events. most likely its not a bug in the JDK but in your linux kernel/distro so far I haven't seen the behavior you've explained. Filip Sebastiaan van Erk wrote: Hi, I have a problem that sometimes the NIO selector goes into a bus

Re: comet: async close exceptions

2007-05-04 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, Due to the latest changes (r535030) to the Comet code I'm getting the AsyncCloseExceptions again, meaning that my synchronization which worked before is not correct anymore. What I am doing is synchronizing all access to the response output stream and synchroni

Re: comet: async close exceptions

2007-05-04 Thread Filip Hanik - Dev Lists
Filip Hanik - Dev Lists wrote: Sebastiaan van Erk wrote: Hi, Due to the latest changes (r535030) to the Comet code I'm getting the AsyncCloseExceptions again, meaning that my synchronization which worked before is not correct anymore. What I am doing is synchronizing all access t

Re: [Fwd: static fields suddenly started sharing]

2007-05-07 Thread Filip Hanik - Dev Lists
Roger Parkinson wrote: I have two different applications and they both make use of a common jar library. The common library has several static fields. Up until last week the static fields in one application never saw the static fields in the other but I changed something and suddenly they do. Al

Re: NioEndpoint closes connection upon timeout

2007-05-08 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: The NioEndpoint seems to close a connection during the timeout handling. My client reacts to a connection failure with a resubmit of the last request, and I see this in the log: 07.05.2007 22:08:14 comettest.CometServlet event WARNUNG: BEGIN(16) POST /comettest/comet/reque

Re: Clustering - not joining the group

2007-05-08 Thread Filip Hanik - Dev Lists
it comes down to multicasting working properly on your system. that is where your troubleshooting efforts need to go. Sometimes removing mcastBindAddr helps. Filip Vinu Varghese wrote: Hi, I have a clustered environment which have 4 machines that are in the same private switch. I have conf

Re: Odd tomcat 6.1.0 problem

2007-05-08 Thread Filip Hanik - Dev Lists
send us a small test app please Filip Adam Lipscombe wrote: Folks I have an odd problem that occurs on TC6 running on fedora core 6. Apache in fronting TC. When I try to pass an HTML parameter from a JSP it is not in present in the request object for the receiving JSP. I get the following in

Re: NioEndpoint closes connection upon timeout

2007-05-08 Thread Filip Hanik - Dev Lists
Reich, Matthias wrote: -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 08, 2007 11:00 AM However, the Javadoc of enum EventSubType says: TIMEOUT - the connection timed out (sub type of ERROR); note that this

Re: Tomcat hprof empty file

2007-05-08 Thread Filip Hanik - Dev Lists
maybe try to run it under another service manager, like the Java Service Wrapper http://people.apache.org/~fhanik/wrapper.html to rule out the case, that its a win service problem Filip Jason Polites wrote: Hi all, I am running Tomcat 5.5.23 on a Win32 platform as an NT Service, with the nati

Re: Error when increasing Tomcat's maximum memory pool

2007-05-08 Thread Filip Hanik - Dev Lists
32 bit limitations, the entire process heap is around 2GB, leaving you with the number you found for the java heap Filip Ian H wrote: I have Tomcat 5.5 running on a Windows 2000 machine having 4GB of RAM (recently upgraded from 2GB). The JVM in place is 1.4.2_12. Using the "Configure tomcat"

Re: Runaway catalina.out logging

2007-05-08 Thread Filip Hanik - Dev Lists
change | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 & to 2>&1 | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 & ie, redirect stderr into stdout before passing it into the logger Filip Andy wrote: This is a correction of the Subject: which I failed to set

Re: Runaway catalina.out logging

2007-05-08 Thread Filip Hanik - Dev Lists
- Dev Lists wrote: change | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 & to 2>&1 | /u00/tomcat/bin/logger "$CATALINA_BASE"/logs/catalina 2>&1 & ie, redirect stderr into stdout before passing it into the logger Filip Andy wr

Re: WAR deployment incomplete (sometimes)

2007-05-09 Thread Filip Hanik - Dev Lists
here is what happens, your start copying in a large .war file, tomcat detects this file before the upload is complete and starts expanding it, tomcat receives a ZipFileCorrupted error (as the upload hasn't completed) and aborts the deployment you need to work around the fact that your upload i

Re: How to configure Tomcat response timeout?

2007-05-09 Thread Filip Hanik - Dev Lists
have you considered that the client might be aborting the connection because you are taking too long to respond? Filip Propes, Barry L wrote: I belive you can do it in a connection pool setting. -Original Message- From: Ignacio Iborra [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09,

Re: [install as win service] procrun windows executable ? is tomcat5.exe obsolete?

2007-05-10 Thread Filip Hanik - Dev Lists
the procrun files for tomcat can be found in Tomcat SVN, http://svn.apache.org/viewvc/tomcat/connectors/trunk/procrun/bin/ you can also try out an alternative wrapper, works in a similar fashion http://people.apache.org/~fhanik/wrapper.html Filip Pascal Fonte wrote: Hi, I want to install tomca

Re: Tomcat 5.5 clustering

2007-05-10 Thread Filip Hanik - Dev Lists
Gross, Keith wrote: I was wondering what people use for cluster monitoring and administration. I have my test cluster set up with the farm deployer so deployment/undeployment across the cluster are easy enough. What I'm looking for is something like what the admin and manager appliactions can do

Re: SingleSignOn Valve Not Challenging

2007-05-10 Thread Filip Hanik - Dev Lists
you're expecting the * (wildcard) to apply to stuff in your realm, it doesn't. I believe you have to define the roles in (security-role) web.xml, and your * applies to the roles defined by security-role Filip Daniel Curran wrote: I have added an auth constraint * I am now challenged bu

Re: Mailing List on Tomcat?

2007-05-10 Thread Filip Hanik - Dev Lists
James is a better platform http://james.apache.org/ Filip Johnny Kewl wrote: Has anyone seen or heard of a mailing list built on Tomcat? More I use "this" mailing list, more I appreciate the technology, and I think Tomcat is an almost perfect platform for the technology. Sort of thing that ca

Re: urgent help needed

2007-05-17 Thread Filip Hanik - Dev Lists
there is something wrong in this sucker /opt/docu/tst/tomcat4/webapps/ROOT/WEB-INF/lib/dmvirtuallink.jar are you using symlinks? if so, http://tomcat.apache.org/tomcat-4.1-doc/config/context.html#allowLinking you end up getting a FileNotFoundException, turning on debug logging, might yield mo

Re: tomcat-dbcp from Maven

2007-05-21 Thread Filip Hanik - Dev Lists
the maven jars/upload is still in process, if you want to contribute help, take a look at res/maven in the tomcat 6 tree Filip lightbulb432 wrote: The tomcat-dbcp library doesn't seem to be available from the Maven repository for Tomcat at http://tomcat.apache.org/dev/dist/m2-repository or rep

Re: How to increase timeout while deploying war via the manager webapp

2007-05-21 Thread Filip Hanik - Dev Lists
there is a disableUploadTimeout flag on the element, are you sure tomcat is timing out the connection? Filip ben short wrote: Hi, I am trying to deploy a large war via the manager webapp over a slow connection. After about 10 mins the connection times out. Is it possible to increase this time

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Filip Hanik - Dev Lists
$CATALINA_HOME/lib Filip Brian Millett wrote: Hello, I've setup my tomcat 6.0.13 with the CATALINA_HOME=/opt/tomcat and CATALINA_BASE=/opt/webBaseDir on a FC6 system. I read in http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html "Common - This class loader contains additional class

Re: questions about the classloader in tomcat 6

2007-05-21 Thread Filip Hanik - Dev Lists
Brian Millett wrote: Filip Hanik - Dev Lists escribío: $CATALINA_HOME/lib Doesn't that defeat the CATALINA_BASE setup for multiple instances of tomcat? I always get the BASE and HOME mixed up. but I believe HOME is the installation of all the shared binaries, hence all c

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-21 Thread Filip Hanik - Dev Lists
did you try Class singletongClassObj = this.getClass().getClassLoader().loadName(singletonClassName); Filip Mike Peremsky wrote: I think this may be a class loader issue, but am not sure as I have never really worked with them before. I am putting together a JAR file that contains a set of c

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-22 Thread Filip Hanik - Dev Lists
t is looking for are located in the /apache-tomcat-5.5.23/webapps/myExternalApp/WEB-INF/classes directory. Filip Hanik - Dev Lists wrote: did you try Class singletongClassObj = this.getClass().getClassLoader().loadName(singletonClassName); Filip Mike Peremsky wrote: I think this may

Re: comet read event

2007-05-22 Thread Filip Hanik - Dev Lists
it could be because the data from the request already came in with the request. when the BEGIN happens, perform the actions as if there was a READ as well, ie, empty out the buffer. Filip Peter Warren wrote: The following client code generates a comet BEGIN event on the server but not a subse

Re: Cannot get SingleonLoader (from jar) to find classes outside JAR

2007-05-22 Thread Filip Hanik - Dev Lists
Lists <[EMAIL PROTECTED]> wrote: that work around is probably not what you want. You've just disabled the ability to reload your app correctly. Try using another classloader, maybe the Thread.currentThread().getContextClassLoader() where are you storing the class that is trying

Re: TomCat, Reverse Proxy & Business Objects...

2007-05-22 Thread Filip Hanik - Dev Lists
proxyName is only for the Host name, which can also be accomplished by adding ProxyPreserveHost On in apache, and hence be able to support more than just one URL. So remove proxyName from the connector and added the above statement to your httpd config in terms of what you are doing, that's

Re: comet read event

2007-05-23 Thread Filip Hanik - Dev Lists
take a look at the documentation, the way you are reading it is incorrect. you need to take advantage of the available() method Filip Peter Warren wrote: My BEGIN block in my comet servlet now looks like the code below (added a while loop to read until the buffer is empty). Is that what you ha

Re: Tomcat 6 + SSL

2007-05-23 Thread Filip Hanik - Dev Lists
if you are using APR, then you need a different set of options in the element, take a look at the SSL documentation again Filip Roger Roger wrote: Yes I'm using APR. The dll is in de bin directory. Thanks for pointing this out. Deleting the dll didn't resolve the problem though. I'll try this

Re: comet read event

2007-05-23 Thread Filip Hanik - Dev Lists
ot;); } } while (is.available() > 0); return inputBuffer.toString(); } Filip Hanik - Dev Lists wrote: take a look at the documentation, the way you are reading it is incorrect. you need to take advantage of the available() method Filip Peter Warren wrote:

Re: Is there opportunity to replicate configuration files for nodes of cluster?

2007-05-28 Thread Filip Hanik - Dev Lists
nope, not at this time Filip Corobitsyn Roman wrote: Hello list Is there opportunity to replicate configuration files for nodes of cluster? Thx - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
if your service method is invoked means you are not running the correct connector. You must run the NIO or the APR connector. take a look at the "protocol" attribute in http://tomcat.apache.org/tomcat-6.0-doc/config/http.html Filip Márton Szabolcs wrote: Hi! Ive been trying to use tomcat co

Re: Jasper compiler crashes

2007-05-29 Thread Filip Hanik - Dev Lists
What I like to do is to compile my JSPs just like Tomcat would do it runtime, so that I can keep the ability to recompile my JSP files. http://people.apache.org/~fhanik/precompile.html http://people.apache.org/~fhanik/tomcat-6-precompile.xml I just whipped up the v6 script, but I believe it to

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
send us a link to your test WAR file, and I can give it a shot, looks good to me. Filip Márton Szabolcs wrote: Hi! i set my connector like this. it should be correct, isnt it? CometSampleServlet sample.CometSampleServlet CometSampleServlet /CometSampleServlet public

Re: Tomcat stopped logging

2007-05-29 Thread Filip Hanik - Dev Lists
ran out of disk space or the file is too large Filip Propes, Barry L wrote: Hello, I have a strange situation. Tomcat has stopped logging today on my prod. server. Not sure why. All of the app seems to be working just fine, but the key log file stopped generating new info. I have a schedu

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
i would like if somebody, who made this cometprocessor worked describe the things what have to do. I already done what is in tomcat docs (advanced NIO) regards, Saby 2007/5/29, Filip Hanik - Dev Lists <[EMAIL PROTECTED]>: send us a link to your test WAR file, and I can give it a shot, looks g

Re: tomcat comet, not working...

2007-05-29 Thread Filip Hanik - Dev Lists
ut stream and generates both a begin event and then a subsequent read event. Thanks, Peter (I'm the guy who started the "comet read event" thread. I never heard back after you asked me which connector I was using, and I'm still struggling with it.) Filip Hanik - Dev Lists wrot

Re: Web application receives request parameters sent to another application on Tomcat 6

2007-05-29 Thread Filip Hanik - Dev Lists
What connector are you using? ie, how does the element look in server.xml? Filip Dejan Krsmanovic wrote: We have two applications running on the same Tomcat instance. These two applications are used by completely different people and one of them has much higher traffic than another one. Recen

Re: Jasper compiler crashes

2007-05-30 Thread Filip Hanik - Dev Lists
Rashmi Rubdi wrote: On 5/29/07, Berglas, Anthony <[EMAIL PROTECTED]> wrote: Thanks for that, but I don't see how it will help. If you look below it is the jasper2 that is causing me grief, which is essentially the same as yours. How long does it take to precompile the JSPs. Is it several JSP

Re: SSO session replication within TC 5.5.23 cluster

2007-05-30 Thread Filip Hanik - Dev Lists
valve enabled. I wanted to know if TC 5.5.23 supports SSO session replication ? Googling tells me that a patch was submitted for this, http://fabien.carrion.free.fr/TomcatCluster.html and even the catalina-cluster.jar has the ClusterSingleSignOn valve. But TC mailing lists suggest that the supp

Re: tomcat 6, clustering, FarmDeployer

2007-05-31 Thread Filip Hanik - Dev Lists
hi Kristian, Farm deployer is currently broken, has been for a while and needs to be completely revised. Filip Kristian Rink wrote: Folks; being knee-deep into building a test system to see whether our clustered applications also will work in a tc 6.0 clustered environment (currently they ru

Re: Apache LogFormat on tomcat with APR?

2007-05-31 Thread Filip Hanik - Dev Lists
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html check out AccessLogValve Filip robert lazarski wrote: Hi all, I have a requirement to get in our logs some data - in Apache the log format is: LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{forensic-id}n\"

Re: NIOSelector busy wait

2007-06-01 Thread Filip Hanik - Dev Lists
Sebastiaan van Erk wrote: Hi, Filip Hanik - Dev Lists wrote: it will return 0 after the timeout has expired if there was no events. most likely its not a bug in the JDK but in your linux kernel/distro I just found the Sun bug report + workaround confirming this issue as a Linux JDK bug. The

Re: APR not working

2007-06-01 Thread Filip Hanik - Dev Lists
you might have the wrong version of APR or tcnative, when the system stops, do a kill -3 on the process to get the thread dump Filip [EMAIL PROTECTED] wrote: TOMCAT: 6.0.13 OS: linux-2.6.18-4-686 JAVA: java-1.5.0-sun-1.5.0.10 i tried to run with APR, followed http://tomcat.apache.org/tomcat

Re: [solved] comet read event

2007-06-01 Thread Filip Hanik - Dev Lists
s.read(buf); // can throw an IOException if (n > 0) { inputBuffer.append(new String(buf, 0, n)); } else if (n < 0) { return ("read error"); } } while (is.available() > 0); return inputBuffer.toStr

Re: NIOSelector busy wait

2007-06-01 Thread Filip Hanik - Dev Lists
Jeanfrancois Arcand wrote: Hi, Sebastiaan van Erk wrote: Hi, Filip Hanik - Dev Lists wrote: it will return 0 after the timeout has expired if there was no events. most likely its not a bug in the JDK but in your linux kernel/distro I just found the Sun bug report + workaround confirming

Re: [maybe not solved] comet read event

2007-06-02 Thread Filip Hanik - Dev Lists
ot send headers, cometgui is 100% manual :) Filip Peter Filip Hanik - Dev Lists wrote: you're treading dangerous waters my friend. the comet is somewhat like a real socket, and sending up new HTTP headers might end up just being data for the Comet servlet. Filip Peter Warren wrote:

Re: comet read event

2007-06-04 Thread Filip Hanik - Dev Lists
why don't you make your test available, I'll run it through Filip Peter Warren wrote: Yes, I'm using the NIO connector. Here is the config line from my server.xml: Are there any other configuration options I need to set? Peter Filip Hanik - Dev Lists wrote: and yo

Re: comet read event

2007-06-04 Thread Filip Hanik - Dev Lists
w an IOException if (n > 0) { inputBuffer.append(new String(buf, 0, n)); log("Read " + n + " bytes: " + new String(buf, 0, n) + " for session: " + request.getSession(true).getId()); } else if (n < 0) { log(&

Re: DeltaManager cannot receive message through TCP channel in Tomcat cluster

2007-09-25 Thread Filip Hanik - Dev Lists
you probably have some rogue java process still running somewhere with clustering enabled, Filip Daniel M Garland wrote: Hi all, I've been running two Tomcat 5.5.20 servers in a cluster for some time on Mac OSx but we've recently moved to 64-bit architecture (Debian etch) . I tried as far a

Re: Setting ClientAuth parameter to true

2007-09-26 Thread Filip Hanik - Dev Lists
Your trust store will need to contain the cert the client is supposed to send up, Filip [EMAIL PROTECTED] wrote: Hi, I am unable to set client authentication for SSL in tomcat 5.5.2. I have generated the certificate for the client and imported the same into the server's keystore so that t

Re: Session Replication

2007-09-27 Thread Filip Hanik - Dev Lists
yeah, but if you bind to 127.0.0.1 how do you expect clustering to work between nodes? :) Filip Andrew Hole wrote: Hello everyone! For using Tomcat session clustering I need to put the following component in all nodes?

Re: Tomcat 5.5.25 -> 6.0.14 upgrade problem

2007-09-27 Thread Filip Hanik - Dev Lists
hibernate is using the org.apache.commons.dbcp pool, so you need to configure that one, or tell hibernate to use tomcat's pool the clue here is, that tomcat's connection pool (while the same as commons.dbcp) has the package renamed to org.apache.tomcat.dbcp. this is a hibernate problem, your

Re: Session Replication

2007-09-27 Thread Filip Hanik - Dev Lists
Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Subject: Re: Session Replication yeah, but if you bind to 127.0.0.1 how do you expect clustering to work between nodes? :) Well, you could run all the Tomcat instances on the same box. What's that saying about eggs and baskets? - C

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