Re: displaying an image from outside the webapps directory

2008-03-31 Thread Kimberly Begley
Thanks for that I will check it out - I have switched gears and have been trying to get a c:import to work - now I get the error printed in the middle of the page saying that: The requested resource (/test/home/kimberly/Desktop/testhtmlfile1.html) is not available where test is the directory

Re: Shutdown Hook in Tomcat 5.5.26

2008-03-31 Thread Ho Fat Tsang
Hello Chris, Thank for your reply and yes. It seems System.out is subtle at that moment and it is not a good indicator for validation. I have re-written something else and it works fine. But let me elaborate what i want to achieve. I would like to deliver a alert email when the JVM

RE: Memory leak in Tomcat 5.5.16

2008-03-31 Thread Tom Price
Hi all, No more help required - I traced back all the references to the Request objects and it did turn out to be a bug in my application code. One of my tracing classes (written a long time ago, before we used Tomcat) was caching all created Thread objects. So when Tomcat decided to allocate

RE: Checking tomcat metrics in a non-intrusive way

2008-03-31 Thread Peter Crowther
From: wicket0123 [mailto:[EMAIL PROTECTED] [W]e want every request to be processed within 25 millisecods. [...] 2. Ad server process the request which include app. code and talking to DB Your database communication, queries and data will have to be very, very heavily optimised if you want

Re: Top mail servers

2008-03-31 Thread Ronald Klop
On Fri Mar 28 16:11:21 CET 2008 Tomcat Users List users@tomcat.apache.org wrote: Folks, I am in the process of hosting a site on Tomcat on Ubuntu. I will be also running a mail server. As per your experience which are the top mail servers? While googling I came to know these names : Sendmail

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Ronald Klop
I've had a problem with send/receive buffers filling up because FastAsyncSocketSender doesn't read the Ack from the other cluster node. Does netstat -n give you full buffers on the cluster tcp connections (port 8015 I think)? This might cause Tomcat to stack up a lot of session data in its

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Ronald Klop
See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for FastAsyncSender you should set sendAck=false on the receiving side. Ronald. On Mon Mar 31 02:07:51 CEST 2008 Tomcat Users List

Forcing PDF Download within Tomcat

2008-03-31 Thread Steve Burt
Greetings Folks, I have an Apache (Proxy Server) Tomcat/Mediasurface Application, and I have been given the task of trying to solve how to force download a pdf link that is embedded on a *.jsp page... I was trying to use FilesMatch \.(pdf|PDF)$ ForceType application/pdf Header set

Re: RESIDENTIAL MEMORY 100%

2008-03-31 Thread karthikn
Hi On Look up at Catalina .out TOMCAT 5.5.23 JSDK =1.6 O/S HP UNIX PA-RISC 6 GB RAM Question : I am frequently getting these errors Can some body suggest me how to handle this situation Mar 30, 2008 12:10:31 AM org.apache.tomcat.util.http.Parameters processParameters

Re: How to access AJP Queue through JMX or any other possible way

2008-03-31 Thread srinivasch
Hi, Appreciate if you anyone accessed AJP Queue, your code snippet would help me a great deal. Thanks Sri srinivasch wrote: Hi Rainer, Thanks for your prompt response. I understand from your response that TOMCAT JMX doesnt provide me a way to access the AJP Queue. Does linux

Re: displaying an image from outside the webapps directory

2008-03-31 Thread Hassan Schroeder
On Sun, Mar 30, 2008 at 11:44 PM, Kimberly Begley [EMAIL PROTECTED] wrote: trying to get a c:import to work - now I get the error printed in the middle of the page saying that: The requested resource (/test/home/kimberly/Desktop/testhtmlfile1.html) is not available where test is the

Re: displaying an image from outside the webapps directory

2008-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kimberly, Kimberly Begley wrote: | I was hoping to use the jsp:include tag to include the snippet (no html or | body tags) - I tried with the same code that Chris sent to open a jpeg - | thinking it might be the same solution for the html but have

Re: RESIDENTIAL MEMORY 100%

2008-03-31 Thread Mark Shifman
Google is your friend. http://marc.info/?l=tomcat-userm=118662577608193w=3 karthikn wrote: Hi On Look up at Catalina .out TOMCAT 5.5.23 JSDK =1.6 O/S HP UNIX PA-RISC 6 GB RAM Question : I am frequently getting these errors Can some body suggest me how to handle this situation

Re: jsp hack or better solution ??

2008-03-31 Thread Howard Watson
Hi. Since this forum focuses mostly on running and configuring Tomcat, you might get more help at javaranch.com. Robert Koberg [EMAIL PROTECTED] 3/29/2008 9:48 PM Hi, (using 6.0.16) I want to create a jsp that is able to be seen in a browser without using tomcat (a simple HTMLish preview) in

Re: ServletContextListener Query

2008-03-31 Thread Len Popp
The key is this line: INFO: Reloading this Context has started It looks like the webapp is started, and then *immediately* it's re-loaded started again. Reloading happens automatically if the app's Context has the attribute reloadable=true and the app is modified. It could be that the timestamp

Tomcat shutdown

2008-03-31 Thread Andrew Hole
Hello! I have a cluster with two Tomcat's. When I shutdown one and the other still active I do not want to run valueunbound in the first. How do I do that? Basically: If (shutdown node 1 and node 2 is Active) then { do nothing; } else { business logic; } Thanks a lot

Tomcat Connectors: local_worker and local_worker only in newer versions of mod_jk

2008-03-31 Thread Philipp Kemper
Hello, I'm running Apache 1.3 with mod_jk 1.2.7-dev and three instances of Tomcat 6.0.14. Because I experienced that after a certain time some database connections are not closed properly and the memory use increases, we decided to restart the Tomcat completely. But in order to have no

Can a Filter know that a connection timeout has occurred?

2008-03-31 Thread Alex Epshteyn
Say I have the following filter which is responsible for timing all requests in my application: public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { startTiming(request, response);

RE: UTF-8 encoding problems

2008-03-31 Thread Thompson,Roger
OK, after some flailing around, I installed a fresh version of tomcat 5.5.26 and added the test page from the FAQ. I'm testing two ways One using the submit button to test the POST, and testing response to GET by encoding the query Romans à clef as:

Re: Can a Filter know that a connection timeout has occurred?

2008-03-31 Thread Filip Hanik - Dev Lists
you can't know until you request the resource. ie, a timeout can happen at point X, 2 min later, the application does getOutputStream.print, and receives an IOException, obviously the timeout happened X+20sec, not X+2min, so no, no real way to know. for your filter to know that a ioexception

Re: UTF-8 encoding problems

2008-03-31 Thread Mark Thomas
Thompson,Roger wrote: So there is something in log4j that munges the parameter sstring. Unlikely. Chances are there is something in Tomcat's internal debug logging that does this. It isn't entirely surprising. The request dumper valve has a similar side-effect. that some library outside of

Re: Tomcat Connectors: local_worker and local_worker only in newer versions of mod_jk

2008-03-31 Thread Rainer Jung
Hi Philipp, Philipp Kemper schrieb: Hello, I'm running Apache 1.3 with mod_jk 1.2.7-dev and three instances of Tomcat 6.0.14. Because I experienced that after a certain time some database connections are not closed properly and the memory use increases, we decided to restart the Tomcat

Re: When is mod_jk 1.2.27 expected to be stable?

2008-03-31 Thread fredk2
Many thanks - so far it does not break anything (Linux/Solaris), but I do not have a good (application/)test to confirm the reply_timout feature. Rgds - Fred Rainer Jung-3 wrote: Hi Fred, fredk2 schrieb: Hi, When is mod_jk 1.2.27 expected to be stable? I just stumbled accross the

Re: Checking tomcat metrics in a non-intrusive way

2008-03-31 Thread wicket0123
Yup. DB will always be a bottleneck in any application, so we load balance it for optimum performance. So, we can forget the DB bottleneck since we add another DB if it starts hitting our threshold. So, the first test i did was to find out the DB performance and its maximum values. That is

RE: Tomcat JNDI datasource

2008-03-31 Thread Tom Henricksen
It was this David. 5.0 is a little different. Thanks to all that helped out! Context debug=4 docBase=C:/Java/eclipse-europa/europa-workspace/bop-med/web path=/bop-med reloadable=true workDir=work\Catalina\localhost\bop-med Resource name=jdbc/medical auth=Container

Re: Checking tomcat metrics in a non-intrusive way

2008-03-31 Thread Rainer Jung
So, I looked at JMX Console and see that under RequestProcessor for Catalina it shows all the HTTP request processor threads. And, for each, it shows an attribute called requestProcessingTime which I think is the time it took to process that request. So, I was thinking to write a script to

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread David Rees
On Mon, Mar 31, 2008 at 3:38 AM, Ronald Klop [EMAIL PROTECTED] wrote: See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for FastAsyncSender you should set sendAck=false on the receiving

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Rainer Jung
David Rees schrieb: On Sun, Mar 30, 2008 at 2:14 AM, David Rees [EMAIL PROTECTED] wrote: From my understanding of the clustering software, it appears that Tomcat is trying to send messages to the other Tomcat but it isn't receiving them? Shouldn't it drop membership and give up? I suspect

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Rainer Jung
Ronald Klop schrieb: See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for FastAsyncSender you should set sendAck=false on the receiving side. Ronald. Hi Ronald, I saw your previous

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Rainer Jung
David Rees schrieb: On Mon, Mar 31, 2008 at 3:38 AM, Ronald Klop [EMAIL PROTECTED] wrote: See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for FastAsyncSender you should set sendAck=false on

RE: TC 4.1.36 stopped logging

2008-03-31 Thread Propes, Barry L
my logging mechanism on this kicked in again at some point today, but a couple of things: all of a sudden, I've got a connection pool leak. I'll troubleshoot that separately from this issue, though quite honestly I'm not sure how it suddenly occurred, but I believe I can fix thatalthough

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Filip Hanik - Dev Lists
David Rees wrote: On Mon, Mar 31, 2008 at 3:38 AM, Ronald Klop [EMAIL PROTECTED] wrote: See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for FastAsyncSender you should set sendAck=false

Re: TC 4.1.36 stopped logging

2008-03-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: | all of a sudden, I've got a connection pool leak. I'll troubleshoot | that separately from this issue, though quite honestly I'm not sure | how it suddenly occurred, but I believe I can fix thatalthough | what is

Harbor 1.0.6 Released

2008-03-31 Thread Johnny Kewl
Its called Harbor Goes Native Essentially it means that if one drops native libraries into the server, they also run remotely if needed by the Java application. We using this new technology to introduce things like cool multimedia players, and USB support, to Java. The idea is that now one can

RE: Top mail servers

2008-03-31 Thread Steffen Heil
Hi I would suggest investigating several different MUAs and deciding which one best balances the capability you need with the pain of configuring it. Properly setting up an MUA, *any* MUA, is not simple. I agree with this, if you replace MUA with MTA... However, my personal preference

Re: Top mail servers

2008-03-31 Thread Alan Chaney
Steffen Heil wrote: It's very fast, relyable and flexible. Agreed. The configuration language is even turing complete... Be aware, that it's initial configuration may be a huge step. On debian/ubuntu you get a multi-file configuration by default, which is good, if the package is updated.

RE: TC 4.1.36 stopped logging

2008-03-31 Thread Propes, Barry L
thanks, Chris, I'll take a look at this! -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, March 31, 2008 5:28 PM To: Tomcat Users List Subject: Re: TC 4.1.36 stopped logging -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread David Rees
On Mon, Mar 31, 2008 at 12:49 PM, Rainer Jung [EMAIL PROTECTED] wrote: First to make sure: counting objects in general only makes sense after a full GC. Otherwise the heap dump will contain garbage too. Yes, I made sure the objects I was looking at had a valid GC reference. They really were

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Filip Hanik - Dev Lists
David Rees wrote: On Mon, Mar 31, 2008 at 12:49 PM, Rainer Jung [EMAIL PROTECTED] wrote: First to make sure: counting objects in general only makes sense after a full GC. Otherwise the heap dump will contain garbage too. Yes, I made sure the objects I was looking at had a valid GC

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread David Rees
On Mon, Mar 31, 2008 at 12:52 PM, Rainer Jung [EMAIL PROTECTED] wrote: Ronald Klop schrieb: See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for FastAsyncSender you should set

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread David Rees
On Mon, Mar 31, 2008 at 4:48 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: David Rees wrote: One problem I've intermittently had with clustering is that after a Tomcat restart (we shut down one node and it immediately restarts, generally within 30 seconds), they two nodes don't

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Filip Hanik - Dev Lists
David Rees wrote: On Mon, Mar 31, 2008 at 12:52 PM, Rainer Jung [EMAIL PROTECTED] wrote: Ronald Klop schrieb: See my previous mail about send/receive buffers filling because Ack wasn't read by FastAsyncSender. The option waitForAck=true did the trick for me. But for

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread David Rees
On Mon, Mar 31, 2008 at 5:06 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: David Rees wrote: I've got a cluster in my test lab with the following configuration on 5.5.26: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster/ Looking at

Re: Cluster Memory Leak - ClusterData and LinkObject classes

2008-03-31 Thread Filip Hanik - Dev Lists
David Rees wrote: On Mon, Mar 31, 2008 at 4:48 PM, Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote: David Rees wrote: One problem I've intermittently had with clustering is that after a Tomcat restart (we shut down one node and it immediately restarts, generally within 30 seconds),

Re: ServletContextListener Query

2008-03-31 Thread Sparecreative
Len, you are a genius (in my kitchen anyway). That's exactly the issue. I just checked. I had it set to reload during development, but we don't need it anymore. Thanks again. Z. Len Popp wrote: The key is this line: INFO: Reloading this Context has started It looks like the webapp is

Bug 33594: ClassCastException compiling jsp (very infrequently happens)

2008-03-31 Thread Harper, Brad
Hello: A problem just surfaced for us, which I've run down to this issue [https://issues.apache.org/bugzilla/show_bug.cgi?id=33594]. In our case, the problem presents when deploying the latest version of a webapp on Tomcat 5.5.9. The app was modified [including changes to the subject jsp] and

RE: Bug 33594: ClassCastException compiling jsp (very infrequently happens)

2008-03-31 Thread Caldarale, Charles R
From: Harper, Brad [mailto:[EMAIL PROTECTED] Subject: Bug 33594: ClassCastException compiling jsp (very infrequently happens) A problem just surfaced for us, which I've run down to this issue [https://issues.apache.org/bugzilla/show_bug.cgi?id=33594]. In our case, the problem presents

Re: Bug 33594: ClassCastException compiling jsp (very infrequently happens)

2008-03-31 Thread Filip Hanik - Dev Lists
you can always reopen a bug, but what I would do, is turn on debugging for the org.apache.jasper package, and when the error happens, the bug might lead us to more information. Filip Caldarale, Charles R wrote: From: Harper, Brad [mailto:[EMAIL PROTECTED] Subject: Bug 33594: