Re: Do objects in session always need to be serializable?

2011-04-19 Thread Thomas Strauß
Am 20.04.2011 um 07:41 schrieb Mukarram Baig: > Hello Guys, Hello, I will not comment on the low memory feature, as I don't know it, but if you do not enable serialization on your session objects and shutdown or reload an app, the sessions will get persisted and you get an exception telling

Do objects in session always need to be serializable?

2011-04-19 Thread Mukarram Baig
Hello Guys, I might be asking something that is very fundamental, but please bear with me here. We are using tomcat in a non-clustered environment. We put certain domain objects in the session and we have a heartbeat going which ensures that the sessions are valid in the lifetime of the screen. T

Re: Need help with SSL Certificate install on Tomcat 6.0.29 APR.

2011-04-19 Thread Crypto Sal
Hi Jin, In my experiences with the APR and Tomcat, you need to use 'OpenSSL' to generate the keypair (CSR/key) I am fairly certain the APR can't read Java Keystore files. You would only use a keystore (JKS) using 'keytool' with JSSE. I think you have at least 2 options at this point: 1. Gen

Re: Need help with SSL Certificate install on Tomcat 6.0.29 APR.

2011-04-19 Thread Igor Cicimov
So why did you enter password when you created the csr if you dont want it? On Apr 20, 2011 7:54 AM, "Jin H" wrote: Hi. We are a school running Tomcat 6.0.29 for Windows server 2003 with APR. I currently have an SSL certificate installed. I'm trying to update it with the renewed SSL certific

Re: Fix the cookie path with mod_jk

2011-04-19 Thread André Warnier
Thomas Freitag wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Chris, On 18.04.11 um 16:42, Christopher Schultz wrote: Thomas, On 4/18/2011 3:34 AM, Thomas Freitag wrote: Hi Yu On 18.04.11 um 16:19, Yu Kikuchi wrote: Hello All. My Environment of Application Server is: Apache 2.2.3,

Re: Fix the cookie path with mod_jk

2011-04-19 Thread Thomas Freitag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Chris, On 18.04.11 um 16:42, Christopher Schultz wrote: > Thomas, > > On 4/18/2011 3:34 AM, Thomas Freitag wrote: > > Hi Yu > > > > On 18.04.11 um 16:19, Yu Kikuchi wrote: > >> Hello All. > > > >> My Environment of Application Server is: > >> Ap

RE: Working of Tomcat with MS Access

2011-04-19 Thread George Sexton
> -Original Message- > From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Sent: Friday, April 15, 2011 1:02 PM > To: Tomcat Users List > Subject: Re: Working of Tomcat with MS Access > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jeff, > > On 4/15/2011 11:11 AM,

Need help with SSL Certificate install on Tomcat 6.0.29 APR.

2011-04-19 Thread Jin H
Hi. We are a school running Tomcat 6.0.29 for Windows server 2003 with APR. I currently have an SSL certificate installed. I'm trying to update it with the renewed SSL certificate but I'm having no luck. Here are the commands I used to create the CSR. in the jdk1.6.0_17\bin folder i used t

Re: AW: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Fischereit, Jana wrote: Hi, I resolved my problem. The problem was that the method request.getInputStream().read() just finish reading the in the server.xml file defined maxHTTPHeaderSize of the inputStream. So I wrote my own method to read the inputsteam and everything works fine. Besides I

AW: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Fischereit, Jana
Hi, I resolved my problem. The problem was that the method request.getInputStream().read() just finish reading the in the server.xml file defined maxHTTPHeaderSize of the inputStream. So I wrote my own method to read the inputsteam and everything works fine. Besides I changed my client-side t

Re: Restarting Tomcat & Threads

2011-04-19 Thread David kerber
On 4/19/2011 10:34 AM, Zbynek Vavros wrote: - How do you kill Tomcat ? I stop its service. - You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. I start Tomcat which starts my webapp but connection to Lotus is started separatedlly. = I

Re: Restarting Tomcat & Threads

