Re: newbie logging question: JULI or log4j or both?

2010-05-21 Thread Johan Martinez
Thanks for following up Charles. I have one more question about catalina.* logs. I made some changes in my webapps config (snippet below) and I got logs in catalina.out as well as in a file specified by FileAppender. The problem seems to be because of my wrong config where I used CONSOLE appender

RE: newbie logging question: JULI or log4j or both?

2010-05-21 Thread Caldarale, Charles R
> From: Johan Martinez [mailto:jmart...@gmail.com] > Subject: Re: newbie logging question: JULI or log4j or both? > > Tomcat was not installed using CentOS package manager, but it > is a core binary package downloaded from tomcat project site. Good; that means we don't have to guess what any repa

RE: set-cookie

2010-05-21 Thread Caldarale, Charles R
> From: banto [mailto:banto...@gmail.com] > Subject: set-cookie > > Now the code is something like: > > public class FrontController extends HttpServlet { > > public void init() throws ServletException { > > HashMap products = new HashMap(); > Product p = new P

RE: set-cookie

2010-05-21 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: set-cookie > > // Store products in the ServletContext > getServletContext().setAttribute("products", products); > > Presumably, if you store something in the context, it is because you > want to retrieve it later (or else,

Re: newbie logging question: JULI or log4j or both?

2010-05-21 Thread Johan Martinez
Thanks for the reply Charles. It's a CentOS 5.4 system with Sun JDK 1.5 and tomcat-5.5.28 version. Tomcat was not installed using CentOS package manager, but it is a core binary package downloaded from tomcat project site. I downloaded a fresh copy of tomcat package and took a diff of it against

Re: set-cookie

2010-05-21 Thread André Warnier
banto wrote: Hi gurus, my problem here is that i'm trying to understnad a servlet code that makes tomcat to send the Set-Cookie: JSESSIONID=8BCB60D6F6B9394B4ABD2FDD007BDB39; Path=/store header. Now the code is something like: public class FrontController extends HttpServlet { public

Re: Keeping tomcat up-to-date on linux

2010-05-21 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 5/20/2010 6:40 PM, André Warnier wrote: Dale Ogilvie wrote: ... A free gift can vary greatly in it's final value, depending on it's actual usefulness and how many hidden costs it brings with it. I think tha

set-cookie

2010-05-21 Thread banto
Hi gurus, my problem here is that i'm trying to understnad a servlet code that makes tomcat to send the Set-Cookie: JSESSIONID=8BCB60D6F6B9394B4ABD2FDD007BDB39; Path=/store header. Now the code is something like: public class FrontController extends HttpServlet { public void init() th

question for singlesignon for vertical cluster

2010-05-21 Thread Okubo, Yasushi (TSD)
Hi I would like to enable singlesignon on vertical cluster environment [multi-nodes on multiple hosts]. We are using clustersinglesignon under host element, and this works in horizontal cluster, but does not work in vertical cluster environment. Is there any way to make this work as part of tomc

Re: jsessionid problem

2010-05-21 Thread Richard Nduka
Hi Chris, Thanks for your mail. Actually we were analysing our proxy server logs and saw that a lot of URLs with jsessionid appended were being cached and this even includes static files. We saw request for static files like images and .js files being appended with jsessionid. So i think it happen

Re: Way to record what URL an error originated from in my localhost file?

2010-05-21 Thread laredotornado
Hi Chris, Thanks for this suggestion. Just to be sure I'm understanding correctly, the procedure would be 1. Add an error-page element to my xml doc that will be visited whenever an exception is generated from my JSP or servlet. 2. Configure valve to output a stack trace and the original reques

Re: [OT] Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/21/2010 8:27 AM, André Warnier wrote: > Pid wrote: >> On 21/05/2010 12:57, kent.anders...@tieto.com wrote: >>> Hi, >>> >>> We are running Jakarta Tomcat Servlet/JSP Engine 6.0.20 > > on Solaris 2.10. > > That may have been a 16-bit vers

RE: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Tomcat 6.0.20 is running out of memory > > MaxHeap=128MiB and MaxNewSize=4GiB? That doesn't look right > to me. It's fine. Newer JVMs automatically set MaxNewSize to a nearly infinite value. (In other words, it's

Re: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kent, On 5/21/2010 8:25 AM, kent.anders...@tieto.com wrote: > Heap Configuration: >MinHeapFreeRatio = 40 >MaxHeapFreeRatio = 70 >MaxHeapSize = 134217728 (128.0MB) >NewSize = 2228224 (2.125MB) >MaxNewSize = 42949

Re: [OT] Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kent, On 5/21/2010 6:57 AM, kent.anders...@tieto.com wrote: > java.lang.OutOfMemoryError: Java heap space > [...] > at java.util.ResourceBundle.getBundle(ResourceBundle.java:715) > at org.apache.jasper.compiler.Localizer.(Localizer.jav

Re: jsessionid problem

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, On 5/21/2010 12:07 PM, Richard Nduka wrote: > Thanks again for your reply. > > 1. We are not using clustering. > > 2. I have checked in the locations mentioned and more and cannot see > anywhere that cookies is disabled. > > 3. However wha

Re: jsessionid problem

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richard, On 5/21/2010 11:45 AM, Richard Nduka wrote: > Secondly, we have not disabled cookies. In our context, we have cookies set > to true and cookie is enabled in the browser. For some reason, tomcat still > re-writes the URL and includes the jsess

Re: [OT] how to return a zipped file so that the browser will unzip it ?

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/20/2010 5:16 PM, André Warnier wrote: > Christopher Schultz wrote: > ... >> >> I wonder if a patch could be written for the DefaultServlet to do >> something like this: if compression has been enabled on the , >> the request is for file "f

Re: jsessionid problem

2010-05-21 Thread Mark Thomas
On 21/05/2010 17:09, Richard Nduka wrote: > It is a direct request. Typically, it happens for the first time when a user > enters the application url in a browser and the login page appears with the > jsessionid appended in the url. That is expected. Tomcat doesn't know if the browser supports coo

Re: user cancels download attachment

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ðavîd, On 5/20/2010 10:08 PM, Ðavîd Låndïs wrote: > OK I'll investigate a little more at work tomorrow. I'm hoping the > issue isn't that Tomcat is swallowing the exceptions somewhere. Tomcat is very unlikely to swallow such exceptions. > Incidental

Re: jsessionid problem

2010-05-21 Thread Richard Nduka
It is a direct request. Typically, it happens for the first time when a user enters the application url in a browser and the login page appears with the jsessionid appended in the url. Thanks. On Fri, May 21, 2010 at 5:05 PM, Pid wrote: > On 21/05/2010 16:59, Caldarale, Charles R wrote: > >> Fr

Re: Keeping tomcat up-to-date on linux

2010-05-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 5/20/2010 6:40 PM, André Warnier wrote: > Dale Ogilvie wrote: >> > ... >> >> A free gift can vary greatly in it's final value, depending on it's >> actual usefulness and how many hidden costs it brings with it. >> > I think that now you are

Re: jsessionid problem

2010-05-21 Thread Richard Nduka
Thanks again for your reply. 1. We are not using clustering. 2. I have checked in the locations mentioned and more and cannot see anywhere that cookies is disabled. 3. However what surprises me is the fact that if i change the port to use HTTP (8080) then no jsessionid is appended in the URL but

Re: jsessionid problem

2010-05-21 Thread Pid
On 21/05/2010 16:59, Caldarale, Charles R wrote: >> From: Richard Nduka [mailto:richies4...@gmail.com] >> Subject: Re: jsessionid problem > >> First of all, we are not fronting tomcat with any other web server or >> application server apart from the proxy server (Squid) that seats in >> front of t

RE: jsessionid problem

2010-05-21 Thread Caldarale, Charles R
> From: Richard Nduka [mailto:richies4...@gmail.com] > Subject: Re: jsessionid problem > First of all, we are not fronting tomcat with any other web server or > application server apart from the proxy server (Squid) that seats in > front of tomcat. Are you using clustering? > Secondly, we have n

Re: jsessionid problem

2010-05-21 Thread Richard Nduka
Hi Chuck/Peter, Thanks guys for your mail. First of all, we are not fronting tomcat with any other web server or application server apart from the proxy server (Squid) that seats in front of tomcat. Secondly, we have not disabled cookies. In our context, we have cookies set to true and cookie is

Re: jsessionid problem

2010-05-21 Thread Peter Crowther
On 21 May 2010 16:16, Caldarale, Charles R wrote: > > From: Richard Nduka [mailto:richies4...@gmail.com] > > Subject: jsessionid problem > > > > I have a few quesations i want to ask about jessionid in tomcat. > > Thanks for asking twice - two minutes apart. A tad impatient, are we? > > Also too

RE: jsessionid problem

2010-05-21 Thread Caldarale, Charles R
> From: Richard Nduka [mailto:richies4...@gmail.com] > Subject: jsessionid problem > > I have a few quesations i want to ask about jessionid in tomcat. Thanks for asking twice - two minutes apart. A tad impatient, are we? Also too impatient to mention the Tomcat version, JVM you're using, platf

Re: jsessionid problem

2010-05-21 Thread Peter Crowther
Richard, there are two ways of maitaining sessions: 1) Using cookies (generally Tomcat's preferred way); 2) Using URL rewriting (generally Tomcat's less preferred way, used where a client has turned off cookies). There are no other ways of sending session IDs that are supported by all Web browsers

Re: jsessionid problem

2010-05-21 Thread Richard Nduka
Hi, I have a few quesations i want to ask about jessionid in tomcat. 1. In our web based application which runs on HTTPS, we have observed that the jsessionid is being appended to the URL. On close examination, we have observed that this is being added by tomcat to the url (Handled by the encodeR

jsessionid problem

2010-05-21 Thread Richard Nduka
Hi, I have a few quesations i want to ask about jessionid in tomcat. 1. In our web based application which runs on HTTPS, we have observed that the jsessionid is being appended to the URL. On close examination, we have observed that this is being added by tomcat to the url (Handled by the encodeR

Re: disable caching of static files in tomcat 5.5

2010-05-21 Thread Pid
On 21/05/2010 15:22, haveaguess wrote: > > Ive got the same problem - did anyone figure out what is happening and why > tomcat is caching files behind symlinks? This thread is 9 months old. You might consider starting a new thread, be specific about your versions & platform. p > Epithemeus w

Re: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Pid
On 21/05/2010 13:25, kent.anders...@tieto.com wrote: > Hi, > > This is what jmap -heap gives: > > using thread-local object allocation. > Mark Sweep Compact GC > > Heap Configuration: >MinHeapFreeRatio = 40 >MaxHeapFreeRatio = 70 >MaxHeapSize = 134217728 (128.0MB) >NewSize

Re: disable caching of static files in tomcat 5.5

2010-05-21 Thread haveaguess
Ive got the same problem - did anyone figure out what is happening and why tomcat is caching files behind symlinks? Epithemeus wrote: > > Thanks Mark. > > I went through the documentation but the problem persists. I am using > Tomcat 6.0 and have tried including cachingAllowed="false" in > $CA

Re: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread André Warnier
Pid wrote: On 21/05/2010 12:57, kent.anders...@tieto.com wrote: Hi, We are running Jakarta Tomcat Servlet/JSP Engine 6.0.20 on Solaris 2.10. That may have been a 16-bit version. We have -Xmx128M, is that to small? in which case this would be no mean feat.

RE: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Kent.Andersson
Hi, This is what jmap -heap gives: using thread-local object allocation. Mark Sweep Compact GC Heap Configuration: MinHeapFreeRatio = 40 MaxHeapFreeRatio = 70 MaxHeapSize = 134217728 (128.0MB) NewSize = 2228224 (2.125MB) MaxNewSize = 4294901760 (4095.9375MB)

Re: [OT] Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Pid
On 21/05/2010 12:37, André Warnier wrote: > Pid wrote: > ... > >> >> jmap -heap >> > Mmmm. Is the above the /real/ explanation of your so-called crystal > ball ? I've always been quite sceptical about it. But now we know the > trick. People, have you noticed ? He does that every time. That's

Re: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Pid
On 21/05/2010 12:57, kent.anders...@tieto.com wrote: > Hi, > > We are running Jakarta Tomcat Servlet/JSP Engine 6.0.20 on Solaris 2.10. > We have -Xmx128M, is that to small? Maybe. :) What did the jmap -heap command produce? p > Best Regards > /Kent > > -Original Message- > From: P

RE: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Kent.Andersson
Hi, We are running Jakarta Tomcat Servlet/JSP Engine 6.0.20 on Solaris 2.10. We have -Xmx128M, is that to small? Best Regards /Kent -Original Message- From: Pid [mailto:p...@pidster.com] Sent: den 21 maj 2010 13:20 To: Tomcat Users List Subject: Re: Tomcat 6.0.20 is running out of memor

Re: Tomat monitoring

2010-05-21 Thread Leon Rosenberg
On Fri, May 21, 2010 at 9:33 AM, wrote: > > Hi all, > > I work on JavaMelody and I can speak about the question of jconsole or > javamelody for Tomcat monitoring. > > The main differences between jconsole and javamelody is IMHO that jconsole > will > be used occasionally in QA or production for

Re: [OT] Tomcat 6.0.20 is running out of memory

2010-05-21 Thread André Warnier
Pid wrote: ... jmap -heap Mmmm. Is the above the /real/ explanation of your so-called crystal ball ? I've always been quite sceptical about it. But now we know the trick. People, have you noticed ? He does that every time. That's how he knows all that stuff.

Re: Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Pid
On 21/05/2010 11:57, kent.anders...@tieto.com wrote: > Hi, > > The Tomcat webserver 6.0.20 we are using has run out of memory. > Got the following message in the Catalina.out file: > less /opt/jakarta/tomcat/logs/catalina.out > ... > java.lang.OutOfMemoryError: Java heap space > at java.ut

Tomcat 6.0.20 is running out of memory

2010-05-21 Thread Kent.Andersson
Hi, The Tomcat webserver 6.0.20 we are using has run out of memory. Got the following message in the Catalina.out file: less /opt/jakarta/tomcat/logs/catalina.out ... java.lang.OutOfMemoryError: Java heap space at java.util.Properties$LineReader.(Properties.java:389) at java.util.P

Re: user cancels download attachment

2010-05-21 Thread Pid
On 21/05/2010 03:08, Ðavîd Låndïs wrote: > On Thu, May 20, 2010 at 9:51 PM, Caldarale, Charles R > wrote: >>> From: Ðavîd Låndïs [mailto:dlan...@gmail.com] >>> Subject: Re: user cancels download attachment >>> >>> I will try to debug deeper down into the platform. >> >> What connector are you usin

Re: Tomat monitoring

2010-05-21 Thread evernat
Hi all, I work on JavaMelody and I can speak about the question of jconsole or javamelody for Tomcat monitoring. The main differences between jconsole and javamelody is IMHO that jconsole will be used occasionally in QA or production for a few minutes or a few hours, whereas javamelody will be a

Re: user cancels download attachment

2010-05-21 Thread André Warnier
Ðavîd Låndïs wrote: ... Incidentally, does anyone know what exception is supposed to be thrown when a user cancels the attachment download? I am bit out of my depth here, but presumably when the user does that, the browser closes its (reading) side of the socket. Whatever process is at the ot