Question about thread management

2009-12-11 Thread Stéphane PURNELLE
Hi all, Server description : tomcat 6.0.16, jdk 6.0.7 64-bits, RedHal EL 4.8 64-bits, mod-jk enabled. On this server, we have 2 servlets managed by tomcat and some java programs which run by cron. all run fine except sometimes we have a java hotspot : # # An unexpected error has been

Re: Basic and Form Authentication

2009-12-11 Thread Anthony Jay
Hi all, Winners never quit and quitters never win See. http://marc.info/?l=tomcat-userm=126047599208053w=2 Thanks for the assistance!!! Tony Anthony Jay wrote: yes, I was aware of this, as mentioned on a previous mail, but as its neither production ready nor complete it would be a huge

Re: Contexts and Path and Authentication

2009-12-11 Thread Anthony Jay
Excellent. Now I have an elegant plan B in case my current apache-mod_auth_mysql-tomcat-form-based-authentication solution proves impractical. http://marc.info/?l=tomcat-userm=126047599208053w=2 Regards, Tony Christopher Schultz wrote: securityfilter (http://securityfilter.sourceforge.net) can

Re: New to Tomcat -- SSL

2009-12-11 Thread Mark Thomas
Adria Stembridge wrote: I'm setting up a standalone instance of Tomcat with SSL. Tomcat5 is installed on the RHEL5 box and the sample pages load fine. I created a csr using keytool and requested a certificate from Verisign. After this is imported (I'm waiting on delivery from verisign),

Re: New to Tomcat -- SSL

2009-12-11 Thread Pid
On 11/12/2009 11:47, Adria Stembridge wrote: I'm setting up a standalone instance of Tomcat with SSL. Tomcat5 is installed on the RHEL5 box and the sample pages load fine. I created a csr using keytool and requested a certificate from Verisign. After this is imported (I'm waiting on

Re: Rerouting Traffic when number of connection increases

2009-12-11 Thread Arunkumar Janarthanan
Nope, the servers are capable of managing upto 250k user loads , when it goes beyond it blows up. So we were thinking to have such mechanism that if user load goes more than such amount or if all Apache processing near to its maximum to have the load directed to another maintanance instances.

Re: Contexts and Path and Authentication

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/10/2009 6:26 PM, André Warnier wrote: Christopher Schultz wrote: securityfilter (http://securityfilter.sourceforge.net) can be tricked into doing this. Although the standard operating procedure is to map sf to all URLs (i.e.

Re: Context Chicken Egg Problem

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scot, Original Message Subject: RE: Context Chicken Egg Problem From: Caldarale, Charles R chuck.caldar...@unisys.com Date: Thu, December 10, 2009 6:24 pm To: Tomcat Users List users@tomcat.apache.org From:

Re: Question about thread management

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stéphane, On 12/11/2009 4:48 AM, Stéphane PURNELLE wrote: Server description : tomcat 6.0.16, jdk 6.0.7 64-bits, RedHal EL 4.8 64-bits, mod-jk enabled. Whose JDK is that? 6.0.7 isn't a version number I recognize. On this server, we have 2

RE: Question about thread management

2009-12-11 Thread Caldarale, Charles R
From: Stéphane PURNELLE [mailto:stephane.purne...@corman.be] Subject: Question about thread management Server description : tomcat 6.0.16, jdk 6.0.7 64-bits, RedHal EL 4.8 64-bits, mod-jk enabled. # # An unexpected error has been detected by Java Runtime Environment: # # Internal

mod_jk and session stickyness of images requests

2009-12-11 Thread Kockert, Timo
Hello everyone, first time posting to this list, so please don't be too hard with me ;-) We have a problem with the session stickyness of mod_jk in the context of image requests. First of all, here is our setup: 3 servers running Tomcat 5.5.x with AJP connector 2 servers running Apache

Re: Tomcat 6.0.16 + mod_jk 1.2.19 - request threads hanging up

2009-12-11 Thread Rainer Jung
On 09.12.2009 12:18, Pid wrote: On 09/12/2009 11:00, Alessandro Bahgat wrote: Nishant, that didn't quite work, actually. After some struggle with our outsourcers, we added a new machine running Tomcat 6.0.20 *without tcnative* (they misplaced the .so files). That eventually resulted in a

Re: Rerouting Traffic when number of connection increases

2009-12-11 Thread Tobias Crefeld
Am Thu, 10 Dec 2009 16:44:35 -0500 schrieb Arunkumar Janarthanan arunkumar.webad...@gmail.com: We have a 4 Apache Tomcat instances running on and trying to setup a What do you mean with 4 Apache Tomcat exactly? custom message by redirecting user to different Apache instance with currently

Re: Rerouting Traffic when number of connection increases

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Arun, On 12/10/2009 4:44 PM, Arunkumar Janarthanan wrote: We have a 4 Apache Tomcat instances running on and trying to setup a custom message by redirecting user to different Apache instance with currently we are experiencing HIGH traffic, please

Re: mod_jk and session stickyness of images requests

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo, On 12/11/2009 10:27 AM, Kockert, Timo wrote: first time posting to this list, so please don't be too hard with me ;-) Welcome to the list. Hey, you posted your relevant environment details, a clear description of your problem, and admitted

Re: New to Tomcat -- SSL

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adria, On 12/11/2009 6:47 AM, Adria Stembridge wrote: I'm setting up a standalone instance of Tomcat with SSL. Tomcat5 is installed on the RHEL5 box and the sample pages load fine. I created a csr using keytool and requested a certificate from

Re: deadlock in database connection pooling?

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mitch, On 12/10/2009 7:43 PM, Mitch Claborn wrote: poolPreparedStatements=true driverClassName=com.mysql.jdbc.Driver validationQuery=select * from operator limit 1 FWIW, this is a non-ideal validation

Re: Deploying and building a war file

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, On 11/9/2009 7:04 AM, Ziggy wrote: I've got a query on the way web applications are deployed. I have an application that has several jsp files and serlvets that are in WEB-INF/classes. JSP files in WEB-INF/classes? Yuk. When i deploy the

Re: Auto deploy feature in Embedded tomcat

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sanjay, On 12/10/2009 4:44 AM, sanjay_pa...@johnlewis.co.uk wrote: I have my application setup on RAD7 using Embedded tomcat via tomcat-maven-plugin and I run my application via mvn tomcat:run command. While this setup is working fine for me, I

Re: mod_jk and session stickyness of images requests

2009-12-11 Thread André Warnier
Kockert, Timo wrote: Hello everyone, first time posting to this list, so please don't be too hard with me ;-) We have a problem with the session stickyness of mod_jk in the context of image requests. First of all, here is our setup: 3 servers running Tomcat 5.5.x with AJP connector 2 servers

AW: mod_jk and session stickyness of images requests

2009-12-11 Thread Kockert, Timo
Welcome to the list. Hey, you posted your relevant environment details, a clear description of your problem, and admitted that the problem might be your own code. What more could we ask for? :) Thank you for the warm welcome and the fast reply :-) The most likely problem is that you are not

Re: Can RequestDispatcher forward long-polled requests? (Comet)

2009-12-11 Thread Filip Hanik - Dev Lists
On 12/10/2009 09:10 PM, moeshroom wrote: If so, how? On BEGIN events I am storing the HttpServletRequest, HttpServletResponse, and the ServletContext associated with the request. From my MessageSender thread I am successfully able to write to my stored HttpServletResponses. But I can't

Windows 2008 x64 and Tomcat

2009-12-11 Thread Sabo, Eric
I know that I posted this subject before but we still are not able to get tomcat configured in our Windows 2008 x64 (IIS 7) environment so that JSP pages will be shown on our web server.Does anyone have complete steps to configure Tomcat on an Windows 2008 x64 server? Any help would be

Re: AW: mod_jk and session stickyness of images requests

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo, On 12/11/2009 11:09 AM, Kockert, Timo wrote: Welcome to the list. Hey, you posted your relevant environment details, a clear description of your problem, and admitted that the problem might be your own code. What more could we ask for? :)

Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-11 Thread Gerhardus.Geldenhuis
Hi We have upgraded our modjk from .26 to .28 using mod_jk-1.2.28-httpd-2.2.X.so obtained from http://../tomcat-connectors/jk/binaries/linux/jk-1.2.28/x86_64/ We are running Server version: Apache/2.2.3 Server built: Nov 12 2008 10:40:14 CentOS release 5.2 (Final) After upgrading we are

AW: mod_jk and session stickyness of images requests

2009-12-11 Thread Kockert, Timo
We are using Cocoon and its EncodeUrlTransformer to do the session ID encoding: map:transformer logger=sitemap.transformer.encodeURL name=encodeURL pool-max=${encodeurl- transformer.pool-max} src=org.apache.cocoon.transformation.EncodeURLTransformer

Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-11 Thread André Warnier
gerhardus.geldenh...@gta-travel.com wrote: Hi We have upgraded our modjk from .26 to .28 using mod_jk-1.2.28-httpd-2.2.X.so obtained from http://../tomcat-connectors/jk/binaries/linux/jk-1.2.28/x86_64/ We are running Server version: Apache/2.2.3 Server built: Nov 12 2008 10:40:14

AW: mod_jk and session stickyness of images requests

2009-12-11 Thread Kockert, Timo
Kockert, Timo wrote: Hello everyone, first time posting to this list, so please don't be too hard with me ;-) [snip] A very good first post. Thanks :-) Although I have to admit that this is in fact my first post to this list, but not my first post to ask for help ;-) One additional

RE: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-11 Thread Gerhardus.Geldenhuis
-Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: 11 December 2009 17:43 To: Tomcat Users List Subject: Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28 gerhardus.geldenh...@gta-travel.com wrote: Hi We have

Re: deadlock in database connection pooling?

2009-12-11 Thread Mitch Claborn
Excellent information! I will try those immediately. mitch Christopher Schultz wrote: Mitch, On 12/10/2009 7:43 PM, Mitch Claborn wrote: poolPreparedStatements=true driverClassName=com.mysql.jdbc.Driver validationQuery=select * from operator

Re: mod_jk and session stickyness of images requests

2009-12-11 Thread Len Popp
On Fri, Dec 11, 2009 at 12:38, Kockert, Timo timo.kock...@adesso-mobile.de wrote: Just to clarify: I know the EncodeUrlTransformer does the encoding for me. The problem seems to be that some devices do not send session ID cookies with image requests. Do you know what type of devices they are?

Re: New to Tomcat -- SSL

2009-12-11 Thread Adria Stembridge
Should the port redirects for Connector 8080 and 8009 also be changed to 443? a On Fri, Dec 11, 2009 at 6:59 AM, Pid p...@pidster.com wrote: On 11/12/2009 11:47, Adria Stembridge wrote: I'm setting up a standalone instance of Tomcat with SSL. Tomcat5 is installed on the RHEL5 box and the

Re: New to Tomcat -- SSL

2009-12-11 Thread Adria Stembridge
I've updated the connector as follows: Connector port=8080 redirectPort=8443 minSpareThreads=25 connectionTimeout=2 maxSpareThreads=75 maxThreads=150 /Connector Connector port=443 scheme=https secure=true

Re: New to Tomcat -- SSL

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Adria, On 12/11/2009 2:48 PM, Adria Stembridge wrote: I've updated the connector as follows: Connector port=8080 redirectPort=8443 minSpareThreads=25 connectionTimeout=2 maxSpareThreads=75

Re: New to Tomcat -- SSL

2009-12-11 Thread Adria Stembridge
Any reason you are using Apache httpd, here, at all? None - I'd prefer not using it at all if possible. If Apache httpd is not needed, shut it down and disable it. In fact, uninstall it if you don't need it. Perfect. Ports 80, 8080, 443 and 8443 are allowed through the firewall. You

Re: Context Chicken Egg Problem

2009-12-11 Thread David Fisher
Hi Chris, public class UniverseLoader extends HttpServlet { protected long timeLoaded; public void init() throws ServletException { new Thread(new LoadUniverseTask()).start(); } public void doGet(HttpServletRequest request, HttpServletResponse response) throws

Re: New to Tomcat -- SSL

2009-12-11 Thread Adria Stembridge
Well, I appear to have something wrong. Pages are not served over 80 or 443 after updating server.xml and iptables. [linux]# netstat -an | grep LISTEN tcp0 0 0.0.0.0:897 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp0

Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gerhardus, On 12/11/2009 12:32 PM, gerhardus.geldenh...@gta-travel.com wrote: We have upgraded our modjk from .26 to .28 using mod_jk-1.2.28-httpd-2.2.X.so obtained from http://../tomcat-connectors/jk/binaries/linux/jk-1.2.28/x86_64/ Any chance

Re: New to Tomcat -- SSL

2009-12-11 Thread André Warnier
Adria Stembridge wrote: Well, I appear to have something wrong. Pages are not served over 80 or 443 after updating server.xml and iptables. [linux]# netstat -an | grep LISTEN try netstat -pan, which will also give you the PID of the process owning the listening socket. ... tcp0

Re: Strange characters seen in RR and Cd columns on jkserver-status page after upgrading modjk to .28

2009-12-11 Thread André Warnier
Christopher Schultz wrote: ... After upgrading we are seeing random characters in the RR an Cd columns on the jkserver-status page. eg o%2B o+ Is this only appearing on the mod_jk status page? In think André is asking about other pages (like those generated by JSP code). The status page

Minor Doc Bug on website

2009-12-11 Thread Dan Armbrust
On the page: http://tomcat.apache.org/tomcat-6.0-doc/jasper-howto.html It talks about: genStringAsCharArray - Should text strings be generated as char arrays, to improve performance in some cases? Default false. In the web.xml of Tomcat 6.0.20, the parameter name is: genStrAsCharArray Should

cluster error recovered?

2009-12-11 Thread Mitch Claborn
tomcat 6.0.20 cluster See output below. There are errors at the beginning. Do the later messages (e.g. INFO: Manager [localhost#]; session state send at 12/11/09 5:16 PM received in 7,894 ms.) indicate that it recovered? Is there a way to somehow determine that the cluster is operational after

Re: mod_jk all endpoints are disconnected

2009-12-11 Thread peter.shen
Hi brother I meet the same problem , I want to know the reason and how fix it? %-| ke...@newsgroupstats.hk wrote: Hi All, My Apache 2.2 (win32) + Tomcat 6 are running very well in my production environment but I am noticed that jk are sometime spend unexpected long time to response. (4-5