Re: mod_jk + tomcat 5.5 and apache2.2

2008-05-08 Thread Felix Schumacher
On Thu, May 8, 2008 6:21 am, mamta chaudhary wrote: I am configuring mod_jk to connect apache2.2 and tomcat5.5. But it seems apache is not connecting to tomcat. If I run http://example.com:8080/jsp-examples/ or http://example.com:7690/jsp-examples/ [here 8080 is tomcat port and 7690 is

Re: response goes through load balancer?

2008-05-08 Thread Felix Schumacher
On Thu, May 8, 2008 6:16 am, Dave wrote: Hi, I am using Apache mod JK as load balancer for tomcat instances. Tomcat instances are on the different machines with public IP addresses. Will the HTTP responses go back to the Apache load balance? If so, it will slow down the response. how to

Re: Web server and tomcat - firewall

2008-05-08 Thread Rainer Jung
Andrew Hole schrieb: Thanks What means: error 10054 = Connection reset by peer. The backend (Tomcat) or the firewall or something similar in between httpd and Tomcat send back a TCP reset packet, when mod_jk send a packet on an established connection. A reset connection can not be used any

Re: CPU usage quirk with multiple tomcat instances

2008-05-08 Thread Lists
we use sar and look at cpu utilisation.. - Original Message From: Tomcat Users List users@tomcat.apache.org To: Tomcat Users List users@tomcat.apache.org Subject: Re: CPU usage quirk with multiple tomcat instances Date: 07/05/08 08:13 btw, how do you measure it? vmstats? top?

Re: CPU usage quirk with multiple tomcat instances

2008-05-08 Thread Leon Rosenberg
but sar only shows you 10 minute averages ,right? It would never show you any peaks. leon On Thu, May 8, 2008 at 12:09 PM, Lists [EMAIL PROTECTED] wrote: we use sar and look at cpu utilisation.. - Original Message From: Tomcat Users List users@tomcat.apache.org To: Tomcat

Re: auth-mode=DIGEST and MD5 digested passwords

2008-05-08 Thread lunarfish
Hi Mark - I appear to have the same issue here. What I've done is changed the default UserDatabase realm, added digest='MD5' and digested the passwords in the file. This works fine. I've then changed web.xml to DIGEST authentication and re-digested the passwords as user:UserDatabase:password

Re: auth-mode=DIGEST and MD5 digested passwords

2008-05-08 Thread Mark Thomas
lunarfish wrote: Hi Mark - I appear to have the same issue here. What I've done is changed the default UserDatabase realm, added digest='MD5' and digested the passwords in the file. This works fine. I've then changed web.xml to DIGEST authentication and re-digested the passwords as

Re: TOMCAT CLUSTERING HOWTO

2008-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, karthikn wrote: | As per TOMCAT CLUSTERING HOWTO documents | I am trying clustering on 2 TOMCAT 5.5.23 on WINDOWS OS sharing the | same JVM 1.6 What are you using to split traffic between these two instances? It does not

Re: can the mount directive be used for load balancers?

2008-05-08 Thread Stephanie Wullbieter
Thank You very much. I can confirm that it works with balancers with mod_jk 1.2.18 too, allthough that is not as clearly documented as in the docs for the current mod_jk version. Original-Nachricht Datum: Wed, 07 May 2008 20:20:34 +0200 Von: Rainer Jung [EMAIL PROTECTED] An:

Re: Tomcat CPU 100%

2008-05-08 Thread Jerome Jar
Hi, Andrea, Look at this: http://iusr.spaces.live.com/blog/cns!69F4725ED815E770!408.entry A summary of mine after resolving the same problem. It's quite clear from the thread dump to tell which thread is running into a JSP page. Cheers, Jerome On Wed, May 7, 2008 at 10:19 PM, Andrea Di Muro

Re: which directives are for which worker types?

2008-05-08 Thread Stephanie Wullbieter
I will update to mod_jk 1.2.18 and in the documentation there are the directives (doku/apache/mod_jk/tomcat-connectors-1.2.18-src/docs/config/workers.html) What is not really clear to me is what directives are _only_ for what worker types. That is clearly documeted in the current worker doc

