Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Felix Schumacher
On Tue, 26 Apr 2011 21:24:16 +0100, Guillaume Favier wrote: Thanks for your answer Felix, Well, after rethinking my original answer, I think you will have to define two clusters: worker.list=cluster1,cluster2 where each cluster worker has two distinct members worker.cluster1.type=lb

Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Guillaume Favier
Thanks Felix, that might do the trick. I'll test it and get back to you. nice hack BTW. gui On Wed, Apr 27, 2011 at 8:58 AM, Felix Schumacher felix.schumac...@internetallee.de wrote: On Tue, 26 Apr 2011 21:24:16 +0100, Guillaume Favier wrote: Thanks for your answer Felix, Well, after

Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Felix Schumacher
On Wed, 27 Apr 2011 09:58:45 +0200, Felix Schumacher wrote: On Tue, 26 Apr 2011 21:24:16 +0100, Guillaume Favier wrote: Thanks for your answer Felix, Well, after rethinking my original answer, I think you will have to define two clusters: worker.list=cluster1,cluster2 ...

Re: JDBCStore Persistent Manager

2011-04-27 Thread Reinwald Warapen
I had the same requirement and tried everything possible with the Persistent Manager. I use the Memcached Session Manager (non-sticky approach) and it works brilliantly. Take a look at this which may be of help to you :

RE: JDBCStore Persistent Manager

2011-04-27 Thread Badh, Tajvinder
Hi, Thank you for the suggestions. I will take try it out and let you know how it goes. Regards, Taj -Original Message- From: Reinwald Warapen [mailto:reinwal...@directi.com] Sent: 27 April 2011 10:18 To: Tomcat Users List Cc: Badh, Tajvinder Subject: Re: JDBCStore Persistent Manager

RE: JDBCStore Persistent Manager

2011-04-27 Thread Badh, Tajvinder
Hi, I am looking at the configuration settings needed in context.xml for Memcached and am unsure as to what to enter in the memcachedNodes setting. Access to one of the Tomcat instances is : https://ec2-46-51-148-192.eu-west-1.compute.amazonaws.com:8443 Can you please help in defining what

How to access session between multiple contexts?

2011-04-27 Thread Gregor Schneider
Hi there, somehow I'm stuck here: We do have a pre-packaged Tomcat 6 which contains our new CMS, running on Gentoo Linux. The ROOT-app contains the aboved mentioned CMS. Now I do have to integrate some legacy servlets residing each in it's own Context, and for aurthorization-issues I have to

RE: How to access session between multiple contexts?

2011-04-27 Thread Caldarale, Charles R
From: Gregor Schneider [mailto:rc4...@googlemail.com] Subject: How to access session between multiple contexts? I have enabled the SingleSignOnValve (although authorization is handled via some Spring-stuff) but I thought it is needed to share the session among different contexts. No, the

Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Guillaume Favier
Hi Felix, That's strange, it doesn't try to connect to the c1t2 worker, here is the log file. [Wed Apr 27 11:45:33 2011] [4129:47406689800960] [info] jk_open_socket::jk_connect.c (626): connect to 127.0.0.1:9001 failed (errno=111) [Wed Apr 27 11:45:33 2011] [4129:47406689800960] [info]

Re: Facelets webapp can't start on Tomcat 6.0.32

2011-04-27 Thread Fahmi Hachicha
Hello, The error is due to a missing class HtmlResponseWriterImpl.class in MyFaces JSF myfaces-impl-1.2.9.jar (I did not find it any where) in MyFaces Jars ! Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener

Re: SessionExamples from the examples webapp

2011-04-27 Thread János Löbb
Hi, During a good night sleep I realized that I have to compile the modified .java file :-) This is my current directory: bml0065:classes administrator$ pwd /usr/local/tomcat/webapps/examples/WEB-INF/classes When I do it I am getting the following errors: nyissz bml0065:classes

modjk apache response questions

2011-04-27 Thread Harsimranjit singh Kler
Hi I need some observations on loadbalancer with mod jk, such as How to check utilization of each httpd workers? How to check what is the number of connections active on the each separate Tomcats when there is load?.How i can increase response time?AJP port should unique in

JNDI, resource and LDAP Trouble

2011-04-27 Thread Kornmod
Hi, I'm trying to create a simple resource for my web-app. My web-app has to connect to a ldap server to maintain users. I have created a context.xml in my META-INF folder - with the following content: ?xml version=1.0 encoding=UTF-8? Context antiJARLocking=true path=/LDAP Resource

Re: modjk apache response questions

2011-04-27 Thread André Warnier
Harsimranjit singh Kler wrote: Hi I need some observations on loadbalancer with mod jk, such as How to check utilization of each httpd workers? How to check what is the number of connections active on the each separate Tomcats when there is load?.How i can increase response time?AJP port

Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread chris derham
But when I try to access my resource with the following code: Context newCtx = null; try { newCtx = new InitialContext(); } catch (NamingException e) { // TODO Auto-generated catch block

Logrotate killing Tomcat

2011-04-27 Thread Alex Carvalho da Silva
Hi everyone, One tomcat server instance die when the logrotate run every week... The last info I get in the logs are : Apr 7, 2011 4:03:15 AM org.apache.coyote.http11.Http11Protocol pause INFO: Pausing Coyote HTTP/1.1 on http-8180 Apr 7, 2011 4:03:16 AM org.apache.catalina.core.StandardService

Re: Tolerate expired certificates

2011-04-27 Thread Chris Beckey
Are you using JSSE or OpenSSL for your SSL implementation? On Tue, Apr 26, 2011 at 4:40 PM, Thomas Hill thomas.k.h...@t-online.dewrote: Hi Felix, thanks for your reply. So does this mean no way on Tomcat 5.5? (as I won't switch to a newer version, especially 7.x any time soon) To your

webapp servlet vers web services

2011-04-27 Thread Robert.Jenkin
Hi all, Not sure where to direct this question.. I thought I try here... In a webapp you have a servlet where by means of servlet mapping we can direct all traffic, example servlet-mapping servlet-nameInitServlet/servlet-name url-pattern//url-pattern /servlet-mapping If I

Re: modjk apache response questions

2011-04-27 Thread Harsimranjit singh Kler
Hi Andre i checked but i want simple steps to test load on my each worker as am doing first time.Thanks regards Harsimran On Wed, Apr 27, 2011 at 8:57 PM, Harsimranjit singh Kler simran...@gmail.com wrote: Hi I need some observations on loadbalancer with mod jk, such as How to check

Re: webapp servlet vers web services

2011-04-27 Thread Calum
On 27 April 2011 18:02, robert.jen...@surecomp.com wrote:  servlet-mapping    servlet-nameInitServlet/servlet-name    url-pattern//url-pattern  /servlet-mapping If I understand spec correctly and this being the only mapping, it will become the default and all requests will be routed to

RE: webapp servlet vers web services

2011-04-27 Thread Caldarale, Charles R
From: Calum [mailto:cal...@gmail.com] Subject: Re: webapp servlet vers web services On 27 April 2011 18:02, robert.jen...@surecomp.com wrote:  servlet-mapping    servlet-nameInitServlet/servlet-name    url-pattern//url-pattern  /servlet-mapping If I understand spec correctly and

Re: JDBCStore Persistent Manager

2011-04-27 Thread Martin Grotzke
Hi Taj, say you have two tomcat servers that you can access at https://ec2-46-51-148-192.eu-west-1.compute.amazonaws.com:8443 and https://ec2-47-51-148-192.eu-west-1.compute.amazonaws.com:8443 and on both machines you have installed memcached, running on port 11211, then you can configure msm in

RE: webapp servlet vers web services

2011-04-27 Thread Martin Gainty
Hi Robert- There are a number of web-service frameworks you can implement to publish a service and consume the service with a client stub starting with the lightly loaded REST webservice (WADL) http://wikis.sun.com/display/Jersey/WADL next implementation and most widely used in the non-REST

Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Felix Schumacher
Am Mittwoch, den 27.04.2011, 10:21 +0200 schrieb Felix Schumacher: On Wed, 27 Apr 2011 09:58:45 +0200, Felix Schumacher wrote: On Tue, 26 Apr 2011 21:24:16 +0100, Guillaume Favier wrote: Thanks for your answer Felix, Well, after rethinking my original answer, I think you will have to

Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Guillaume Favier
Felix, Dis you check my workaround ? On Wed, Apr 27, 2011 at 7:01 PM, Felix Schumacher felix.schumac...@internetallee.de wrote: Am Mittwoch, den 27.04.2011, 10:21 +0200 schrieb Felix Schumacher: On Wed, 27 Apr 2011 09:58:45 +0200, Felix Schumacher wrote: On Tue, 26 Apr 2011 21:24:16

Re: Logrotate killing Tomcat

2011-04-27 Thread Wesley Acheson
As far as I can see theres's no exception in this log. Is there anything of intrest a few lines before this? Like a stack trace. What does catalina.out say? On Wed, Apr 27, 2011 at 6:36 PM, Alex Carvalho da Silva alexc...@gmail.comwrote: Hi everyone, One tomcat server instance die when the

(Issue) Tomcat 7.0.12 silent install

2011-04-27 Thread John Marcinek
Thanks in advance for help. ENVIRONMENT: Java = JDK1.6 32 bit Operating System = Microsoft Windows Server 2008 R2 Standard (64 bit system) Tomcat installation file = apache-tomcat-7.0.12.exe ISSUE: - Tomcat silent install does not work on Windows 2008 Server. When

webservice handler

2011-04-27 Thread Robert.Jenkin
Thanks for the input people I have added a soap handler and works well... does require a minor change to all webservices to specify the annotation HandlerChain... I believe this can be done in code at start up and not coded in the actual service. Sincerely, Robert Jenkin Surecomp

Re: Logrotate killing Tomcat

2011-04-27 Thread Alex Carvalho da Silva
It's a catalina.out log. There isn't anything before that. There is 4 instance running and only with this I have problem. I discovered that this problem occurs when logrotate runs, but there isn't tomcat script on the /etc/logrotate.d/ Alex Carvalho 2011/4/27 Wesley Acheson

Re: modjk apache response questions

2011-04-27 Thread André Warnier
It may be me, but your question is not very clear. Let me try again : Since you seem to have Apache httpd in front of Tomcat, you can try to use the ab program which comes with Apache httpd, to send requests to httpd, and by selecting appropriate requests, have them forwarded to Tomcat through

RE: (Issue) Tomcat 7.0.12 silent install

2011-04-27 Thread Caldarale, Charles R
From: John Marcinek [mailto:john.marci...@pb.com] Subject: (Issue) Tomcat 7.0.12 silent install Thanks in advance for help. Thanks for all the environment info; always good to have. Tomcat silent install does not work on Windows 2008 Server. Did you try it from a command window that's

Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Felix Schumacher
Am Mittwoch, den 27.04.2011, 19:20 +0100 schrieb Guillaume Favier: Felix, Dis you check my workaround ? On Wed, Apr 27, 2011 at 7:01 PM, Felix Schumacher felix.schumac...@internetallee.de wrote: Am Mittwoch, den 27.04.2011, 10:21 +0200 schrieb Felix Schumacher: On Wed, 27 Apr

Accessing (session) Manager in servlet

2011-04-27 Thread Juriy Bura
Hello everybody! I need to access the Manager from the servlet (or filter) in Tomcat to load the custom session by custom session ID. Answering your next question: why do I need it. There's an old bug in Flash that causes it to send cookies from IE and not from the current browser. So, if I'm in

Re: pure tomcat failover (no loadbalacing)

2011-04-27 Thread Guillaume Favier
On Wed, Apr 27, 2011 at 8:55 PM, Felix Schumacher felix.schumac...@internetallee.de wrote: Am Mittwoch, den 27.04.2011, 19:20 +0100 schrieb Guillaume Favier: Felix, Dis you check my workaround ? On Wed, Apr 27, 2011 at 7:01 PM, Felix Schumacher felix.schumac...@internetallee.de

Connection pool race condition

2011-04-27 Thread chris derham
All, So we have various tomcat services setup on windows. When windows updates are auto installed, sometimes they force a reboot of the server. When this happens, the tomcats win the race with the database (Oracle) to startup. Then the connection pool can't start, and then the war file is flagged

Re: SessionExample from the examples webapp

2011-04-27 Thread János Löbb
Hi, Adding some -claspath based upon man javac, I reduced the number of errors to two. bml0065:classes administrator$ sudo javac -classpath /usr/local/apache-tomcat-7.0.10/webapps/examples/WEB-INF/classes/util:/usr/local/apache-tomcat-7.0.10/lib/servlet-api.jar SessionExample.java

RE: (Issue) Tomcat 7.0.12 silent install

2011-04-27 Thread John Marcinek
Thanks for responding so quickly Chuck. I appreciate it. Did you try it from a command window that's started with Run as Administrator? No I did not. I have now, but it still did not work. Likely due to your second question/request, i.e. default 64 bit JVM. Also make sure that you have a

RE: (Issue) Tomcat 7.0.12 silent install

2011-04-27 Thread Caldarale, Charles R
From: John Marcinek [mailto:john.marci...@pb.com] Subject: RE: (Issue) Tomcat 7.0.12 silent install I've been installing the 32-bit version of Tomcat (sorry, don't think I mentioned that). There is no 32-bit-only Windows service installer, but there are 32- or 64-bit specific .zip files.

Re: (Issue) Tomcat 7.0.12 silent install

2011-04-27 Thread Mark Thomas
On 27/04/2011 21:55, Caldarale, Charles R wrote: From: John Marcinek [mailto:john.marci...@pb.com] Subject: RE: (Issue) Tomcat 7.0.12 silent install I've been installing the 32-bit version of Tomcat (sorry, don't think I mentioned that). There is no 32-bit-only Windows service

Re: JNDI, resource and LDAP Trouble

2011-04-27 Thread Kornmod
Thanks Chris, I have tried this before - with little success. The code does not through any exception now - but the DirContext object (ctx) is null and by that unusable: DirContext ctx = (DirContext) newCtx.lookup(java:comp/env/blah); if (ctx !=