mod_jk load balancing problem

2011-01-26 Thread Shoaib M. Chaudhary
Hello, I am trying to use mod_jk with tomcat 5.5.3x. When I use mode_jk with one worker it works fine but when I use loadbalancer with two different tomcats the server doesn't response but always try to refresh the page. Can any one help me out please. Regards * Shoaib *

mail.jar, activation.jar and classloading

2011-01-26 Thread Michael Ludwig
What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Quote from the Tomcat docs: Unpackage the distribution(s) and place mail.jar (and activation.jar if required) into $CATALINA_HOME/lib so the JAR(s) is(are) available to Tomcat during the

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Mikolaj Rydzewski
On Wed, 26 Jan 2011 11:52:04 +0100, Michael Ludwig mil...@gmx.de wrote: What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Any objects you want have access to via JNDI, have to be accessible by tomcat in order to create them. That means

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Ronald Klop
For the record: JAF (activation.jar) is already in Java 6 (and that sucks :-)). Op woensdag, 26 januari 2011 11:52 schreef Michael Ludwig mil...@gmx.de: What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Quote from the Tomcat docs:

Re: mod_jk load balancing problem

2011-01-26 Thread Michael Ludwig
Shoaib M. Chaudhary schrieb am 26.01.2011 um 15:48 (+0500): I am trying to use mod_jk with tomcat 5.5.3x. When I use mode_jk with one worker it works fine Okay. but when I use loadbalancer with two different tomcats the server doesn't response No response at all? Or some error status?

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Michael Ludwig
Ronald Klop schrieb am 26.01.2011 um 12:08 (+0100): For the record: JAF (activation.jar) is already in Java 6 (and that sucks :-)). It might (I don't know). Mail.jar, however, isn't in Java 6 SE. And from the discussion on the Ant list it appeared that there was something special about this

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Michael Ludwig
Mikolaj Rydzewski schrieb am 26.01.2011 um 12:07 (+0100): On Wed, 26 Jan 2011 11:52:04 +0100, Michael Ludwig mil...@gmx.de wrote: What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Any objects you want have access to via JNDI, have to be

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Mikolaj Rydzewski
On Wed, 26 Jan 2011 12:24:58 +0100, Michael Ludwig mil...@gmx.de wrote: Mikolaj Rydzewski schrieb am 26.01.2011 um 12:07 (+0100): On Wed, 26 Jan 2011 11:52:04 +0100, Michael Ludwig mil...@gmx.de wrote: What is special about mail.jar (and activation.jar) that requires putting them into the

Re: mail.jar, activation.jar and classloading

2011-01-26 Thread Konstantin Kolinko
2011/1/26 Michael Ludwig mil...@gmx.de: What is special about mail.jar (and activation.jar) that requires putting them into the common.loader? Quote from the Tomcat docs:  Unpackage the distribution(s) and place mail.jar (and activation.jar  if required) into $CATALINA_HOME/lib so the

RE: 400 error when a request does not map to a context

2011-01-26 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: 400 error when a request does not map to a context There was a list discussion about this recently, which I thought led to a BZ, but I can't see it now. You might be thinking of this one:

Problem with overriding parameters via context.xml

2011-01-26 Thread chris derham
All, I appear to have an issue with tomcat 6.0.30 not allowed web.xml parameters to be over-ridden via context.xml file entries. This works fine in tomcat 6.0.29. I have a parameter defined in web.xml, like this ?xml version=1.0 encoding=ISO-8859-1? web-app

RE: Problem with overriding parameters via context.xml

2011-01-26 Thread Caldarale, Charles R
From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Subject: Problem with overriding parameters via context.xml So I create a context.xml file in catalina_base\conf\context.xml containing the following That could be a problem. The context.xml file in the conf

Re: Problem with overriding parameters via context.xml

2011-01-26 Thread chris derham
Chuck, Thanks for your quick response. I have tried placing the context.xml file in the location you suggested and no change. I didn't mention in m original post, but our context.xml also contains resource definitions to connect to the database/smtp server. These settings are being picked up

Re: 400 error when a request does not map to a context

2011-01-26 Thread Konstantin Kolinko
2011/1/25 Christopher Schultz ch...@christopherschultz.net: Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404 Not Found. Tomcat 6.0.29 and Tomcat 7.0.6 both behave this way. With no ROOT context deployed, make a

Re: [OT] 400 error when a request does not map to a context

2011-01-26 Thread André Warnier
Konstantin Kolinko wrote: 2011/1/25 Christopher Schultz ch...@christopherschultz.net: Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404 Not Found. Tomcat 6.0.29 and Tomcat 7.0.6 both behave this way. With no ROOT

Re: [OT] 400 error when a request does not map to a context

2011-01-26 Thread Konstantin Kolinko
2011/1/26 André Warnier a...@ice-sa.com: By the way, having had my curiosity triggered by what Chris was reporting, I scanned the Servlet Spec 3.0 for mentions of the ROOT (default) context, and could not really find much of relevance. Namely, it does not mention that one is required.  Is it ?

java-process blocks cpu core to 100%

2011-01-26 Thread Christoph Balthaus
Hello! We are running tomcat6 - Apache Servlet/JSP Engine, RI for Servlet 2.5/JSP 2.1 API 6.0.18-20.3.1 on Suse Linux Enterprise 11 JVM is java-1_6_0-ibm - Java(TM) 6 Runtime Environment 1.6.0_sr7.0-1.6.21 cpu is a quad core cpu with ht (xeon 5500) The problem is that directly after startup,

Re: Tomcat Adapter for Eclipse 3.5 Galileo?

2011-01-26 Thread VincentBlouin
Hi, I had the same problem, then in Eclipse I went to help install new software choose eclipse web tool platform repository - http://download.eclipse.org/eclipse/updates/3.5 from the dropdown menu then I checked Project Provided Components and installed it. After that I saw the tomcat servers

Cannot get manager/html access

2011-01-26 Thread Dave Carlson
I am using tomcat 6.0.30 and cannot get the authentication correct using tomcat-users.xml. Here is my tomcat-users: role rolename=tomcat/ role rolename=role1/ role rolename=manager-gui/ role rolename=manager/ user username=tomcat password=tomcat roles=tomcat,manager/ user

Tomcat Form Authentication that requires no password for third party SSO

2011-01-26 Thread beau.hutcheson
Hello: I am trying to integrate my application with an SSO partner application. After successfully logging into the partner app, I will be redirected and only provided a username to log into my tomcat Form Authentication app. I am using a DataSourceRealm to check for both Users and User Roles.

Re: Cannot get manager/html access

2011-01-26 Thread André Warnier
Hi. Just make absolutely sure that you have not, for instance, forgotten to remove the XML comment signs around the section below. Dave Carlson wrote: I am using tomcat 6.0.30 and cannot get the authentication correct using tomcat-users.xml. Here is my tomcat-users: !-- ? role

Re: Cannot get manager/html access

2011-01-26 Thread Dave Carlson
Thanks. I can't believe that I missed those On Wed, Jan 26, 2011 at 12:26 PM, André Warnier wrote: Hi. Just make absolutely sure that you have not, for instance, forgotten to remove the XML comment signs around the section below. Dave Carlson wrote: I am using tomcat 6.0.30 and cannot

Re: Cannot get manager/html access

2011-01-26 Thread André Warnier
Dave Carlson wrote: Thanks. I can't believe that I missed those Don't feel too bad. The average is about two per month here. You may be the first this year though. I rather like these comment signs. They provide me with easy kudos, to be able to help on this list at my own level of

Tomcat reuses threads and connection instances

2011-01-26 Thread Blake McBride
Greetings, I have a web service app that runs under tomcat. I just noticed the following unexpected behavior. The first time a particular web service is called tomcat starts a thread to run it on and creates an instance of the class that implements the web service. All fine. However, if after

java.net.URLEncoder.encode quotes wrong under (my) Tomcat environment

2011-01-26 Thread Joachim Seibert
Hi there, actually I have the problem, that the static encode method from java.net.URLEncoder encodes under the command line different as the tomcat environment on my machine (my workmate with exactly the same setup - see below - doesn't have this problem). The char @ is not quoted to %40

Did the performance metrics from the Oct meetup ever get posted to the wiki?

2011-01-26 Thread Jason Pringle
I can't find a link, and don't seem to find an email posting in the archives... We're looking exactly at this topic and any additional info would be great to have. Also, I know the tests were driven on 6.0.20; would there be an expectation of a significant delta on 7.0.x? We are planning to

Re: 400 error when a request does not map to a context

2011-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 1/26/2011 10:55 AM, Konstantin Kolinko wrote: 2011/1/25 Christopher Schultz ch...@christopherschultz.net: Should I expect that a request that doesn't map to a running context should return a 400 error? I would have expected a 404

Re: java-process blocks cpu core to 100%

2011-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 1/26/2011 12:05 PM, Christoph Balthaus wrote: Connected by eclipse I discovered the following: when I suspend thread by thread, the load dropped when I suspend * Daemon Thread [Attach handler] (Suspended).* ... [Remote Java

Re: Tomcat Form Authentication that requires no password for third party SSO

2011-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Beau, On 1/26/2011 1:10 PM, beau.hutche...@thomsonreuters.com wrote: I am trying to integrate my application with an SSO partner application. What Tomcat version? I ask because Tomcat 7 includes the Servlet 3.0 programmatic login API. After

Re: Tomcat reuses threads and connection instances

2011-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Blake, On 1/26/2011 4:05 PM, Blake McBride wrote: The first time a particular web service is called tomcat starts a thread to run it on and creates an instance of the class that implements the web service. All fine. However, if after the first

Re: java.net.URLEncoder.encode quotes wrong under (my) Tomcat environment

2011-01-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jo, On 1/26/2011 5:25 PM, Joachim Seibert wrote: actually I have the problem, that the static encode method from java.net.URLEncoder encodes under the command line different as the tomcat environment on my machine (my workmate with exactly the

ServletWebRequest.getServletPath() returns strange values on uris with german umlauts

2011-01-26 Thread asbachb
Hello, Environment: Tomcat 7.0.6 - Java 1.6_22 - Ubuntu 10.10 I got some problems with a wicket application which decodes parameters into path of the uri. When calling getServletPath() on that uris, containig umlauts the method will return some wrong encoded path. In my sample application the

Re: ServletWebRequest.getServletPath() returns strange values on uris with german umlauts

2011-01-26 Thread Konstantin Kolinko
2011/1/27 asbachb mz8lenvp05gy...@gmail.com: Like mentioned in the CharacterEncoding FAQs I already setup URIEncoding and useBodyEncodingForURI attribute in my server.xml configuration. URIEncoding and useBodyEncodingForURI are alternatives. Do not use both at the same time. My understanding

Re: mod_jk load balancing problem

2011-01-26 Thread Shoaib M. Chaudhary
The problem is following, When I use mod_jk with the following code for one worker it works fine but when I try to connect with two tomcat servers that are not on the same machine on which I have apache. Interestingly when I use one worker as localhost it works fine again. There is no error but

Re: mod_jk load balancing problem

2011-01-26 Thread Shoaib M. Chaudhary
Hello, The problem I detected is that client has to send three requests for home page as it contains frames. How can I force mod_jk to send all requests to one server. I come to this result while I shutdown one server called tomcat3 and restart a tomcat on that machine (tomcat3) with no

Problems with connections pool in Tomcat 6.0.18 6.0.20 + MySQL 5.1 + mysql-connector 5.1.x

2011-01-26 Thread Ramon Garcia Alarcon
Hi all, I have a problem with: Tomcat 6.0.x + MySQL 5.1 + mysql-connector.5.1.x And I test with Ubuntu 10.04, Windows 2003 and Mac OSX 10.6.6 I configured the connection in tomcat like this: Resource driverClassName=com.mysql.jdbc.Driver logAbandoned=false maxActive=35 maxIdle=2