RE: deployed same TOMCAT 6.0.20 on Windows / Linux

2009-12-10 Thread Karthik Nanjangude
Hi Your previous posts indicated that you were doing some kind of test Since Most of the Development happens on the WINDOWS 2000 machine, Delay in dev lifecycles results in time lag for Production /Test cases and Deployment For a Dev company of 100 People Tomcat request / Response may be

About the http requests cache of Tomcat 5.5.26

2009-12-10 Thread Peter Chen
Hi, I first start the DB Mysql 5.0, then start Tomcat 5.5.26. The Tomcat can connect to the DB correctly. Then I start LoadRunner to send lots of HTTP request. During the period, I killed the process of MYSQL, so the tomcat can't connect to DB. And threads of processing HTTP requests

RE: db jars in common/lib and shared/lib

2009-12-10 Thread Mohammad, Hammad Kasim Bekur
Yes, finally it worked, Thanks for all who supported this. thanks Kasim -Original Message- From: Hadole, Nishant IN BOM SISL [mailto:nishant.had...@siemens.com] Sent: 10 December 2009 13:25 To: 'Tomcat Users List'; Mohammad, Hammad Kasim Bekur Subject: RE: db jars in common/lib and

Re: Contexts and Path and Authentication

2009-12-10 Thread Pid
On 09/12/2009 21:07, Anthony Jay wrote: Hi All, I am having tremendous difficulty configuring contexts on tomcat. I've had to split my perfectly working application into two applications as the jsp now requires Form based authentication and the XML components require Http Basic

Re: [OT] deployed same TOMCAT 6.0.20 on Windows / Linux

2009-12-10 Thread Pid
On 09/12/2009 19:26, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 12/9/2009 1:22 PM, Pid wrote: On 09/12/2009 18:01, Christopher Schultz wrote: Pid, On 12/9/2009 9:15 AM, Pid wrote: [r...@teleglb bin]# uname -a Linux teleglb.xius.ltd 2.6.9-42.ELsmp #1 SMP

Re: About the http requests cache of Tomcat 5.5.26

2009-12-10 Thread Pid
On 10/12/2009 08:31, Peter Chen wrote: Hi, I first start the DB Mysql 5.0, then start Tomcat 5.5.26. The Tomcat can connect to the DB correctly. Then I start LoadRunner to send lots of HTTP request. During the period, I killed the process of MYSQL, so the tomcat can't connect to DB. And

Re: URL Redirect in Tomcat 6

2009-12-10 Thread Pid
On 10/12/2009 05:38, bharati wrote: Hi, Iam using Tomcat 6. In my applicaion, when Users entered any url like 'www.google.com' then it will check for the status of the User. If he is Inactive, then it will send a http packet to redirect to the particular URL: like

RE: URL Redirect in Tomcat 6

2009-12-10 Thread Hadole, Nishant IN BOM SISL
I guess she wants to display Customizable error responses, when application fails to respond (error code like 404 etc). Though, I agree, the question is not properly framed... With best regards, Nishant Hadole Siemens IT Solutions and Services SIS PRO SI-I Tel.: +91 22 2495 7816 Fax: +91 22

Re: Contexts and Path and Authentication

2009-12-10 Thread Anthony Jay
What's the problem with doing: /xml/-- basic auth /xml/secure/ -- basic auth TonyI cannot change URL as this is a working application and XML consumers must notice no difference. Then this bit of the app can be deployed as xml.war and the other as ROOT.war. Modifying your URL

Auto deploy feature in Embedded tomcat

2009-12-10 Thread Sanjay_Patil
Hi Guys, 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 always have to stop the running tomcat and run this command again whenever I make any changes to the

Re: Basic and Form Authentication

2009-12-10 Thread Anthony Jay
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 risk. I am beginning to think that I am attempting the impossible... After several weeks banging my head against a wall (I have a sore neck) I am giving this one more day

Re: Basic and Form Authentication

