Re: Tomcat memory allocation

2011-12-09 Thread Ronald Klop (Mailing List)
Op vrijdag, 9 december 2011 16:11 schreef Pid : On 09/12/2011 14:52, Martin O'Shea wrote: > -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: 09 Dec 2011 14 46 > To: Tomcat Users List > Subject: RE: Tomcat memory allocation > >> From: Marti

timeout exception is ignored?

2011-12-01 Thread Ronald Klop (Mailing List)
Hi, The method org.apache.catalina.connector.Request.parseParameters() contains this code. try { if (readPostBody(formData, len) != len) { return; } } catch (IOException e) { // Cl

Re: [OT]RE: Maximum memory that can be assigned to Tomcat on windows platform

2011-12-01 Thread Ronald Klop (Mailing List)
Op donderdag, 1 december 2011 09:39 schreef Casper Wandahl Schmidt : See below. I hope MS Outlook does some decent indend so my response is clear -.- -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: 30. november 2011 18:51 To: Tomcat

Re: HOW TO detect what app server you're running in

2011-10-25 Thread Ronald Klop (Mailing List)
Does this help? public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { System.out.println("serverinfo: " + getServletContext().getServerInfo()); } Ronald. Op dinsdag, 25 oktober 2011 13:33 schreef Bob DeRem

RE: Tomcat clustering session attribute is changed without request

2011-10-25 Thread Ronald Klop (Mailing List)
Hi, Replication of the attributes is done by the cluster valve. http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-valve.html If you manage to call that code from your own application, than you can do what you want. But that is not default functionality of Tomcat. You have to make it yours

Re: Tomcat clustering session attribute is changed without request

2011-10-24 Thread Ronald Klop (Mailing List)
Op maandag, 24 oktober 2011 12:55 schreef "Hodchenkov, Paul" : Hi all, I have configured tomcat 7 cluster by using [1] with DeltaManager and it works fine. However I have the following 2 questions: 1) My application stores session map in memory(admin can force logout of any

Re: URL "simplification"

2011-10-10 Thread Ronald Klop (Mailing List)
Simplified explanation: Apache httpd starts as user root. Binds port 80 and than drops privileges by setuid("apache") or setuid("nobody"). In java you can't easily drop privileges. So if you start as root in Java you can't easily change user. Of course you can call native code to do this. And t

Re: AW: Securing Tomcat cluster communication

2011-10-06 Thread Ronald Klop (Mailing List)
A 'connector' is used between for example Apache httpd and Tomcat. It is not used between Tomcat nodes in a cluster. Ronald. Op donderdag, 6 oktober 2011 16:22 schreef Alexander Diedler : Hello, Please search for "secret" in http://tomcat.apache.org/connectors-doc/reference/workers

Re: AW: Preferred configuration with Hardware Loadbalancer

2011-10-06 Thread Ronald Klop (Mailing List)
ander -Ursprüngliche Nachricht- Von: Ronald Klop (Mailing List) [mailto:ronald-mailingl...@base.nl] Gesendet: Donnerstag, 6. Oktober 2011 10:44 An: Tomcat Users List Betreff: Re: Preferred configuration with Hardware Loadbalancer What do you mean by Apache Webserver? Do you mean A

Re: Preferred configuration with Hardware Loadbalancer

2011-10-06 Thread Ronald Klop (Mailing List)
What do you mean by Apache Webserver? Do you mean Apache Tomcat or Apache httpd? And do you want Failover (active-passive) or Loadbalancing (active-active)? Ronald. Op donderdag, 6 oktober 2011 10:36 schreef Alexander Diedler : Hello, I am just planning a Application cluster fo

Re: IllegalStateException: The response object has been recycled and is no longer associated with this facade

2011-08-18 Thread Ronald Klop
Op woensdag, 17 augustus 2011 13:41 schreef Mark Thomas : On 17/08/2011 12:36, Ronald Klop wrote: > Hi, > > I did some experiments past days on my live servers and have more > information. > > The problem occurs with 7.0.19 and 7.0.20 with the NIO connector, b

Re: wiki: tomcat 7 changelog has old link

2011-08-18 Thread Ronald Klop
Aha, thanks. Fixed it. Op donderdag, 18 augustus 2011 14:00 schreef Mark Thomas : On 18/08/2011 11:13, Ronald Klop wrote: > Hi, > > Since the branch of tomcat 7 the link on > https://wiki.apache.org/tomcat/FAQ/KnownIssues is incorrect. > I don't have an account

wiki: tomcat 7 changelog has old link

2011-08-18 Thread Ronald Klop
Hi, Since the branch of tomcat 7 the link on https://wiki.apache.org/tomcat/FAQ/KnownIssues is incorrect. I don't have an account to fix it. Cheers, Ronald.

Re: IllegalStateException: The response object has been recycled and is no longer associated with this facade

2011-08-17 Thread Ronald Klop
Op woensdag, 17 augustus 2011 15:02 schreef Ronald Klop : Op woensdag, 17 augustus 2011 14:28 schreef Mark Thomas : > > > On 17/08/2011 13:20, Ronald Klop wrote: > > Sometimes. Mostly I run ImageMagick in a separate process. But sometimes > >

Re: IllegalStateException: The response object has been recycled and is no longer associated with this facade

2011-08-17 Thread Ronald Klop
Op woensdag, 17 augustus 2011 14:28 schreef Mark Thomas : On 17/08/2011 13:20, Ronald Klop wrote: > Sometimes. Mostly I run ImageMagick in a separate process. But sometimes > it does things with javax.imagio. > I'm curious about the link between them. And what happ

Re: IllegalStateException: The response object has been recycled and is no longer associated with this facade

2011-08-17 Thread Ronald Klop
Op woensdag, 17 augustus 2011 13:41 schreef Mark Thomas : On 17/08/2011 12:36, Ronald Klop wrote: > Hi, > > I did some experiments past days on my live servers and have more > information. > > The problem occurs with 7.0.19 and 7.0.20 with the NIO connector, b

Re: IllegalStateException: The response object has been recycled and is no longer associated with this facade

2011-08-17 Thread Ronald Klop
Op zondag, 14 augustus 2011 23:46 schreef Konstantin Kolinko : 2011/8/14 Ronald Klop : > > I'm running Tomcat 7.0.19 to scale and serve images for use on a lot of > websites. Since the upgrade from 7.0.16 to 7.0.19 I get the following stacks

IllegalStateException: The response object has been recycled and is no longer associated with this facade

2011-08-14 Thread Ronald Klop
Hi, I'm running Tomcat 7.0.19 to scale and serve images for use on a lot of websites. Since the upgrade from 7.0.16 to 7.0.19 I get the following stacks now and than. java.lang.IllegalStateException: The response object has been recycled and is no longer associated with this facade at org.ap

Re: getAllClusterSessions gives OptionalDataException

2011-07-14 Thread Ronald Klop
Op vrijdag, 8 juli 2011 21:55 schreef Christopher Schultz : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 7/8/2011 5:33 AM, Ronald Klop wrote: > After some fun with debugging Tomcat on my live server (because I > couldn't reproduce it in test) it l

Re: getAllClusterSessions gives OptionalDataException

2011-07-08 Thread Ronald Klop
Op donderdag, 7 juli 2011 18:03 schreef Filip Hanik - Dev Lists : On 6/28/2011 2:31 AM, Konstantin Kolinko wrote: > 2011/6/23 Ronald Klop: >> Hi, >> >> I have an exception when one on my Tomcat nodes restarts. The session are >> not synced and user comp

Re: getAllClusterSessions gives OptionalDataException

2011-06-24 Thread Ronald Klop
, then check what version they are best Filip On 6/23/2011 10:14 AM, Ronald Klop wrote: > Hi, > > I have an exception when one on my Tomcat nodes restarts. The session are not synced and user complain about being logged out. I was > running 6.0.32 and had the problem. Now I

getAllClusterSessions gives OptionalDataException

2011-06-23 Thread Ronald Klop
Hi, I have an exception when one on my Tomcat nodes restarts. The session are not synced and user complain about being logged out. I was running 6.0.32 and had the problem. Now I'm running a custom build of 6.0.33 from yesterday. I added a little code which prints ' SEVERE: name=user'. The key

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-17 Thread Ronald Klop
Op donderdag, 16 juni 2011 18:55 schreef Christopher Schultz : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/16/2011 11:40 AM, Ronald Klop wrote: > I created a release package. First had to find a computer with Windows, > because it needs wine (I didn

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-16 Thread Ronald Klop
54 schreef Christopher Schultz : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/16/2011 6:39 AM, Ronald Klop wrote: > A little lobby is started: > http://marc.info/?l=tomcat-dev&m=130805807619349&w=2 > > Thanks, but no reply yet from jfclere. He mus

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-16 Thread Ronald Klop
sdag, 14 juni 2011 23:59 schreef Christopher Schultz : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 6/14/2011 6:23 AM, Ronald Klop wrote: > I see the issue if solved in an upcoming version of Tomcat. Thank you > very much for that. But can I expect an upcoming ver

Re: error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-14 Thread Ronald Klop
? Ronald. Op vrijdag, 10 juni 2011 13:03 schreef Ronald Klop : Hi, I'm running a 4 node cluster and seeing the same exception as described in this issue. https://issues.apache.org/bugzilla/show_bug.cgi?id=51306 What can I do to workaround it or what can I information

error in clustering: NullPointerException at java.io.ObjectOutputStream$BlockDataOutputStream.getUTFLength

2011-06-10 Thread Ronald Klop
Hi, I'm running a 4 node cluster and seeing the same exception as described in this issue. https://issues.apache.org/bugzilla/show_bug.cgi?id=51306 What can I do to workaround it or what can I information can I provide to help? I'm running 6.0.32 with a securitymanager on Debian 5. Java ve

tomcat 6.0.33?

2011-05-30 Thread Ronald Klop
Hi, while (true) { sleep(some weeks); askForTomcat(version + 1); } I know, I know. This question returns, now and then. But is there a possibility for the Tomcat developers to start a vote about 6.0.33? I would like to use it, because there are some bugs fixed, which I'm seeing. I read

Re: [OT] Protecting against HTTP response splitting

2011-03-31 Thread Ronald Klop
Op woensdag, 30 maart 2011 22:12 schreef Christopher Schultz : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I was playing around with findbugs today and saw a security warning I've never seen before: "HTTP parameter directly written to HTTP header output in [somefile.jav

Re: The Maximum limit of an http header size

2011-03-18 Thread Ronald Klop
Ai. Touche. Op vrijdag, 18 maart 2011 11:43 schreef Mark Thomas : On 18/03/2011 09:51, Ronald Klop wrote: > It is limited by the amount of memory in your JVM. Interesting guess but wrong. The maximum size for the http headers for any one request is Integer.MAX_VALUE, 2^3

Re: The Maximum limit of an http header size

2011-03-18 Thread Ronald Klop
It is limited by the amount of memory in your JVM. Ronald. Op vrijdag, 18 maart 2011 05:26 schreef rajini maski : Any idea about what might be the maximum limit of a maxHttpHeadSize. The maximum size of the request and response HTTP header, specified in bytes. If not specified,

Re: java.io.NotSerializableException: org.apache.catalina.realm.GenericPrincipal

2011-03-14 Thread Ronald Klop
Op vrijdag, 11 maart 2011 13:32 schreef Ronald Klop : Hi, https://issues.apache.org/bugzilla/show_bug.cgi?id=47502 Because this issue is fixed I re-enabled using the security-constraint in web.xml to protect some pages in stead of using my own workaround. But now I get a

java.io.NotSerializableException: org.apache.catalina.realm.GenericPrincipal

2011-03-11 Thread Ronald Klop
Hi, https://issues.apache.org/bugzilla/show_bug.cgi?id=47502 Because this issue is fixed I re-enabled using the security-constraint in web.xml to protect some pages in stead of using my own workaround. But now I get a somewhat similar exception. This is running Tomcat 6.0.32 (directly from yo

Re: [OT] OutOfMemoryError: GC overhead limit exceeded

2011-02-16 Thread Ronald Klop
Op woensdag, 16 februari 2011 19:18 schreef Christopher Schultz : Ronald, On 2/16/2011 12:48 PM, Ronald Klop wrote: > I see the same problem with jstack and friends if a process is gc'ing a > lot. Interesting. I don't have verbose GC enabled (can you enable that after

Re: [OT] OutOfMemoryError: GC overhead limit exceeded

2011-02-16 Thread Ronald Klop
Op woensdag, 16 februari 2011 18:17 schreef Christopher Schultz : Chuck, On 2/16/2011 11:37 AM, Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: [OT] OutOfMemoryError: GC overhead limit exceeded > >> Here's what jmap reports t

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Ronald Klop
For the record: JAF (activation.jar) is already in Java 6 (and that sucks :-)). Op woensdag, 26 januari 2011 11:52 schreef Michael Ludwig : What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Quote from the Tomcat docs: Unpackage the di

Re: Is memleak in tomcat 7.0.5 also in tomcat 6.0.30?

2011-01-20 Thread Ronald Klop
Op donderdag, 20 januari 2011 17:03 schreef Mark Thomas : On 20/01/2011 15:45, Mark Thomas wrote: > On 20/01/2011 15:29, Mark Thomas wrote: >> On 20/01/2011 11:50, Ronald Klop wrote: >>> Hi, >>> >>> In this mail thread there is mention of a memory lea

Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Ronald Klop
Su to the user running tomcat. Run 'jps'. Find the pid of the process running 'Bootstrap'. Run 'jstack '. This gives you the thread dump. The id's of the threads (in hex) correspond to the pid's (in decimal) of the threads in ps -H or top with threads on. You can also find the pid with ps like

Re: How to configure Tomcat/Coyote to deliver a P3P Header on Every Request

2011-01-14 Thread Ronald Klop
We do this with a filter mapped to /*. Ronald. Op vrijdag, 14 januari 2011 21:32 schreef Joseph Morgan : Using Tomcat 6.0.13, how do we configure the Coyote server to deliver a P3P header on every request, even if for a JavaScript, Image, CSS, etc? Jose

7.0.6 NPE in cluster syncing

2011-01-14 Thread Ronald Klop
Hi, Today I upgraded Tomcat from 7.0.5 to 7.0.6. Now I have these errors in de logs. Jan 14, 2011 4:24:50 PM org.apache.catalina.ha.tcp.ReplicationValve sendReplicationMessage SEVERE: Unable to perform replication request. java.lang.NullPointerException at org.apache.catalina.ha.tcp.Repl

Re: Apache Process going high even after restart of backend server tomcat

2011-01-11 Thread Ronald Klop
In 'the other thread' there is still the question open of why there is Thread.sleep() in the MuxServlet. Can be a reason for a lot of open connections in the httpd server. But until there is more information about the problem I don't have anything to add to this discussion anymore. Ronald.

Re: Need help in understanding tomcat thread dump

2011-01-11 Thread Ronald Klop
Op dinsdag, 11 januari 2011 12:11 schreef Amol Puglia :> Hello Team, I have taken thread dump for tomcat. I have analyzed it using Thread dump analyzer. After reading thread dump i am unable to point which thread is exactly causing the issue. kindly guide me to read thread dumps. Followi

RE: How to disable chunked encoding for the Http11NioProtocol connector.

2011-01-05 Thread Ronald Klop
What is the overhead of ending a tcp connection and creating a new one? Because you are removing the benefits of keep-alive here. Compare that with sending 6 extra bytes in a IP-packet that you are sending anyway. Ronald. Op woensdag, 5 januari 2011 16:29 schreef ilya goberman : Mark,

Re: Setting max file upload size

2010-12-29 Thread Ronald Klop
Set in server.xml. 3 GB might be very large. I don't know if the value is a long or an int in the internals of Tomcat. This is from my live server. Ronald. Op woensdag, 29 december 2010 17:03 schreef Anjib Mulepati : I am trying to upload the larger file through my app developed usi

+1 for 6.0.30 (was: Re: Http11NioProtocol error 505 (or 400))

2010-12-28 Thread Ronald Klop
Hi, May I vote +1 for a 6.0.30 in relation to this bug. Ronald. Op dinsdag, 28 december 2010 10:19 schreef Olaf Tomczak : Ok, I used Mark Thomas' patch that Roland suggested - created a clean instance of Tomcat with and without the patch and tested it with my request. Indeed the pa

Re: Http11NioProtocol error 505 (or 400)

2010-12-27 Thread Ronald Klop
I see similar errors. If it is the same there should be a fix in Tomcat 7.0.4 and 6.0.30 (not released yet) Something like this? https://issues.apache.org/bugzilla/show_bug.cgi?id=50072 Ronald. Op maandag, 27 december 2010 18:59 schreef Olaf Tomczak : Hi, I'm using Http11NioProtocol conn

Re: Tomcat dying on its own

2010-12-07 Thread Ronald Klop
Op dinsdag, 7 december 2010 09:52 schreef Rainer Jung : On 06.12.2010 23:36, Guillaume Carbonneau wrote: > On Mon, Dec 6, 2010 at 2:25 PM, Konstantin Kolinko > wrote: >> 2010/12/6 Guillaume Carbonneau: >>> Hi everyone, >>> My tomcat server seems to die on its own without leaving any back

Re: migrating to Tomcat 7, when

2010-12-03 Thread Ronald Klop
Op vrijdag, 3 december 2010 10:09 schreef Justin Case : Hi all, I see discussions about migration to Tomcat 7. Do you think it is the right moment to count your production apps on it? My thought is "no way Jose" but maybe I'm missing something... Thank you, JC The answer probab

Re: Comet while migrating to Tomcat 7

2010-12-02 Thread Ronald Klop
Op donderdag, 2 december 2010 20:37 schreef Pid :> On 12/2/10 3:28 PM, Ronald Klop wrote: > Hello, > > I'm trying Tomcat 7. The Comet classes have been moved from the > org.apache.catalina package to the org.apache.catalina.comet package. > That is fine by me. But fo

Comet while migrating to Tomcat 7

2010-12-02 Thread Ronald Klop
Hello, I'm trying Tomcat 7. The Comet classes have been moved from the org.apache.catalina package to the org.apache.catalina.comet package. That is fine by me. But for deployment reasons it would be easy if I can deploy the same war on Tomcat 6 and Tomcat 7. In that way I don't need a turn-ke

Re: [OT] How to obtain the id of the current process

2010-11-18 Thread Ronald Klop
That is why my Tomcats spawn a pool of sh scripts to have them run a unix command (ImageMagick, etc.) Forking of a threaded process is very expensive on a loaded server. Unix has to suspend all threads, than fork, do a lot of housekeeping and than resume all threads. After making a pool of runn

servlet-mapping order?

2010-11-08 Thread Ronald Klop
Hi, I have a couple of servlets and the mapping in web.xml is like this: EntityServlet /servlets/* RRDStatsServlet /servlets/rrdstats On startup EntityServlet sometimes complains that is does not know anything about path /servlets/rrdstats. This is

Re: JSP Precompilation and Servlet 3.0

2010-11-08 Thread Ronald Klop
+1 Precompiled jsp's with annotations in a jar. Op vrijdag, 5 november 2010 21:07 schreef Pid : On 05/11/2010 15:06, Christopher Schultz wrote: > Chuck, > > On 11/5/2010 10:57 AM, Caldarale, Charles R wrote: >>> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >>> Subject

Re: Malicious host is crashing my server

2010-11-08 Thread Ronald Klop
Use ngrep, tcpdump or wireshark to look at what he/she is requesting. If it is SQL injection you should rewrite your query's to use PreparedStatements. Ronald. Op zondag, 7 november 2010 18:31 schreef Assaf : Hi, It might be. But I am not sure how to find out more. Any suggestions? Assa

Re: running tomcat6 under a different user than root (debian)

2010-10-29 Thread Ronald Klop
If you have a webapp where users log in you can use there login/password to login on the database. A little bit inconvenient for the DBA but you don't have passwords on your servers. Ronald. Op vrijdag, 29 oktober 2010 15:42 schreef Rainer Frey : On Friday 29 October 2010 15:34:29 Mark Th

Re: RV: Session & Context variables architecture problem

2010-10-29 Thread Ronald Klop
Just query the database. Enable query caching in mysql. And only optimize in java if you see a bottleneck. My mysql does 15000 queries/sec. What is your expectation of number of queries? Ronald. Op donderdag, 28 oktober 2010 19:31 schreef falva...@geocom.com.uy: Dear All,

Re: how can i turn off "This is very likely to create a memory leak."

2010-10-29 Thread Ronald Klop
grep -v "memory leak" Op donderdag, 28 oktober 2010 15:44 schreef Leon Rosenberg : Hello, I investigated an issue (another thread) with new error messages after tomcat update: SEVERE: The web application [/moskitodemo] appears to have started a thread named [MoskitoMemoryPoolReader] but

Re: How to start a daemon without getting the warning?

2010-10-28 Thread Ronald Klop
You should call timer.cancel() on context stop. You can do this from a ServletContextListener. Ronald. Op woensdag, 27 oktober 2010 22:10 schreef Leon Rosenberg : Hello, I'm getting following warning with 6.0.29, after shutdown: SEVERE: The web application [/moskitodemo] appears to hav

Re: lock session in distributed environment

2010-10-15 Thread Ronald Klop
Op vrijdag, 15 oktober 2010 13:00 schreef Roman Makurin : On Fri, Oct 15, 2010 at 12:34:10PM +0200, Ronald Klop wrote: > Op vrijdag, 15 oktober 2010 10:02 schreef Roman Makurin : > > > > > >Hi All! > > > >I have an app which rely on session locking and its k

Re: lock session in distributed environment

2010-10-15 Thread Ronald Klop
Op vrijdag, 15 oktober 2010 10:02 schreef Roman Makurin : Hi All! I have an app which rely on session locking and its key point here. Everything work on single tomcat instance, but its completly broken in distributed env. So i want to know is there any way to get my app working without comp

Re: Deploy Dynamic Contexts

2010-10-07 Thread Ronald Klop
Op donderdag, 7 oktober 2010 11:49 schreef Rob Gregory : Hi Tomcat Community, Does anyone know if it is possible to dynamically create contexts on demand. I have a requirement to be able to ship a single application.war file and create multiple contexts from this without manually us

RE: tomcat 6.0 bottleneck

2010-10-05 Thread Ronald Klop
Op dinsdag, 5 oktober 2010 15:27 schreef mamalacation : n828cl, n828cl wrote: > > > Pretty much guaranteed that it's not Tomcat but your webapp that is > locking itself out of access to some resource (such as the database). > Take several thread dumps during the slowdown period and

RE: Tabbed browsers sharing session - work around.

2010-10-05 Thread Ronald Klop
sions. I.E.7 they are the same session! Thanks for your input. Kind Regards, Rob. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 10/4/2010 6:11 AM, Ronald Klop wrote: > You can run your test environment on another hostname. > > live.example.com > test.example.com > t

RE: Tabbed browsers sharing session - work around.

2010-10-04 Thread Ronald Klop
ssage----- From: Ronald Klop [mailto:ronald-mailingl...@base.nl] Sent: 04 October 2010 12:15 To: Tomcat Users List Subject: RE: Tabbed browsers sharing session - work around. Hi, Ok. I didn't understand that somebody chooses an environment dynamicly. The JSESSION cookie is tight to a host

Re: jsp-examples sessions

2010-10-04 Thread Ronald Klop
Do you use /jsp-examples for something? In production (or on all your systems) remove the jsp-examples context/webapp if you don't need it. In fact... remove all webapps which you don't use. Ronald. Op maandag, 4 oktober 2010 11:42 schreef rujin raj : Dear Support, I installed some a

Re: Tabbed browsers sharing session - work around.

2010-10-04 Thread Ronald Klop
You can run your test environment on another hostname. live.example.com test.example.com train.example.com Maybe use a login.example.com to redirect you to the right url after login. Ronald. Op maandag, 4 oktober 2010 11:03 schreef Rob Gregory : Hi Tomcat community, I'm after advi

Re: Serialization

2010-10-04 Thread Ronald Klop
What does ddm2 look like? Does it have a reference to the jsp object? Ronald. Op maandag, 4 oktober 2010 15:10 schreef Wolfgang Orthuber : Hello, my tomcat version is 5.5.17, my question concerns serialization of objects, below is a code section for writing and reading an object. If I

RE: Tabbed browsers sharing session - work around.

2010-10-04 Thread Ronald Klop
e hand and registering these somehow so that the names get resolved to the machine. If so this is not really an option as our application dynamically creates these environments. The application is not internet facing if that makes a difference. Regards Rob -Original Message----- From: R

Re: Howto: call a Servlet from another Servlet (Example)?!

2010-09-20 Thread Ronald Klop
You can use the RequestDispatcher. RequestDispatcher dispatcher = request.getRequestDispatcher("/userlist"); dispatcher.forward(request, response); Google gives you a lot of examples. Ronald. Op maandag, 20 september 2010 16:47 schreef Michael Stockhausen : Hello, I have create two S

Re: How to spwan child processes.

2010-08-23 Thread Ronald Klop
class OtherAppNotifier implements Runnable { public void run() { ... doe something... } } In your servlet: doGet() { processUserRequest(); new Thread(new OtherAppNotifier()).start(); } You can also use java.util.TimerTask or some other threadpool thing if this spawns too many t

Re: Tuning garbage collection

2010-07-22 Thread Ronald Klop
Op donderdag, 22 juli 2010 14:14 schreef paul womack :> laredotornado wrote: > Hi, > > I'm using Tomcat 6.0.26, Java 1.6 and wondering what tools/strategies you > use to tune your garbage collection parameters? My main strategy is to see if I have any cripping GC problems. If not, I leave t

Re: Question on ClientAbortException

2010-07-05 Thread Ronald Klop
Op vrijdag, 2 juli 2010 21:49 schreef Leo Donahue - PLANDEVX : http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/connector/ClientAbortException.html What does this mean exactly? A user makes a request for a resource and closes the browser before they get the response? ..

RE: Does GC Really Matter (In This Situation)?

2010-06-23 Thread Ronald Klop
Op woensdag, 23 juni 2010 14:31 schreef "Robinson, Eric" : > You can monitor the gc with jstat. > jstat -gc 10s > This wil show you the memory usage of a java instance with the time spent in GC. > If it does 0.9 sec. of GC every sec. yare running inefficient. :-) Thanks. I guess I

Re: Does GC Really Matter (Is This Situation)?

2010-06-23 Thread Ronald Klop
Op dinsdag, 22 juni 2010 18:33 schreef "Robinson, Eric" : This is a similar question to one already being discussed in the list with the subject "Setting the Right Amount of Memory". We have 160 instances of tomcat on the same server, with most instances configured to use 64-96MB of RAM.

Re: Tomcat 4.1.30 failed to startup with 4GB memory

2010-05-31 Thread Ronald Klop
Op maandag, 31 mei 2010 17:40 schreef John Mok :> Hi, I am running Tomcat 4.1.30 on Ubuntu Linux 8.04.4 LTS. After moving the application from a 32-bit machine to a 64-bit machine with 4GB memory, suddenly tomcat failed to startup with the following error :- >Stopping service Tomcat-Standa

clustering errors in 6.0.26 with multiple contexts

2010-05-19 Thread Ronald Klop
Hello, Since I'm running 6.0.26 I have clustering errors on startup of some contexts. I only see this on servers with multiple clustered contexts. I don't know if that is related. In 6.0.24 everything worked ok for months. Today I caught the stack below on startup after which I get a 60 second

Re: Tomcat classpath fpr jar-within-jar

2010-04-27 Thread Ronald Klop
Op maandag, 26 april 2010 19:00 schreef Christopher Schultz : -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ronald, On 4/26/2010 8:53 AM, Ronald Klop wrote: > That is not possible in Java (not only in Tomcat, but not possible in > any java application). You must extract jar B fr

Re: Tomcat classpath fpr jar-within-jar

2010-04-26 Thread Ronald Klop
That is not possible in Java (not only in Tomcat, but not possible in any java application). You must extract jar B from jar A and put both on the classpath. But it would be a nice feature and you can probably vote for an issue about it in the bug database of Sun/Oracle. Ronald. Op maandag,

Re: getServerName returns 'localhost'

2010-03-03 Thread Ronald Klop
Did you do something like this in server.xml? And your client goes to www.example.com, but you getServerName() returns "localhost" in stead of "www.example.com"? Ronald. Op woensdag, 3 maart 2010 14:19 schreef vgud : Users use tomcat directly. My server responds to different domai

Re: 6.0.19 feature to not swallow input if the connection is going to be closed

2010-01-15 Thread Ronald Klop
Hello, I think this is an interesting question. I wonder why there is no answer. Ronald. Op vrijdag, 8 januari 2010 17:20 schreef Lock Ian IC : Hi There was a feature introduced in 6.0.19 to not swallow the inputStream if the servlet throws an exception and the connection is going t

Re: Tips on tracking down memory leaks

2010-01-13 Thread Ronald Klop
No. But historical results are not a guarantee for the future. It is very easy to make a heapdump with jmap and analyze it with MAT (http://www.eclipse.org/mat/) or other tools as suggested by others on this list. Ronald. Op woensdag, 13 januari 2010 11:44 schreef Greg McCane : Thanks

Re: Ignore http header if-modified-since

2009-12-16 Thread Ronald Klop
If it is 304 and not 404. You can implement the lastModified method on your Servlet and always return 0 or -1 (see the javadocs). Ronald. On Wed, 16 Dec 2009 15:47:33 +0100, Looijmans, Mike wrote: I assume you mean 304 (Not modified) instead of 404 (Not found). Simplest I can think of i

Re: Tomcat Https loadbalancing??

2009-11-25 Thread Ronald Klop
Always make a drawing. client -> https -> tcp-loadbalancer -> still same https connection-> multiple tomcats client -> https -> http-loadbalancer (Apache, proxy) -> new ajp/http(s) connection-> multiple tomcats Normally the loadbalancer and tomcats are in the same private network. It is your

Re: ArrayIndexOutOfBoundsException

2009-11-25 Thread Ronald Klop
wrong. Input and OutputStream are not null, bytesRead is the correct size and the buffer is also filled. Any other ideas? Best Regards Geoffrey On 24 Nov 2009, at 18:13, Ronald Klop wrote: > Try insert some debug statements just before the out.write. > System.out.println("bytesRea

Re: ArrayIndexOutOfBoundsException

2009-11-24 Thread Ronald Klop
Try insert some debug statements just before the out.write. System.out.println("bytesRead: " + bytesRead) would be interesting. In fact this is kind of my-first-debugging and you don't even mention you did try it. Ronald. Op dinsdag, 24 november 2009 17:57 schreef geoff...@fileflow.com:

Re: [ANN] Apache Tomcat Native 1.1.18 released

2009-11-24 Thread Ronald Klop
This changelog link works better. http://tomcat.apache.org/native-doc/miscellaneous/changelog-1.1.x.html Cheers, Ronald. Op maandag, 23 november 2009 21:59 schreef jean-frederic clere : The Apache Tomcat team announces the immediate availability of Apache Tomcat Native 1.1.18 stable. Thi

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-20 Thread Ronald Klop
On Fri, 20 Nov 2009 14:22:57 +0100, André Warnier wrote: Ronald Klop wrote: On Fri, 20 Nov 2009 13:20:04 +0100, Karthik Nanjangude wrote: Hi You mentioned XML - use some existing library that works with XML. A 3rd party Client S/w of C++ sends an XML string over socket This socket

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-20 Thread Ronald Klop
this list before and received help, no? You've read this before, yes? http://catb.org/~esr/faqs/smart-questions.html p With regards KArthik -Original Message- From: Ronald Klop [mailto:ronald-mailingl...@base.nl] Sent: Thursday, November 19, 2009 9:06 PM To: Tomcat Users List

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-20 Thread Ronald Klop
Ronald. With regards KArthik -Original Message- From: Ronald Klop [mailto:ronald-mailingl...@base.nl] Sent: Thursday, November 19, 2009 9:06 PM To: Tomcat Users List Subject: Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat On Thu, 19 Nov 2009 14:59:16 +0100, Kart

Re: Howto Socket (TCP / IP ) reading from a war application on Tomcat

2009-11-19 Thread Ronald Klop
On Thu, 19 Nov 2009 14:59:16 +0100, Karthik Nanjangude wrote: Hi Can some body provide me a sample code for Socket (TCP / IP ) reading from a war application on Tomcat Can Listeners be made use of for the same? Reason: I need to Accept / Reply a XML File over the socket port f

Re: 64bit Tomcat for Windows

2009-11-19 Thread Ronald Klop
On Thu, 19 Nov 2009 13:30:19 +0100, Bruce Foster wrote: Hi List, I have another thread running and someone suggested to use 64bit JDK on my Windows 2003 server 64 bit. Wonder, if there is a 64 bit installer for Tomcat on Windows. I see my current tomcat is running x86 folder in 32 bit mode.

Re: MISC; Tomcat-5.5.12; After one Tomcat Cluster node shutdown, sessionDestroyed been called before contextDestroyed

2009-11-17 Thread Ronald Klop
. Not very nice, but nice enough for me. Ronald. Op dinsdag, 17 november 2009 16:38 schreef Pid : On 17/11/2009 14:40, Ronald Klop wrote: > Hi Imad, > > Ronald. (The Ronald of the link mentioned by Pid.) Did the code supplied therein, work for you Ronald? @Imad The Servlet Sp

RE: MISC; Tomcat-5.5.12; After one Tomcat Cluster node shutdown, sessionDestroyed been called before contextDestroyed

2009-11-17 Thread Ronald Klop
Hi Imad, You can do everything you like, but it will all be dirty. 1. Set a global variable in your webapp before shutdown of a node. To see If it is a planned shutdown or not. 2. Keep references about the nr. of clusternodes yourself. Can be done quite cleanly with JMX. 3. Do not really logout

RE: MISC; Tomcat-5.5.12; After one Tomcat Cluster node shutdown, sessionDestroyed been called before contextDestroyed

2009-11-17 Thread Ronald Klop
Hi Imad, I think also that Tomcat should only invalidate the Session on shutdown if it is the last node in the cluster. But the developers of Tomcat think of it as invalidating the Session object (as in java Object) and you and me see it as invalidating the session of the user. Ronald. (The Ro

Re: loading a CharsetProvider via WebappClassLoader

2009-11-02 Thread Ronald Klop
to clearly be using ClassLoader.getSystemClassLoader()... > > On Thu, Oct 29, 2009 at 10:51 AM, Ronald Klop > wrote: >> Hi, >> >> I have this jar (jutf7.jar) which should register itself with the >> CharsetProvider of Java. If I put it in the WEB-INF/lib directory i

loading a CharsetProvider via WebappClassLoader

2009-10-29 Thread Ronald Klop
Hi, I have this jar (jutf7.jar) which should register itself with the CharsetProvider of Java. If I put it in the WEB-INF/lib directory it is ignored by Java. I understand that this is because of order in which the WebappClassLoader asks all other classloaders for a class. How can this be solv

Re: FOO / HTTP/1.1

2009-10-12 Thread Ronald Klop
http method. Probably this is ok. Ronald. Op maandag, 12 oktober 2009 12:01 schreef "André Warnier" : Ronald Klop wrote: > Hi, > > If I send this to my Tomcat it responds with HTTP/1.1 200 OK and calls > my servlet. :-) > telnet localhost 8080 > FOO / HTTP/1.1 &

FOO / HTTP/1.1

2009-10-12 Thread Ronald Klop
Hi, If I send this to my Tomcat it responds with HTTP/1.1 200 OK and calls my servlet. :-) telnet localhost 8080 FOO / HTTP/1.1 Host: localhost What is this suppost to do? Ronald.

Re: POST request with timeout acts weird

2009-10-05 Thread Ronald Klop
Op zondag, 4 oktober 2009 22:23 schreef Christopher Schultz : Ronald, On 10/2/2009 9:20 AM, Ronald Klop wrote: > But I don't send any data. My servlet than waits in getParameterMap(), > because that try's to read the inputstream and parse the parameters. > After 20

Re: POST request with timeout acts weird

2009-10-05 Thread Ronald Klop
Op maandag, 5 oktober 2009 00:47 schreef "André Warnier" : Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ronald, > > On 10/2/2009 9:20 AM, Ronald Klop wrote: >> But I don't send any data. My servlet than waits in getP

  1   2   3   >