retrieving two different objects from session (should be the same)

2008-05-08 Thread Abid Hussain
Hi everybody, I'm using tomcat 5.5.9 and am encountering a strange behaviour. I'm not sure, if it may be a tomcat issue... I'm putting an object (called form) into the user's session using session.setAttribute() and retrieving it again (after the user has done some actions) using

Re: retrieving two different objects from session (should be the same)

2008-05-08 Thread Mark Thomas
Abid Hussain wrote: Anybody got an idea, how this can happen? Does tomcat modify the objects in session somehow...? Do you have any session persistence configured? Mark - To start a new topic, e-mail:

Re: TOMCAT CLUSTERING HOWTO

2008-05-08 Thread karthikn
Hi Sorry for delay and Thx for the reply I'm certainly confused as to why you would run two Tomcats on the same JVM. First of all, how did you do that? Are you using Tomcat embedded or something? Yes I have 2 TOMCAT individual running on same Windows2000 Machine sharing the same JVM with

Re: retrieving two different objects from session (should be the same)

2008-05-08 Thread Abid Hussain
Hi, thanks for help. As far as I know, persisting sessions is only used when stopping and restarting tomcat, which didn't happen in my case. So, this shouldn't be the reason...? If it's important for this issue, I can have a look in the server.xml. This would take some time, cause I've no

Re: auth-mode=DIGEST and MD5 digested passwords

2008-05-08 Thread lunarfish
Hi Mark. Thanks for the swift response. I've just upgraded to 5.5.26 (5 minutes ago) and the digest auth is all working with the newer release. I guess it may just have been broken in 5.0.28. Cheers. Dan -- View this message in context:

RE: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Caldarale, Charles R
From: Abid Hussain [mailto:[EMAIL PROTECTED] Subject: Re: retrieving two different objects from session (should be thesame) So, this shouldn't be the reason...? Are you properly synchronizing accesses to the session for concurrent requests? Browsers will almost always generate multiple

Re: mod_jk + tomcat 5.5 and apache2.2

2008-05-08 Thread mamta chaudhary
Thanx Felix for the clarification. I have one more question. Although the following error is not interrupting, I am getting this error as soon as I start Apache. Starting web server (apache2)...[Thu May 08 08:30:56 2008] [warn] Useless use of AllowOverride in line 25. [Thu May 08 08:30:56

Help Needed with Security Manager

2008-05-08 Thread Jonathan O'Donovan
Hi All - can anyone help me with this as I'm under pressure and am a relative newcomer to Tomcat. The problem seems to be with the Java Security Manager, if I'm not mistaken. The following 'access denied' entries are recorded in the main logger for Tomcat: (I have enabled SecurityManager

Re: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | Are you properly synchronizing accesses to the session for concurrent | requests? Silly question how do you do this? The result of HttpServletRequest.getSession gives you a SessionFacade which is not

Re: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Abid Hussain
Hi again, I'm not sure if I got the point. I would have thought that it doesn't matter if concurrent requests come in, cause: 1. There's only one request which ends up in the servlet where the described behaviour came up. The other requests which are generated by the browser wouldn't be

Re: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Abid Hussain
Hi, The result of HttpServletRequest.getSession gives you a SessionFacade which is not guaranteed to be the same as the one given to another thread accessing the same session (right?). You could synchronize using an object stored /in/ the session, but then you have to worry about that object

RE: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: retrieving two different objects from session (should be thesame) Silly question how do you do this? Synchronizing on the SessionFacade will suffice for this purpose - checking if an attribute exists and then storing it

RE: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Caldarale, Charles R
From: Abid Hussain [mailto:[EMAIL PROTECTED] Subject: Re: retrieving two different objects from session (should be thesame) so this means, it's specified behaviour that there is no guarantee, having an object placed in session would be the same after retrieving it after some time...?

RE: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Caldarale, Charles R
From: Abid Hussain [mailto:[EMAIL PROTECTED] Subject: Re: retrieving two different objects from session (should be thesame) 1. There's only one request which ends up in the servlet where the described behaviour came up. Only true if the user never opens two windows/frames targeting the

Re: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | From: Christopher Schultz [mailto:[EMAIL PROTECTED] | Subject: Re: retrieving two different objects from session | (should be thesame) | | Silly question how do you do this? | | Synchronizing on the

Re: TOMCAT CLUSTERING HOWTO

2008-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karthik, karthikn wrote: | Yes I have 2 TOMCAT individual running on same Windows2000 | Machine sharing the same JVM with Startup / Shutdown Ports,but not | embedded. Can you explain how to start two Tomcat instances in a single JVM? | Would this

RE: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: retrieving two different objects from session (should be thesame) My tenuous understanding of session handling in Tomcat is that HttpServletRequest.getSession roughly returns: new

RE: TOMCAT CLUSTERING HOWTO

2008-05-08 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: TOMCAT CLUSTERING HOWTO Can you explain how to start two Tomcat instances in a single JVM? I suspect the OP means one JVM installation as opposed to one JVM instance. (He seems a bit, shall we say, terminology challenged.)

Re: TOMCAT CLUSTERING HOWTO

2008-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | Clustering does not work without a load balancer. Period. | | Not strictly true. Clustered Tomcats don't care if the requests are | coming through a load balancer or someone manually changing port or | IP

Re: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Martin
are you proposing synchronized access to facade object ? M- - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, May 08, 2008 10:33 AM Subject: Re: retrieving two different objects from session (should be

Re: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | From: Christopher Schultz [mailto:[EMAIL PROTECTED] | Subject: Re: retrieving two different objects from session | (should be thesame) | | My tenuous understanding of session handling in Tomcat | is that

Re: retrieving two different objects from session (should be thesame)

2008-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin wrote: | are you proposing synchronized access to facade object No, I'm suggesting that it should be easy enough to: synchronized(session) { ~ // do something that requires exclusive session access } ~From what Chuck says, it

ssl server configuration

2008-05-08 Thread Kevin Williams
I followed the instructions to setup the ssl server for tomcat(stand alone) on the website. I'm using v5.5 with jre 1.5 on solaris. I created my keystore, got a signed cert from my CA and inserted it into the keystore, added my CA chain certs to the keystore. I modified the server.xml file to

Re: Fw: ssl server configuration

2008-05-08 Thread Kevin Williams
I followed that same tutorial. Here's mine, looks good compared to yours: Connector port=8443 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https

I dont want my users to see tomcat console. Any advice?

2008-05-08 Thread ryan webb
Dear Tomcat users, *Situation:* - I have internal web application (corporate web site only). - I don't have Domain, user access our site using example: http://107.105.13.236/webApplication/. *Problem:* - Users see tomcat manager console site when they type in URL http://107.105.13.236/

Re: I dont want my users to see tomcat console. Any advice?

2008-05-08 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true.

Re: I dont want my users to see tomcat console. Any advice?

2008-05-08 Thread ryan webb
Mr. Johnny Kewl, Thank you very much for your quick reply. I get what are you trying to say. except on the last part: Also make a note of the URL on the default page, so you can still get at the admin stuff. what note? please write simple example. You're right, if I restricted the users from

Re: response goes through load balancer?

2008-05-08 Thread Dave
Hi Felix, Thank you for your help. One apache in the front end as load balancer is not sufficient for heavy traffic. If I use two apaches in the front, how to use DNS to load balancing Apaches? That is, some requests go to Apache1, and the others go to Apache2. For example, for

how to configure SSL in embedde tomcat.

2008-05-08 Thread Swati Jain Goyal
hi Please tell me a way to configure SSL environment using embedded tomcat 6.0. I have tried it using Embedded tomcat 5.5.9 and it accepts the https requests. But when trying to run the same code using embedded Apache tomcat 6.0, it doesnt accepts https requests. When I debugged it, I found

Hi..

2008-05-08 Thread Ch Praveena
Hi all, Can anyone send me any sample source code(war file) that implements session for a very important testing purpose of clustering. -- -Coolest Regards, Praveena Chalamcharla, Securview