2009-12-10 Thread André Warnier
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 risk. I am beginning to think that I am attempting the impossible... After several weeks banging my head against a wall (I have a sore neck) I am

Context Chicken Egg Problem

2009-12-10 Thread Scot Hatt
Hello, I have spent a great deal of time scouring the bug list and trying to put together the right set of terms to find resolution for this but have been unsuccessful. I am dealing with a situation where webapp A is calling a servlet in webapp B during A's startup. I think I am dealing

Re: Context Chicken Egg Problem

2009-12-10 Thread Pid
On 10/12/2009 15:15, Scot Hatt wrote: Hello, I have spent a great deal of time scouring the bug list and trying to put together the right set of terms to find resolution for this but have been unsuccessful. I am dealing with a situation where webapp A is calling a servlet in webapp B during

Re: Context Chicken Egg Problem

2009-12-10 Thread Pid
On 10/12/2009 15:22, Pid wrote: On 10/12/2009 15:15, Scot Hatt wrote: Hello, I have spent a great deal of time scouring the bug list and trying to put together the right set of terms to find resolution for this but have been unsuccessful. I am dealing with a situation where webapp A is

RE: Context Chicken Egg Problem

2009-12-10 Thread Scot Hatt
Thank you for the response. I understand the limitation I am up against and it is not a production level issue that I have to get around. I have a local VM, as I stated, that solves the issue and as far as production, everything is separate. I was curious if there is a specific reference on

Re: Context Chicken Egg Problem

2009-12-10 Thread Ken Bowen
If I understand you correctly, your problem is that B needs to be initialized before A. (I don't understand what running locally as to do with it. ??) If that is correct, why can't you organize the initialization of A into a trivial initial segment, and a more substantive final segment, which

Re: Context Chicken Egg Problem

2009-12-10 Thread Ken Bowen
And it's not even Monday: Application Context Listener = ServletContextListener On Dec 10, 2009, at 10:46 AM, Ken Bowen wrote: If I understand you correctly, your problem is that B needs to be initialized before A. (I don't understand what running locally as to do with it. ??) If that is

RE: Context Chicken Egg Problem

2009-12-10 Thread Scot Hatt
That is valid point but in my case I have no control over A. So I was hoping this was a commonly seen issue but I guess not so I will expand. Context A contains a scheduling component that starts up a bunch of data retrieval components that go out and grab data with the first time being during

Re: Contexts and Path and Authentication

2009-12-10 Thread Hassan Schroeder
On Thu, Dec 10, 2009 at 1:19 AM, Anthony Jay anthony...@fastmail.fm wrote: TonyAs mentioned I'm having difficulty with UrlRewriteFilter and Tomcat 6/Tony Are you referring to cross-context forwarding? That works fine in Tomcat 6.0.20 using the Tuckey URLRewriteFilter. Or is this a different

Re: Context Chicken Egg Problem

2009-12-10 Thread Pid
On 10/12/2009 16:14, Scot Hatt wrote: So you are saying that a normally available Servlet interface that is implemented correctly and functions properly in production mode has something to do with Tomcat contexts being available during a peer context's deployment? That's a heck of an

Re: Context Chicken Egg Problem

2009-12-10 Thread Leon Rosenberg
You clearly need to teach A to handle unavailability of B. :-) regards Leon On Thu, Dec 10, 2009 at 5:14 PM, Scot Hatt sh...@radiantblue.com wrote: That is valid point but in my case I have no control over A. So I was hoping this was a commonly seen issue but I guess not so I will expand.

Re: Contexts and Path and Authentication

2009-12-10 Thread Hassan Schroeder
On Thu, Dec 10, 2009 at 8:24 AM, Hassan Schroeder hassan.schroe...@gmail.com wrote: ... cross-context forwarding ... works fine in Tomcat 6.0.20 using the Tuckey URLRewriteFilter. mmm. I think I have to retract that -- could have sworn I used this before, but it doesn't seem to work after all.

