Re: Regarding Connector in tomcat 6

2010-02-22 Thread André Warnier
Cummins College wrote: Hi, I know the problem is slightly different but we want to access the server.xml for the http connector so that we can set its secure attribute depending on the protocol to be used is http or https. This has to done at runtime i.e without shutting down tomcat and

Re: Regarding Connector in tomcat 6

2010-02-22 Thread Pid
On 22/02/2010 07:28, Cummins College wrote: Hi, I know the problem is slightly different but we want to access the server.xml for the http connector so that we can set its secure attribute depending on the protocol to be used is http or https. You are confused. Changing the secure attribute

Client certificate gone after 1 minute timeout (SSL, APR)

2010-02-22 Thread Albert Tumanov
Dear colleagues, I'm chasing a strange problem with Tomcat + SSL + APR + Firefox. Namely, the setup works perfectly (i.e. the client certificate is sent and the servlet application can get it). But if I allow the SSL connection to time out (it happens 1 minute after the last request), the

sendRedirect problem

2010-02-22 Thread Desbaratizador
Hi I have a faces (JSF) app developed with JDeveloper, in a JSP i have a sendRedirect like this: response.sendRedirect(xxx.jsp); The problem: sendRedirect not working (the page where the redirect is invoked continues loading), occurs only when the app is deployed to Apache Tomcat. On the

Tomcat 6.0.20 Returning NullPointer upon closing response.getWriter()

2010-02-22 Thread chinmaytotekar
Tomcat returned NullpointerException upon closing response.getWriter(). This does not occur always but sometimes. Not able to figure out the reason. java.lang.NullPointerException at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:740)

RE: Restart one webapp

2010-02-22 Thread Jonathan Soons
Restarting works fine. I think the restarting mechanism is built into tomcat and not into the webapp itself. Konstantin: Thanks for the tip on wget documentation. I was reading tomcat docs only. jonsoons -Original Message- From: Mikolaj Rydzewski [mailto:m...@ceti.pl] Sent: Sunday,

RE: Regarding Connector in tomcat 6

2010-02-22 Thread Caldarale, Charles R
From: Cummins College [mailto:cummins.grou...@gmail.com] Subject: Re: Regarding Connector in tomcat 6 But i would like to toggle entire web application to http or https at runtime. Then simply add or remove the transport-guarantee of CONFIDENTIAL; Tomcat will recognize that the webapp's

Re: Tomcat shutdown issue

2010-02-22 Thread dBenjamin
Can you please suggest how to scan the port and check the port is used by other application. I am using socket programming to check the port this is right? awarnier wrote: As I believe someone already told you, there is no need to repeat every message twice. dBenjamin wrote: Tomcat

Webapp slow down after idle - 5.5.x

2010-02-22 Thread klinham
Hello, My webservice (using axis 1.1)is deployed on tomcat 5.5.28. Tomcat runs on AIX and IBM Java 1.5 SR9. The problem is that every first request after a longer idle (like a day) is served very slow. There's no performance problem with next requests. It looks quite similar to first request

Re: Webapp slow down after idle - 5.5.x

2010-02-22 Thread Len Popp
One thing that comes to mind is virtual memory swapping. If Tomcat is idle for a long time, all of its memory may be swapped out to disk to make room for other programs. Then when Tomcat needs to handle a request, it must be swapped back in from disk which takes time. I've observed the

RE: Webapp slow down after idle - 5.5.x

2010-02-22 Thread Caldarale, Charles R
From: klin...@poczta.fm [mailto:klin...@poczta.fm] Subject: Webapp slow down after idle - 5.5.x The problem is that every first request after a longer idle (like a day) is served very slow. Sounds like the OS might be paging out Tomcat, and taking a long time to get all the necessary

Re: Webapp slow down after idle - 5.5.x

2010-02-22 Thread Peter Crowther
On 22 February 2010 19:07, Caldarale, Charles R chuck.caldar...@unisys.com wrote: Sounds like the OS might be paging out Tomcat, and taking a long time to get all the necessary pages back in when a request is made.  I'm not familiar with operational details of AIX, but I would suspect there

Re: Tomcat shutdown issue

2010-02-22 Thread André Warnier
dBenjamin wrote: Can you please suggest how to scan the port and check the port is used by other application. On what kind of system are you ? Anyway, shut down Tomcat, then use the netstat command. Depending on the system on which you are, there are options to this command. Choose one that

Re: tomcat 6 on solaris losing cookies

2010-02-22 Thread George Baxter
Thanks for everyone's help... it was indeed app code.. some old ugly legacy code was putting a reference to a request in a thread local variable and then not cleaning up the thread local reference when the request ended. When the thread was reused, it was referencing a request that was no

Re: tomcat 6 on solaris losing cookies

2010-02-22 Thread André Warnier
George Baxter wrote: ... We're still a bit confused as to why this code works fine in Tomcat 5.5 and fails so gloriously in 6, but I suppose the recycling model and maybe the thread handling model is different. Yeah, that's always the problem when correcting bugs in released software. A

Re: Tomcat 6.0.20 Returning NullPointer upon closing response.getWriter()

2010-02-22 Thread Felix Schumacher
Hi, have you checked, that you aren't sharing the request object by saving it in an instance variable? Sharing it would explain such an error. Bye Felix chinmaytotekar chinmaytote...@gmail.com schrieb: Tomcat returned NullpointerException upon closing response.getWriter(). This does not

Re: sendRedirect problem

2010-02-22 Thread Pid
On 22/02/2010 12:39, Desbaratizador wrote: Hi I have a faces (JSF) app developed with JDeveloper, in a JSP i have a sendRedirect like this: response.sendRedirect(xxx.jsp); Does xxx stand for something and if so, what? (Don't tell us if the actual page name is something exciting and

Re: sendRedirect problem

2010-02-22 Thread Donn Aiken
If I had to guess, there is a missing FacesContext.responseComplete(); Prior to the sendRedirect call. DJ On 2/22/10, Pid p...@pidster.com wrote: On 22/02/2010 12:39, Desbaratizador wrote: Hi I have a faces (JSF) app developed with JDeveloper, in a JSP i have a sendRedirect like this:

Re: Is it possible to replace the HttpSession implementation in Tomcat?

2010-02-22 Thread Tsirkin Evgeny
Just in case somebody will google for a solution for replacing session. I have done this . First of all ,why: We have cluster of 2 machines . Each have a separate db on it . The machines are sharing information using nfs mounting fs. Each machine runs it's own apache server ,(no apache balancer in

Re: Tomcat 6.0.20 Returning NullPointer upon closing response.getWriter()

2010-02-22 Thread chinmaytotekar
Thanks The problem was response.getWriter() object was declared as global in servlet, so it became common to all threads. and if one thread closes it, it used to give NullPtrException in other threads. Felix Schumacher wrote: Hi, have you checked, that you aren't sharing the request

Re: Calling flushBuffer() in TOMCAT 6.0.20 returning NullPointerException.

2010-02-22 Thread chinmaytotekar
Ya got the problem.. The problem was response.getWriter() object was declared as global in servlet, so it became common to all threads. and if one thread closes it, it used to give NullPtrException in other threads. Konstantin Kolinko wrote: 2010/2/19 Christopher Schultz