RE: which to use: JK2 or JK?

2004-11-29 Thread Ralph Einfeldt
That's the official statement: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/news/20041100.html#2 0041115.1 -Original Message- From: Nikola Milutinovic [mailto:[EMAIL PROTECTED] Sent: Monday, November 29, 2004 10:40 AM To: Tomcat Users List Subject: Re: which to use: JK2 or JK?

RE: which to use: JK2 or JK?

2004-11-28 Thread Ralph Einfeldt
Sorry, but I think you are wrong. There have been several post in the last days from the developers, that clearly say, that there will be no further development for mod_jk2. Some features of mod_jk2 will be ported to mod_jk. The other development is mod_proxy_ajp as part of the apache

RE: Apache 2.0 - mod_proxy, mod_cache - and Tomcat 4.1.29

2004-10-21 Thread Ralph Einfeldt
That's a bit too general. Tomcat can do all the things (PHP, CGI, SSL), the real question is: can tomcat do it good and fast enough for a certain use case. That can only be decided from case to case. For some it will work for others it may not. -Original Message- From: Neise, Volker

RE: Multiple session timeouts in same web application

2004-10-05 Thread Ralph Einfeldt
session.setMaxInactiveInterval is applied to the current session. If you have different timeouts in pages, the last visited page with an explicit call to session.setMaxInactiveInterval wins. -Original Message- From: Kannan V [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 05, 2004

RE: Synchronization in cluster

2004-10-01 Thread Ralph Einfeldt
With this usage scenario i would recommend sticky sessions. -Original Message- From: Igor [mailto:[EMAIL PROTECTED] Sent: Thursday, September 30, 2004 8:59 PM To: [EMAIL PROTECTED] Subject: Re: Synchronization in cluster Users of my application can upload comma separeted

RE: Howto deploy a new version of my webapp without disturbing the customer?

2004-10-01 Thread Ralph Einfeldt
Just a guess: - Use Apache + mod_jk(2) + 2 tomcat instances - Use sticky sessions (look at the jvmRoute of the engine tag) - Use the load factor to distribute 100% of the requests to the first instance. - Update the second instance. - Change the load factor to distribute 100% of the

RE: Synchronization in cluster

2004-10-01 Thread Ralph Einfeldt
) [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 1:51 PM To: Tomcat Users List Subject: RE: Synchronization in cluster That doesn't solve the problem -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Friday, October 01, 2004 4:26 AM To: Tomcat Users List

RE: sending signed mails from servlet

2004-09-27 Thread Ralph Einfeldt
We are using www.bouncycastle.org to send s/MIME signed mails with javamail. -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Monday, September 27, 2004 9:37 PM To: 'Tomcat Users List' Subject: AW: sending signed mails from servlet Hi I have seen those

RE: Suggestion: A dedicated TOMCAT forum!

2004-09-22 Thread Ralph Einfeldt
Wasn't it (at least in the early days of the forum) that the posts to the forum where copied to the list ? -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 21, 2004 3:13 PM To: Tomcat Users List Subject: RE: Suggestion: A dedicated TOMCAT

RE: Multiple Instances of Tomcat5 on SunOS5.8

2004-09-16 Thread Ralph Einfeldt
http://www.mail-archive.com/[EMAIL PROTECTED]/msg135862.html -Original Message- From: Rahul Bhardwaj [mailto:[EMAIL PROTECTED] Sent: Thursday, September 16, 2004 4:32 PM To: [EMAIL PROTECTED] Subject: Multiple Instances of Tomcat5 on SunOS5.8 Importance: High HI, We need

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt
My recommendations: - Use one installation and define CATALINA_BASE for each. - Define one virtual ip per instance - bind each instance to one ip -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Friday, September 10, 2004 2:16 PM To: 'Tomcat Users List' Subject:

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt
?? Maarten -Oorspronkelijk bericht- Van: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Verzonden: Friday, September 10, 2004 1:41 PM Aan: Tomcat Users List; [EMAIL PROTECTED] Onderwerp: RE: Question about multiple instances instead virtual hosts My recommendations: - Use one

RE: Question about multiple instances instead virtual hosts

2004-09-10 Thread Ralph Einfeldt
to bind the one ip address?? Maarten -Oorspronkelijk bericht- Van: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Verzonden: Friday, September 10, 2004 1:41 PM Aan: Tomcat Users List; [EMAIL PROTECTED] Onderwerp: RE: Question about multiple instances instead virtual hosts My

RE: Tomcat5 and Servlet Timeout: Possible?

2004-09-08 Thread Ralph Einfeldt
You may try following snippet as a base for a filter. (I havn't tried it in a filter chain, so no garantee) Filter InterruptTimer mTimer = new InterruptTimer(5000, 10); mTimer.start(); try { doChain() // Don't have the correct syntax at hand... } catch (??InterruptedIOException?? ex) { //

RE: javascript and servlets.

2004-09-03 Thread Ralph Einfeldt
String[] f = request.getParameterValues(file0); f[0] .. f[f.length - 1] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, September 03, 2004 9:16 AM To: [EMAIL PROTECTED] Subject: javascript and servlets. String f =; f =

RE: javascript and servlets.

2004-09-03 Thread Ralph Einfeldt
Sorry i misread your post, that is the solution to retrieve the values if you have more than one field with the same name. If you have file0 through filen this should work: request.getParameter(file0); .. request.getParameter(filen); if file1 through filen are null against your expectations,

RE: javascript and servlets.

2004-09-03 Thread Ralph Einfeldt
form method=get ... /form the query string can be found in the access log. (This might be turned of) From your last post with the source I think that each input tag has it's own form so only one field is submitted. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: TC 5.5 - 4 issues (jasper, ROOT, jndi, logging)

2004-09-02 Thread Ralph Einfeldt
Did you change the jdk (vendor/version) ? As this looks more like an error message that's generated by the java compiler (jvac, jikes, ...). -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, September 02, 2004 5:47 PM To: Remy Maucherat; [EMAIL

RE: Tomcat Holding Database Open??????

2004-08-31 Thread Ralph Einfeldt
How are you acessing the database ? - dbcp - direct jdbc - taglib - ??? What makes you think it has anything to do with tomcat? If you are using direct jdbc you may try to extract your code to a stand alone application. -Original Message- From: Michael McQuade [mailto:[EMAIL

RE: Error with All threads (...) are currently busy on Red Hat

2004-08-06 Thread Ralph Einfeldt
Create a thread dump to see how many threads you have and what they are doing. kill -QUIT tomcat pid This will just produce a thread dump and not stop tomcat. The output will get to catalina.out unless you have mapped stdout to a different file. -Original Message- From: Brad

RE: JMS with tocmat

2004-08-05 Thread Ralph Einfeldt
No, tomcat is 'just' - a servlet engine - a jsp engine - a webserver To do other things like ejb or jms you have to integrate additional solutions with tomcat: - JBoss - Geronimo - Jonas - OpenJMS (if you just want jms this is the least complex solution) http://openjms.sourceforge.net

RE: ajp over ssl

2004-08-05 Thread Ralph Einfeldt
some other approaches: - cryptcat http://farm9.org/Cryptcat/GetCryptcat.php - openvpn http://openvpn.sourceforge.net/ - tinc http://www.tinc-vpn.org/ - CIPE http://sites.inka.de/sites/bigred/devel/cipe.html -Original Message- From: Michael Jürgens [mailto:[EMAIL PROTECTED]

RE: Urgent attention needed to solve mysterious SocketException error

2004-08-05 Thread Ralph Einfeldt
Are you running tomcat stand alone ? One possible cause is that tomcat is trying to open a socket where nobody is listening. (Invalid argument or EINVAL is a common error returned by all kind of socket operations in this case) Without more of the stacktrace it's difficult (at least for me) to

RE: tomcat output gets mixed up for different requests

2004-08-03 Thread Ralph Einfeldt
It is normal that one servlet is used for several requests. It's your responsability to write the method thread safe. As long as you just use local vars inside the method there will bo no intermixed content. As soon as you start to use instance or class variables you may get problems.

RE: Tomcat 5 in debug mode

2004-07-29 Thread Ralph Einfeldt
Have a look at catalina.bat/sh. -Original Message- From: Martin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 11:56 AM To: [EMAIL PROTECTED] Subject: Tomcat 5 in debug mode could somebody please tell me how to start tomcat 5 on Windows in debug mode? I would like

RE: Understanding tomcat web administration tool. [OT]

2004-07-29 Thread Ralph Einfeldt
Whow, did you write a 'tomcat-answermatic-robot' during your last holiday ? (Can you share it ? May be it can be extented to an 'give-me-the-answer-to-any-question-robot') -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 3:43 PM To:

RE: Max possible ram usage

2004-07-21 Thread Ralph Einfeldt
That is just java related. Tomcat has no upper limitations. The maximal memory depends on the vm implementation. You might try a newer version of the jdk or a jdk from a different vendor. -Original Message- From: Albrecht Marcus [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21,

RE: File.mkdirs() don't work if started with jsvc

2004-07-19 Thread Ralph Einfeldt
Was /tmp/test created ? If yes, which rights are set in this directory ? -Original Message- From: Horacio de Oro [mailto:[EMAIL PROTECTED] Sent: Friday, July 16, 2004 8:21 PM To: Tomcat Users List Subject: Re: File.mkdirs() don't work if started with jsvc fileName =

RE: AW: Migration 4.1.27 to 4.1.30 - Servlet-Configuration won't work

2004-06-24 Thread Ralph Einfeldt
Tomcat 5 has been redesigned in several areas so it should is faster for many operations. If the changes cause tomcat to be much faster depends on your application and what you are looking at. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June

RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt
For this part of the error you have to look at at the application. appweb.NativeCall looks like a class that is an interfaces to a native (C) library. The error is thrown in that native library. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt
Btw. appweb.NativeCall doesn't look like a part of tomcat so it most likely the application or an additional library that is used by the application. -Original Message- From: Ralph Einfeldt Sent: Wednesday, June 23, 2004 11:15 AM To: Tomcat Users List Subject: RE: tomcat crash

RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt
That error can something between 'ignore it' and 'severe error'. Tomcat failed while writing the response to mod_jk. That can be caused by this reasons: - the apache child that created the request died - the user closed the browser before the response was sent - there may be further reasons

RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt
0:00 0.02% -- Thanks, Bastien. Ralph Einfeldt wrote: That error can something between 'ignore it' and 'severe error'. Tomcat failed while writing the response to mod_jk. That can be caused by this reasons: - the apache child that created the request

RE: tomcat crash ... unexpected exception

2004-06-23 Thread Ralph Einfeldt
Although I'm not a mod_jk* user, I think it's quite unusual to define 2 CoyoteConnectors and 2 workers for one tomcat instance. Unless you have good reason to do so, I would remove one of each. This introduces a complexity that is not needed. (At least I that's my opinion) -Original

RE: Modifying response to hyperlink certain words

2004-06-23 Thread Ralph Einfeldt
I think that's the way to go. But I don't see why the ServletResponseWrapper should be complicated. There are so many articles and open source filter implementations, that can give you a starting point for it: http://www.onjava.com/pub/a/onjava/2001/05/10/servlet_filters.html

RE: JK2: lb_factor

2004-06-16 Thread Ralph Einfeldt
The quality of the distribution depends on the worker type of apache. (AFAIK only the 'worker' MPM will work) Nevertheless AFAIK the load balancing in mod_jk is not complete in this area, so I'm not shure if you will get the desired distribution (but it should be closer). -Original

RE: JK2: lb_factor

2004-06-16 Thread Ralph Einfeldt
Hi Nicole, I guess it's the mpm_worker_module, that you need. Yes, I was talking about mod_jk2. I guess that it is possible to enable a worker by configuration. (After all they are just modules) Sorry, as I'm neither using apache 2 nor mod_jk*, I can't add much. That was just third hand

RE: switch-off url rewriting

2004-06-10 Thread Ralph Einfeldt
AFAIK there is no way to disable this by configuration. Just an idea: Implement a servlet filter and a custom ResponseWrapper. The ResonseWrapper can have it's own encodeURL that returns the url unmodified. Map that filter to every request. As I havn't tried it I'm not 100% shure...

RE: AW: IP Adresses

2004-06-09 Thread Ralph Einfeldt
Is the other web server also tomcat or something else ? -Original Message- From: Gunnar Pörschke [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 4:09 PM To: 'Tomcat Users List' Subject: AW: AW: IP Adresses Thanks, this time it helps. But Tomcat still blocking all my

RE: unable to connect to mysql db on localhost (mysql not listening!) [OT]

2004-06-09 Thread Ralph Einfeldt
Although it's quite off topic: In /etc/mysql/my.cnf comment out this line: skip-networking restart mysql -Original Message- From: ilasno [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 5:13 PM To: Tomcat Users List Subject: Re: unable to connect to mysql db on localhost

RE: CGIServlet -- tomcat

2004-05-21 Thread Ralph Einfeldt
Who wrote what of the Servlet: http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/servlets/CGIServlet.java?annotate=1.19 -Original Message- From: Alex [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 2:29 PM To: Tomcat Users List

RE: Problem with error-page

2004-05-21 Thread Ralph Einfeldt
I'm not shure about the response code that is returned in both cases. It's possible that tomcat returns a different response code for a html and a jsp. (Like 200 for html because the html error page was found and some other value for the jsp because the jsp explicitly sets an response code.)

RE: Pass info between Tomcat Valve and Filter

2004-05-21 Thread Ralph Einfeldt
One possible cause: The component that store your object find the class through a different classloader than the component that tries to retrieve the object. Where do you store the class/jar for the stored object ? -Original Message- From: Rui Zhang [mailto:[EMAIL PROTECTED]

RE: Strange behaviour with buffers

2004-05-19 Thread Ralph Einfeldt
That statement from the site is wrong in at least one case: page import May be it's wrong in the other cases too. AFAIK the spec doesn't mention such restriction. (At least I couldn't find it) -Original Message- From: Jason Irwin [mailto:[EMAIL PROTECTED] Sent: Wednesday,

RE: Windows XP X Windows 2003 . What are the advantages to use with the same JVM.

2004-05-18 Thread Ralph Einfeldt
In some of the windows versions the number of concurrent inbound tcp connections is limited. http://support.microsoft.com/?kbid=122920 http://support.microsoft.com/default.aspx?scid=kb;en-us;328459 I'm not shure if this is still true for xp and 2003. (But I think it is) -Original

RE: tomcat-user Digest 18 May 2004 12:51:46 -0000 Issue 4449

2004-05-18 Thread Ralph Einfeldt
Has your mail address changed or do you now use a different address than in your subscription ? Look at the return path of the mails you receive from the list and you get: Return-Path: tomcat-user-return-26788-your name=your domain@jakarta.apache.org If that doesn't match roy=panix.com use

RE: RemoteAddrValve and mod_jk

2004-05-14 Thread Ralph Einfeldt
As I understand it, the RemoteAddrValve works on the address of the client (browser) not of the webserver. I'm not using mod_jk. Back in the old days of mod_jserv there was a property ApJServSecretKey to protect a jserv instance from unauthorized access. I'm not shure if this feature survived

RE: 2 Tomcat instances on the same server ?

2004-05-13 Thread Ralph Einfeldt
I would go for 2. As I'm not using IIS, I'm not shure if there are specific hurdles in this environment. Tomcat stand alone and tomcat behind apache are quite easy to setup with multiple instances. If all tomcate have the same versions, you just have to install tomcat once and setup two

RE: Stop WA at startup

2004-05-13 Thread Ralph Einfeldt
Guessing that you are talking about starting instead of stopping... load-on-startup is for servlets not for web applications. If you include this tag in a servlet definition, the servlet will be started at startup time. The value for the tag defines the order of the startup. -Original

RE: Filter on url example - Filter out hack attempts

2004-05-11 Thread Ralph Einfeldt
It's not always easy easy to find the right list for a question. The opinions about what is right or wrong vary with the members of the list. (In my opinion your question is right in this list, although I can understand that others have different opinions in this case) I have seen questions

RE: mod_jk problems - Need help!

2004-05-07 Thread Ralph Einfeldt
I don't think that the problem is caused by the tomcat side. The output looks pretty much like a memory or a disk dump. You normally can't access memory outside of the java process from within tomcat. (Native libraries excluded) So I think it's mod_jk, apache or the jvm that cause this

RE: How to limit time for Connector threads?

2004-05-07 Thread Ralph Einfeldt
I don't think that a debugger will help much in this case. A profiler might help, if you can reproduce the error in a test environment. (see below) Some ideas: - Use the access log to try to reproduce the error in a test environment. (AFAIK apache jmeter has the ability to create a

RE: How to limit time for Connector threads?

2004-05-07 Thread Ralph Einfeldt
() { oEndTime = 0; } public void timeout() { oStartingThread.interrupt(); } } -Original Message- From: Ralph Einfeldt Sent: Friday, May 07, 2004 7:12 PM To: Tomcat Users List Subject: RE: How to limit time for Connector threads? - Extend the filter to interrupt

RE: Form method always a get.

2004-05-06 Thread Ralph Einfeldt
??? He says that the error was the same when using submit buttons and you say he should use it. AFAIK your explanation is wrong. If you submit a form with javascript (even if triggered by a link) it uses (should use ?) the method type that is given in the form. -Original Message-

RE: Form method always a get.

2004-05-06 Thread Ralph Einfeldt
What is your environment ? (os, tomcat, apache/iis, jdk) Find out if the request that reaches your server is a POST: - Look for the request in the access log. - use an ethernet sniffer to see what is coming. after this test you know if you have to look at the server or the client side.

RE: Load-Balancing

2004-05-06 Thread Ralph Einfeldt
- stability No more to say than Yoav. - performance You may observe better performance with several vms on one server: - Depending on the quality of the thread implementation in your java vm and the os. - Depending on the quality of the gc implementation you may gain

[Info] Clustering and Loadbalancing

2004-04-23 Thread Ralph Einfeldt
A two part article on clustering and loadbalancing with tomcat: http://www.onjava.com/lpt/a/4649 http://www.onjava.com/lpt/a/4702 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: session-id prediction

2004-04-23 Thread Ralph Einfeldt
AFAIK the session id has a random part so you need either quite some luck to guess the number or you have to find a bug in the random generator. -Original Message- From: Bill Gorr [mailto:[EMAIL PROTECTED] Sent: Friday, April 23, 2004 5:35 PM To: [EMAIL PROTECTED] Subject:

RE: How to limit concurrent requests by same user

2004-04-22 Thread Ralph Einfeldt
You just have to remove the token no matter what happens. try { // store token // Do the processing and create output } catch(SomeException ex) { // Optional } finally { // remove token } -Original Message- From: Antony [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22,

RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt
I don't know anything about axis. The message indicates for me that axis is reading from a http server. The server answers (with 404). The question is, which http server is it talking to ? May be it's just talking with the wrong http server. Are you using tomcat standalone or behind

RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt
Just to make shure that I understood everthing: - The problem exists in the development setup - Tomcat is running standalone in the development setup. I just can think of the following causes: - The servlet in tomcat is talking to the same tomcat instance. - The servlet in tomcat is

RE: Problem invoking webservice from within servlets service method.

2004-04-21 Thread Ralph Einfeldt
- The servlet in tomcat is talking to the same tomcat instance. [-?- The servlet running in tomcat will get it's data from a physically different server -?-] Unless the error message is heavily missleading the servlet/axis is talking to a webserver. If it isn't the iis on server B it

RE: Tomcat , APache , Jserv

2004-04-19 Thread Ralph Einfeldt
- Tomcat is a servlet and jsp engine. - Tomcat can be used as a stand alone webserver - Apache is a webserver (with different features than tomcat, if it is better depends on the requirements) - Apache can be integrated with tomcat by mod_jk[2] (So Apache replaces tomcats own http stack)

RE: Multiple Paths in one Context

2004-04-19 Thread Ralph Einfeldt
I think it will work if you change docBase to webdirs -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 7:56 AM To: Tomcat Users List Subject: RE: Multiple Paths in one Context So now I have context definition Context

RE: session affinity with loadbalancing (apache2, mod_jk, tomcat5 on linux 9, jdk1.4.2)

2004-04-15 Thread Ralph Einfeldt
Did you set the jvmRoute in the Engine tag in server.xml. The value must match the name of the workers. (I'm not shure if it's the name or the attribute 'tomcatid') -Original Message- From: ian [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 9:34 AM To: 'Tomcat Users List'

RE: jsessionid parameter not being accepted

2004-04-15 Thread Ralph Einfeldt
- You don't have to implement your own url re-writing - The time is long gong when the session id was a parameter, it's now before the ? Just throw away your url rewiting and use rsponse.encodeUrl() instead. -Original Message- From: Malcolm Warren [mailto:[EMAIL PROTECTED] Sent:

RE: Multiple Paths in one Context

2004-04-15 Thread Ralph Einfeldt
Do you want to use other contexts beside those two ? If not, you can use one context with an empty path so that fred and fred2 are just subdirectories of one context. Context path= ... -Original Message- From: Ben Janes [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:32

RE: List problems

2004-04-15 Thread Ralph Einfeldt
Is it possible that mails from the list are blocked by the new host ? (Blacklisted or identified as spam) -Original Message- From: John Trollinger [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 4:36 PM To: [EMAIL PROTECTED] Subject: List problems I just changed server

RE: Multiple Paths in one Context

2004-04-15 Thread Ralph Einfeldt
The main point was not, how many you want to use, but if you want a real contexts beside the others that have their own context element. Trying to rephrase the question: Do you want all paths handled by one context ? If yes you can follow my suggestion. -Original Message- From: Ben

RE: Memory Leak

2004-04-15 Thread Ralph Einfeldt
From your description it is not shure that you have a memory leak at all. The vm is not returning free memory to the os. So the memory as seen by the os will alway be the maximum value that the jvm ever needed during the runtime. The other option that explains your observertion is that you

RE: Memory Leak

2004-04-15 Thread Ralph Einfeldt
. Chanan Braunstein Knovel Corp. Web Development Manager 607-773-1840 x672 http://www.knovel.com -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:11 AM To: Tomcat Users List Subject: RE: Memory Leak From your

RE: Memory Leak

2004-04-15 Thread Ralph Einfeldt
Which vm and os do you use ? That behaviour is jvm and os dependend. (This is the first time I hear of an implementation that returns memory to the os, although I knew that it could be done) -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, April

RE: [OT] JAVA_OPTS in catalina.sh

2004-04-14 Thread Ralph Einfeldt
That is not a tomcat but an jvm issue. You are confusing me. You say the problem happens in 1.4.2_04 Client VM (build 1.4.2_04-b05, mixed mode) The dump says the problem happens in java HotSpot(TM) Client VM (1.4.2-b28 mixed mode) You say this one works. Can you please verify which one

RE: IBM Java VS SUN Java

2004-04-14 Thread Ralph Einfeldt
It's technology by intel: http://www.intel.com/products/ht/hyperthreading.htm -Original Message- From: Zsolt Koppany [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 14, 2004 8:41 AM To: Tomcat Users List Subject: RE: IBM Java VS SUN Java Hi, sorry for the question but what

RE: [OT] JAVA_OPTS in catalina.sh

2004-04-14 Thread Ralph Einfeldt
So it's most likely the kernel or an os library for Red Hat Enterprise Linux ES release 2.1 that is used by java that causes the problem. As I don't have any experience with Red Hat I can't provide any help in this environment. - Are there updates to the kernel or the core libraries ?

RE: Session Mess

2004-04-14 Thread Ralph Einfeldt
Other potential causes: - Programming errors of programmers that don't understand the impact of multi threaded programms in a servlet container on the scoping of variables. - Caching of proxies between the browser and the server. Make shure that you set the headers of the response.

RE: Load balancing with apache2, mod_jk2 tomcat 5.0

2004-04-14 Thread Ralph Einfeldt
Some members of this list have reported that the load balancing is broken as the instances of mod_jk[2] don't know the load of each other. So mod_jk[2] will balance to some extend but not as good as it could/should. -Original Message- From: Thomas D. Zeimet [mailto:[EMAIL PROTECTED]

RE: How does Tomcat manage Form-based authentication?

2004-04-02 Thread Ralph Einfeldt
That information is stored in the session. So your programm has to include the session id that was created by tomcat in the requests (either as cookie or as query parameter) -Original Message- From: Malcolm Warren [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 10:12 AM To:

RE: Threads in Tomcat 5

2004-04-01 Thread Ralph Einfeldt
Tomcat uses a ThreadPool so Threads are recycled. If you store something in a ThreadLocal it it your resposibility to clear the stored values at the end of the use. So if you store request variables you have to clear them at the end of the request (or before storing them at the beginning of

RE: tomcat xinetd

2004-04-01 Thread Ralph Einfeldt
Not true. You also can use xinetd to redirect requests to one port to another port where tomcat is running: http://www-106.ibm.com/developerworks/linux/library/l-secjav.html -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 12:43 AM To: Tomcat Users

RE: tomcat xinetd

2004-04-01 Thread Ralph Einfeldt
That isn't easy to answer, that depends on your infrastructure and on your security requirements. xinetd isn't required. You can achive the same (in the context of your question) with iptables (Which is more efficient) or with commons-daemon: http://jakarta.apache.org/commons/daemon/

RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt
So far so good, but how is the serial number stored in the validator bean ? If the id is stored in an instance variable it may be possible that 2 concurrent request in the same session to any form that uses this bean might cause problems. (It is possible to change the value between

RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt
You have basically this options: - The error was introduced by the update of the underlying software - The error was there before and somehow just didn't show That is shows up after the update may be coincidence. Or it just show because the new system is faster/slower than before. From

RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt
Ha ! Gotcha ! That's no instance variable It's a class variable It is shared by all instances of the bean !!! change it to: private String serialNumber=; -Original Message- From: Denise Mangano [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 6:14 PM To: Tomcat

RE: Possible thread crossing

2004-03-25 Thread Ralph Einfeldt
Innovations, Inc. 914-747-1200 -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 12:16 PM To: Tomcat Users List Subject: RE: Possible thread crossing Ha ! Gotcha ! That's no instance variable It's a class variable

RE: RE : JSP suggestion

2004-03-24 Thread Ralph Einfeldt
Sorry, but that wouldn't help the original poster. He is searching for a way to include taglib definitions and imports that are used in the pages. Any kind of dynamic include or decorators wouldn't achieve that. -Original Message- From: John Sidney-Woollett [mailto:[EMAIL PROTECTED]

RE: Possible thread crossing

2004-03-23 Thread Ralph Einfeldt
That the problem is just happening for users that have the highest volume, might indicate that you have a threading problem. (Like a variable that should only be visible in the current request, is visible to concurrent requests) If there is a threading problem it's most likely in your

RE: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-21 Thread Ralph Einfeldt
To your question: I don't know. Having a delay in the jsp (or servlet) isn't enough to enshure concurrent requests. You have to do something on the calling site to enforce this. If you just call lynx as in your example, lynx will wait until the response is there. So if you delay the jsp, you

RE: Horrible memory leak in tomcat 5.0.19 (JMX bug?)

2004-03-18 Thread Ralph Einfeldt
That may be a bit to simple, as this is just performing one request after the other. You may have to force concurrent request: i=1 while [ $i -lt 2 ] ; do j=1 while [ $j -lt 10 ] ; do # start lynx in background lynx -source $URL /dev/null j=`expr $j + 1` done wait #

[OT] Filter version of mod_security

2004-03-17 Thread Ralph Einfeldt
I just stumbled across the following link: http://www.modsecurity.org/products/modsecurity/java/index.html If somebody thinks it's interesting [s]he can keep it :), otherwise forget it :{. - To unsubscribe, e-mail: [EMAIL

RE: CPU Binding ?

2004-03-17 Thread Ralph Einfeldt
That is not a matter of tomcat but of the jvm and the os. If the jvm uses more than one cpu on this os tomcat will do the same. - What jvm are you using (vendor / version) ? - Which jvm options do you set ? -Original Message- From: John Hilton - CPX COA [mailto:[EMAIL PROTECTED]

RE: problem with mod_jk 1.2: error in action code

2004-03-15 Thread Ralph Einfeldt
I don't see any reason why an object in the context should have any thing to do with the stacktrace. What makes you think that they are related ? What makes you think that the pool is lost ? (context.getAttribute(AttribName) == null ?) Or do you just don't get connections from the pool ? Or

RE: Tomcat5 can not use JRockit

2004-03-15 Thread Ralph Einfeldt
Tomcat doesn't require a certain jvm (as long as it has the right vdk version). Do you start tomcat as a service ? -Original Message- From: stanley [mailto:[EMAIL PROTECTED] Sent: Monday, March 15, 2004 2:44 PM To: [EMAIL PROTECTED] Subject: Tomcat5 can not use JRockit Hi

RE: Tomcat5 can not use JRockit

2004-03-15 Thread Ralph Einfeldt
- Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, March 15, 2004 9:48 PM Subject: RE: Tomcat5 can not use JRockit Tomcat doesn't require a certain jvm (as long as it has the right vdk version

RE: Dump HTTP Request and Response Headers

2004-03-12 Thread Ralph Einfeldt
One tomcat tool is the RequestDumperValve. http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html (The doc is a bit sparse, so it needs some testing what is logged and if that is enough) -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, March 12,

RE: problem with mod_jk 1.2: error in action code

2004-03-12 Thread Ralph Einfeldt
I don't think that this message has anything to with the lost connection pool. (Do you really mean 'connection pool' and not just 'connection' ?) If you lose your connection, it may be caused by the databaseserver that cancels idle connections after a while. Look for validationQuery in:

RE: url-pattern pb in security constraints

2004-03-11 Thread Ralph Einfeldt
According to the spec (Chapter 11.2): spec A string beginning with a / character and ending with a /* postfix is used for path mapping. A string beginning with a *. prefix is used as an extension mapping. A string containing only the / character indicates the default servlet of the

RE: redirect and request´s attributes doubts

2004-03-11 Thread Ralph Einfeldt
A redirect creates a new request. If you want to pass informations across a redirect you can use url parameters in the redirect url. Maybe it's is an option to you to forward to the jsp, then no new request is created. -Original Message- From: Edson Alves Pereira [mailto:[EMAIL

RE: redirect and request´s attributes doubts

2004-03-11 Thread Ralph Einfeldt
That has been answered 40 Minutes ago: A redirect creates a new request. If you want to pass informations across a redirect you can use url parameters in the redirect url. Maybe it's is an option to you to forward to the jsp, then no new request is created. -Original Message- From:

RE: doubts about attributes

2004-03-11 Thread Ralph Einfeldt
That is the fourth mail with the same question. 2 times it has been answered. Didn't you like the answer, didn't you receive it ? -Original Message- From: Edson Alves Pereira [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004 8:06 PM To: 'Tomcat-User List' Subject: doubts

  1   2   3   4   5   6   7   8   9   10   >