2011-04-19 Thread André Warnier
Zbynek Vavros wrote: - How do you kill Tomcat ? I stop its service. - You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. I start Tomcat which starts my webapp but connection to Lotus is started separatedlly. = I start my webapp but do

RE: Restarting Tomcat & Threads

2011-04-19 Thread Zbynek Vavros
- How do you kill Tomcat ? I stop its service. - You say "after start" and "I didnt [sic] start anything" in the same sentence; you're contradicting yourself. I start Tomcat which starts my webapp but connection to Lotus is started separatedlly. = I start my webapp but do not start "Lotus conne

Re: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Pid wrote: On 4/19/11 12:20 PM, André Warnier wrote: Hi. I will let someone else comment on your code. I can say that doesn't look like i'd expect it to, per the example code from the Commons HTTP 3.x or HTTP Client 4.x versions. (But remember, this is a help forum for Tomcat, which is th

RE: Restarting Tomcat & Threads

2011-04-19 Thread Caldarale, Charles R
> From: Zbynek Vavros [mailto:zbynek_vav...@cz.ibm.com] > Subject: Restarting Tomcat & Threads > I have noticed that when I kill Tomcat (shut down its service) How do you kill Tomcat? (Be specific.) > then after start this thread is started automatically (I can > see messages about connecting

Restarting Tomcat & Threads

2011-04-19 Thread Zbynek Vavros
Hi, I would like to ask on strange behavior Im experiencing. I have webapp that connects to Lotus Notes periodically(every 1 minute). For this I have class that implements Runnable that takes care about connection itself. Im starting this using basic : Thread t = new Thread(MyClassImplementingR

Re: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Pid
On 4/19/11 12:20 PM, André Warnier wrote: > Hi. > > I will let someone else comment on your code. I can say that doesn't look like i'd expect it to, per the example code from the Commons HTTP 3.x or HTTP Client 4.x versions. > (But remember, this is a help forum for Tomcat, which is the server

Re: AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Hi. I will let someone else comment on your code. (But remember, this is a help forum for Tomcat, which is the server side. It is not really a forum to help people write Java HTTP cients). It looks like this is your first try at sending a file to a server. So let me recommend something : I w

AW: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Fischereit, Jana
Thank you for your answer! First I also thought that they have nothing to do with one another. But when I tried to transfer a xml-file (size 9kb) it did not work. Afterwards I increased the maxHTTPHeaderSize to 10 kb. So I concluded that the xml-stream is contained in the body of the request-he

Re: Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread André Warnier
Fischereit, Jana wrote: Hi, I would like to send xml-files by using the http-post *request-body*. (emphasis added) But I read that the default maxHTTPHeaderSize is 8kb max HTTP *Header* Size (emphasis added) Nothing to do with one another. -

Setting the maxHTTPHeaderSize to 'infinity'

2011-04-19 Thread Fischereit, Jana
Hi, I would like to send xml-files by using the http-post request-body. But I read that the default maxHTTPHeaderSize is 8kb (http://tomcat.apache.org/tomcat-6.0-doc/config/http.html#Standard_Implementation). So I cannot transfer files of arbitrary size. Why is there a limit? May problems occu

Re: [OT] Protecting against HTTP response splitting

2011-04-19 Thread Konstantin Kolinko
2011/4/19 Christopher Schultz : > > Looks like I must override sendRedirect because otherwise the setHeader > call implemented in Response.sendRedirect isn't intercepted by the > wrapper class. > > For those interested, see below for the implementation I came up with. > >            if(containsCRo

Re: Log rotate catalina.out

2011-04-19 Thread Igor Cicimov
Hi Thomas, Yes I have reference in the catalina.sh to the log4j.properties file: LOGGING_CONFIG="-Djava.util.logging.config.file=$CATALINA_BASE/conf/log4j.properties" this is what I get in the catalina.out on restart: INFO: Configuring Log4j from File: /data/apache-tomcat-6.0.29/webapps/applica