Re: Context Chicken Egg Problem

2009-12-10 Thread Ken Bowen
It still seems like a simple issue to me. Split your initialization of A into A1 and A2. A2 is no longer part of immediate initialization for A. Put your Scheduler launches, with their Data retrieve components, into A2. When A is started, it will only run A1. When B is started, at the end of

RE: Context Chicken Egg Problem

2009-12-10 Thread Scot Hatt
You are all correct. So, I wasn't necessarily looking for a code solution. The system works perfectly fine in the tiered production environment. I was, however, looking for a case as to why an HTTP request should not be made to another context in the same container during initialization. I

Re: Contexts and Path and Authentication

2009-12-10 Thread Pid
On 10/12/2009 17:56, Hassan Schroeder wrote: On Thu, Dec 10, 2009 at 8:24 AM, Hassan Schroeder hassan.schroe...@gmail.com wrote: ... cross-context forwarding ... works fine in Tomcat 6.0.20 using the Tuckey URLRewriteFilter. mmm. I think I have to retract that -- could have sworn I used

disableProxyCaching in Tomcat6?

2009-12-10 Thread Jim Garrison
In Tomcat5 there was a Context parameter disableProxyCaching to prevent proxies from caching content. This parameter doesn't seem to be present in Tomcat6. Is there an equivalent setting?

Re: Contexts and Path and Authentication

2009-12-10 Thread Anthony Jay
SOLVED Also the issue with Multiple Authentication Mechanisms My head is sore from banging it against a wall but I THINK that I have come up with a rather elegant solution. Well its a bit obvious in one way but I suppose I had to go through all the pain first. There was alot of pain. Just to

Re: disableProxyCaching in Tomcat6?

2009-12-10 Thread Mark Thomas
On 10/12/2009 20:05, Jim Garrison wrote: In Tomcat5 there was a Context parameter disableProxyCaching to prevent proxies from caching content. No there there isn't. That attribute is on the authenticator valves. This parameter doesn't seem to be present in Tomcat6. Is there an equivalent

Rerouting Traffic when number of connection increases

2009-12-10 Thread Arunkumar Janarthanan
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 expereincing HIGH traffic, please visit later How this can be achieved ? Is there anyway I can find the total number of connections in all 4

Re: Rerouting Traffic when number of connection increases

2009-12-10 Thread Pid
On 10/12/2009 21:44, 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 expereincing HIGH traffic, please visit later How this can be achieved ? Is there anyway

Tomcat 6 and IIS 7

2009-12-10 Thread Tuan Quan
Hi all, I have a problem getting both Tomcat 6 (running on port 80) and IIS 7 (also, on port 80 - But different IP address) The server has two IP addresses. and I'd like to dedicate each IP to Tomcat and IIS. I'm able to assign Tomcat to only ONE IP address. Then went to IIS 7 to bind it to the

Re: Tomcat 6 and IIS 7

2009-12-10 Thread Peter Crowther
Stop both, netstat -an - is there anything active on port 80? If so, find it and terminate with extreme prejudice ;-). Start Tomcat. netstat -an - what address(es) does it report Tomcat as being bound to? Are they what you expect? Stop Tomcat, start IIS7, netstat -an again - what address(es)

Re: Contexts and Path and Authentication

2009-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/9/2009 5:40 PM, André Warnier wrote: Ok, my try here. And by the same token - haha - I will give a chance to Chris to jump in. Sure, why not? - there is (preferably) one application. As Chuck is saying, it should not care /how/

Re: About the http requests cache of Tomcat 5.5.26

2009-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, On 12/10/2009 3:31 AM, Peter Chen wrote: I first start the DB Mysql 5.0, then start Tomcat 5.5.26. The Tomcat can connect to the DB correctly. Then I start LoadRunner to send lots of HTTP request. During the period, I killed the

Re: Context Chicken Egg Problem

2009-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scot, On 12/10/2009 10:32 AM, Scot Hatt wrote: I was curious if there is a specific reference on this problem that I can point to for my fellow devs that try to run everything on a single Tomcat instance. Not on a single Tomcat instance, but you

Re: URL Redirect in Tomcat 6

2009-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 12/10/2009 12:38 AM, bharati wrote: Iam using Tomcat 6. In my applicaion, when Users entered any url like 'www.google.com' then it will check for the status of the User. Where does a user enter such a URL? Into the web

Re: Context Chicken Egg Problem

2009-12-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Scot, On 12/10/2009 12:45 PM, Scot Hatt wrote: So either I am just not able to adequately describe what I am seeing, nobody has dealt with this issue, or I am completely missing the forest through the trees via the information you are providing.

Re: Contexts and Path and Authentication

2009-12-10 Thread André Warnier
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. url-pattern/*/url-pattern), one can choose to map it to different patterns and deploy it /twice/:

deadlock in database connection pooling?

2009-12-10 Thread Mitch Claborn
I'm seeing several occurrences of deadlocks in Tomcat like the following. Any clues? Definition of the Resource is below. Found one Java-level deadlock: = http-8081-56: waiting to lock monitor 0x08f50bd0 (object 0x560511f8, a

RE: Context Chicken Egg Problem

2009-12-10 Thread shatt
Thanks for your reply Chris. I mentioned in one of the replies that this is only a question regarding why an app in the initialization phase should or should not make an HTTP call, for whatever reason, to a yet to be initialized context in the same container. This is a case of I want to run the

RE: Context Chicken Egg Problem

2009-12-10 Thread Caldarale, Charles R
From: sh...@radiantblue.com [mailto:sh...@radiantblue.com] Subject: RE: Context Chicken Egg Problem just a curiosity as to what is happening under the Tomcat covers during this scenario. Tomcat initialization is single-thread, so if webapp A happens to get initialized before B, and the

RE: Context Chicken Egg Problem

2009-12-10 Thread shatt
Thank you Chuck. That is exactly what I was looking for. 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: deadlock in database connection pooling?

2009-12-10 Thread Caldarale, Charles R
From: Mitch Claborn [mailto:mi...@claborn.net] Subject: deadlock in database connection pooling? I'm seeing several occurrences of deadlocks in Tomcat like the following. Any clues? Definition of the Resource is below. Want to give us a hint about what Tomcat version you're using? Or is

Re: Context Chicken Egg Problem

2009-12-10 Thread David Fisher
You could launch each webapps initialization code in a separate thread. Here is what we do. Our load is very heavy and our servers are responsive after restart much sooner using this technique. UniverseLoader.java: package com.example; import javax.servlet.http.HttpServlet; import

Re: deadlock in database connection pooling?

2009-12-10 Thread Mitch Claborn
Sorry - I was going to put that in and just forgot. Old age strikes again. It is 6.0.20. Can I simply delete the tomcat version of dbcp (jar file) and drop in the 1.3 version from commons? Mitch Claborn 972-954-7341 mi...@claborn.net Caldarale, Charles R wrote: From: Mitch Claborn

RE: deadlock in database connection pooling?

2009-12-10 Thread Caldarale, Charles R
From: Mitch Claborn [mailto:mi...@claborn.net] Subject: Re: deadlock in database connection pooling? Can I simply delete the tomcat version of dbcp (jar file) and drop in the 1.3 version from commons? No, Tomcat renames the classes in the jar to avoid collisions with any webapps using

Can RequestDispatcher forward long-polled requests? (Comet)

2009-12-10 Thread moeshroom
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 figure out how to forward them to a JSP. I have

RE: About the http requests cache of Tomcat 5.5.26

2009-12-10 Thread Looijmans, Mike
I am watching the log of Tomcat. I found after 20 minutes, the Tomcat still create lots of new sessions. But the LoadRunner has stopped to send request for 15 minutes. Makes perfect sense to me. The servlet times out on the DB connection, which may take up to a minute or so,