RE: Tomcat's container architecture - Authenticator

2007-11-28 Thread Bárbara Vieira
Hi Carlo! Thank you for being help me J My question is about invoke method in AuthenticatorBase.java. If you look at invoke code you can see that: - the method first action is check if there is any Principal in the Request - if there isn’t a Principal it tests if there is

Re: clustering iis with JK

2007-11-28 Thread Rainer Jung
Dmitry Beransky wrote: Hi, Is it possible to implement the following setup with JK/isapi_redirect? 1. Two clustered IIS instances 2. Two load-balanced Tomcat instances 3. Each IIS uses JK to forward requests to two load-balanced Tomcat instances I know how to do each individual item in

Including in a JSP the result of a servlet that forwards

2007-11-28 Thread Antonio Petrelli
Hi all, If I make a jsp:include (in fact I am using Tiles, but the result is the same) of a result of a servlet which, in turn, makes an ApplicationDispatcher.forward, I have a strange effect: - only the page forwarded by the servlet will be visible to the user; - the rest of the JSP page is

Tomcat and ClassLoaders

2007-11-28 Thread Auke Noppe
Hi, I have an application that uses the embedded version of tomcat. In my classpath I have some jars that are the same as the webapp I deploy in tomcat. Now the problem is, that the webapp uses the jars from the classpath of the ‘root’ application and not the jars that the webapp has in his

RE: multithreaded with taglibs

2007-11-28 Thread Yair Ben-Meir
Sorry chris, I didn't understand u then... it is a good solution (great minds think alike!). This solution is good but we must write to the out of the jsp before the thread is running (we bypass this because the thread will write to a pre-decided file name). is there another way to do it, without

Tomcat 5.0.* Docuemntation available?

2007-11-28 Thread Stefan Rainer
hello, i am looking for a detailed manual on the configuration parameters of tomcat 5.0. I can only find one for 5.5 does anyone has a link/document for me? // Stefan - To start a new topic, e-mail:

RE: Tomcat 5.0.* Docuemntation available?

2007-11-28 Thread Caldarale, Charles R
From: Stefan Rainer [mailto:[EMAIL PROTECTED] Subject: Tomcat 5.0.* Docuemntation available? i am looking for a detailed manual on the configuration parameters of tomcat 5.0. I can only find one for 5.5 The docs are included in every Tomcat download, and installed as a webapp. Older

Re: Including in a JSP the result of a servlet that forwards

2007-11-28 Thread Martin Gainty
Hi Antonio- https://java.sun.com/products/servlet/2.1/api/javax.servlet.RequestDispatche r.html#forward(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse ) where the most relevant part is This method may not be used if the calling servlet has already output any response to the client.

Re: Including in a JSP the result of a servlet that forwards

2007-11-28 Thread Antonio Petrelli
2007/11/28, Martin Gainty [EMAIL PROTECTED]: Hi Antonio- https://java.sun.com/products/servlet/2.1/api/javax.servlet.RequestDispatche r.html#forward(javax.servlet.ServletRequest,%20javax.servlet.ServletResponse ) where the most relevant part is This method may not be used if the calling

Re: Tomcat becomes non-response for ~30 seconds

2007-11-28 Thread Ronald Klop
Are you swapping during garbage collection? Ronald. On Tue Nov 27 19:58:24 CET 2007 Tomcat Users List users@tomcat.apache.org wrote: Folks: We're having an intermittent problem with Tomcat becoming non-responsive for a while (between 30 seconds and several minutes) and then recovering

Re: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-28 Thread Gregor Schneider
if [ -z $(netstat -lnp | grep 8080) ] then echo Tomcat running exit -1 else [ continue with startup-script ] fi do the same for port 8009 (AJP) however, the best way would be to first check if tomcat is running before starting it up remember: a fool with a tool is still a

OpenSSL + APR + Tomcat 5.5.2 Help

2007-11-28 Thread Daniel M Garland
Hi folks, Again I call on your expert assistance: I have a tomcat 5.5.2 server running on a Debian Etch linux box. Its configured to use APR 1.1.3 and I want to get SSL going. I've successfully managed this using JSSE but not OpenSSL. I installed openssl using apt, as well as the APR

Re: clustering iis with JK

2007-11-28 Thread Dmitry Beransky
Hi Rainer, It's the item #3 on your Simple Setup list that I'm basically asking about (I already have #1 set up and working, and parts of #2). Here's where my problem with #3 lies: Let's say we have two load-balanced (clustered) web/IIS servers: W1 and W2, each configured with sticky forwarding

Re: Cross-domain calls when third-party cookies are not allowed

2007-11-28 Thread J.Gustafsson
Hi, Tnx for your feedback. What I have understood, the P3P policy file is kind of dead since the lack of support from the browser implementers ( from www.w3c.org: The P3P Specification Working Group took this step as there was insufficient support from current Browser implementers for the

Re: ApacheTomcat Connector mod_jk, receiving 0711-244 ERROR when I do a make

2007-11-28 Thread Blumlein,Richard
Hi Rainer, You never know who your talking to and where they are when you get into a group. I was out sick yesterday, so I am just catching up. Could you provide (sorry, if you did already) precise information about your platform (I remember AIX, but which version)? Also: which version of Apache

Re: clustering iis with JK

2007-11-28 Thread Rainer Jung
Dmitry Beransky wrote: Hi Rainer, It's the item #3 on your Simple Setup list that I'm basically asking about (I already have #1 set up and working, and parts of #2). Here's where my problem with #3 lies: Let's say we have two load-balanced (clustered) web/IIS servers: W1 and W2, each

Re: Tomcat's container architecture - Authenticator

2007-11-28 Thread Carlo Politi
Only a question: what do you have to do with this auth? do you need to develope a new one or simply study it? ___ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it

Re: clustering iis with JK

2007-11-28 Thread Dmitry Beransky
Does that answer your question? Oh! I think it does. I was assuming that isapi_redirect maintained an internal map of sessions and tomcat nodes, but if the jvmRoute is in the session id, then it shouldn't matter which IIS/isapi is serving the request, it will still go to the correct instance of

RemoteAddrValve

2007-11-28 Thread Niki Diulgerov
Hello there, Using tomcat 5.5.25 + jdk1.5.0_13 By default /tomcat/conf/Catalina/localhost/manager.xml looks like ?xml version=1.0 encoding=UTF-8? Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false antiJARLocking=false !-- Link to the

Re: OpenSSL + APR + Tomcat 5.5.2 Help

2007-11-28 Thread Daniel M Garland
OK so I tried it with the attributes set and now I get java.lang.Exception: Error setting private key (error:0B080074:x509 certificate routines:X509_check_private_key:key values mismatch) Which I take to mean that my server key is not the same as the certificate key. Where did I go wrong?

Create New Data Source

2007-11-28 Thread Shekhar . Dhotre
Hello list , Can someone please tell me how do I test the connectivity from tomcat server to oracle database. I am good on Unix/databases but new to Tomcat. I have oracle instance named as : lawtst . lawtest running at cemcp62 . (system name) user name is - sdhotre -password is password .

Re: multithreaded with taglibs

2007-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yair, Yair Ben-Meir wrote: This solution is good but we must write to the out of the jsp before the thread is running (we bypass this because the thread will write to a pre-decided file name). is there another way to do it, without writing to the

Re: Tomcat becomes non-response for ~30 seconds

2007-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jared, jnedzel wrote: We're having an intermittent problem with Tomcat becoming non-responsive for a while (between 30 seconds and several minutes) and then recovering without any intervention. There are no error messages in the Tomcat logs.

Re: Tomcat's container architecture - Authenticator

2007-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barbara, Bárbara Vieira wrote: My question is: why we are putting the Principal in the Request? So that request.getUserPrincipal() will return a value. Why we can’t just authenticate the user if there is a principal in internal Session?!

RE: RemoteAddrValve

2007-11-28 Thread Propes, Barry L
probably that path attribute is wrong, correct? Not needed on 5x? -Original Message- From: Niki Diulgerov [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 10:57 AM To: Tomcat Users List Subject: RemoteAddrValve Hello there, Using tomcat 5.5.25 + jdk1.5.0_13 By default

RE: Create New Data Source

2007-11-28 Thread Propes, Barry L
here ya go, Shekhar...see my XML config for JNDI. Keep in mind, I'm on an older version oF TC, so you can probably align and list your param attributes all in one, or more conveniently than I was able to. Resource name=jdbc/myoracle auth=Container type=javax.sql.DataSource/ ResourceParams

Re: RemoteAddrValve

2007-11-28 Thread Niki Diulgerov
Probably wrong? but I saw almost the same example here http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html so cant understand what's wrong ...I'm using completely fresh installation of 5.5.25 whthout any changes except these mentioned here Best regards, Nikolay Diulgerov Network

Re: Create New Data Source

2007-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shekhar, You might want to start here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations This page might be helpful for more Oracle questions:

Re: RemoteAddrValve

2007-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Barry, Propes, Barry L wrote: probably that path attribute is wrong, correct? Not needed on 5x? Yes, it's necessary, since the OP isn't dropping a WAR anywhere, but installing a context.xml file. - -chris -BEGIN PGP SIGNATURE- Version:

RE: RemoteAddrValve

2007-11-28 Thread Propes, Barry L
hmmm...ok...what is the one that is forgone in that version? The docBase? -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 11:36 AM To: Tomcat Users List Subject: Re: RemoteAddrValve -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

RE: RemoteAddrValve

2007-11-28 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: RemoteAddrValve Propes, Barry L wrote: probably that path attribute is wrong, correct? Not needed on 5x? Yes, it's necessary, since the OP isn't dropping a WAR anywhere, but installing a context.xml file. Nope, the path

Re: RemoteAddrValve

2007-11-28 Thread Niki Diulgerov
OK with this version of manager.xml it works perfect: The difference is in the way IP is written and in the fact that allow starts on new row ?xml version=1.0 encoding=UTF-8? Context docBase=${catalina.home}/server/webapps/manager privileged=true antiResourceLocking=false

RE: Tomcat's container architecture - Authenticator

2007-11-28 Thread Bárbara Vieira
Hi Carlo!! In fact I have to develop a new one and at the same time study and analyze Authenticator package code. Why are you asking? -Original Message- From: Carlo Politi [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 28 de Novembro de 2007 16:52 To: Tomcat Users List Subject: Re:

Re: Tomcat hangs on writing JSP page to socket

2007-11-28 Thread Jim Cox
On Nov 28, 2007 1:50 PM, Adam Feuer [EMAIL PROTECTED] wrote: Folks, We're getting intermittent problems where one tomcat thread hangs for up to 10 minutes writing JSP pages to a socket. We think the socket is an HTTP TCP socket. The stack trace from a thread dump for the hung thread is below.

Tomcat hangs on writing JSP page to socket

2007-11-28 Thread Adam Feuer
Folks, We're getting intermittent problems where one tomcat thread hangs for up to 10 minutes writing JSP pages to a socket. We think the socket is an HTTP TCP socket. The stack trace from a thread dump for the hung thread is below. This happens multiple times per day at seemingly random

RE: RemoteAddrValve

2007-11-28 Thread Caldarale, Charles R
From: Niki Diulgerov [mailto:[EMAIL PROTECTED] Subject: Re: RemoteAddrValve if I remove the Valve directive there is no error... Valve classname=org.apache.catalina.valves.RemoteAddrValve allow=192.9.202.231/ It's className, not classname. Case matters. - Chuck THIS COMMUNICATION

Re: Tomcat becomes non-response for ~30 seconds

2007-11-28 Thread Mark Deneen
If the CPU is maxed out, the thread dump will provide lightweight process numbers. Using a tool like prstat -L on Solaris, you can figure out which lightweight process (thread) it is, and at least confirm that it is the GC thread. the output from prstat is indexed at 1, but the stack dump is

RE: RemoteAddrValve

2007-11-28 Thread Propes, Barry L
oh so I did recall correctly! ; ) Thought I'd seen Chuck punch that through a time or two. : ) -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 11:48 AM To: Tomcat Users List Subject: RE: RemoteAddrValve From: Christopher

RE: Tomcat's container architecture - Authenticator

2007-11-28 Thread Bárbara Vieira
Hi Chris!! A request may be checked multiple times for authentication (think server-side forwards, etc.) so it's a small optimization to cache the principal in the request -- and it satisfies the requirement that request.getUserPrincipal() actually works, so it makes sense. This is not a answer

Re: Tomcat hangs on writing JSP page to socket

2007-11-28 Thread Adam Feuer
On Nov 28, 2007 11:03 AM, Jim Cox [EMAIL PROTECTED] wrote: FWIW, I've noticed similar behavior, but in my case it is easy to reproduce: 1. use a browser to request a long-running and/or large-page-producing web page ; 2. abort the page load before it is done. At that point I see the HTTP

Re: Create New Data Source

2007-11-28 Thread Shekhar . Dhotre
Christopher and Propes thanks a lot !! Christopher Schultz [EMAIL PROTECTED] 11/28/2007 12:33 PM Please respond to Tomcat Users List users@tomcat.apache.org To Tomcat Users List users@tomcat.apache.org cc Subject Re: Create New Data Source -BEGIN PGP SIGNED MESSAGE- Hash:

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-11-28 Thread Delian Krustev
Hi Mark, On Tue, 27 Nov 2007 18:21:20 + Mark Thomas wrote: Can you run the faulty instance with: -Djava.security.debug=access,failure and report the failure message. I thought on this, but the exception looks pretty self explanatory. I'll try it anyway, in case anything new

RE: Create New Data Source

2007-11-28 Thread Propes, Barry L
you bet. Barry is fine,thanks! : ) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 2:43 PM To: Tomcat Users List Cc: Tomcat Users List Subject: Re: Create New Data Source Christopher and Propes thanks a lot !! Christopher

Re: RemoteAddrValve

2007-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: RemoteAddrValve Propes, Barry L wrote: probably that path attribute is wrong, correct? Not needed on 5x? Yes, it's necessary, since the OP

RE: RemoteAddrValve

2007-11-28 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: RemoteAddrValve I'm an idiot. End of the month - time to reboot :-) - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you

Re: Tomcat's container architecture - Authenticator

2007-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bárbara, Bárbara Vieira wrote: But if we have the Principal in cache, why we have to call the authenticator method(FormAuthenticator)? That call doesn't provide any additional security, can you understand now? That's a good question. Given the

RE: RemoteAddrValve

2007-11-28 Thread Propes, Barry L
no you're not dude! You've helped me a lot! I've told you so before! -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 28, 2007 4:11 PM To: Tomcat Users List Subject: Re: RemoteAddrValve -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck,

RE: How to make Tomcat shutdown itself if the address it is trying to bind is already in use.

2007-11-28 Thread Shaji Thomas
Thank you Gregor for the suggestion. I was trying to see if there is a way to do this from within my application code which is running under Tomcat. The issue is that I don't have direct control over the scripts that start Tomcat. Thanks Shaji -Original Message- From: Gregor Schneider

Tomcat 6.0 with Apache 2.2 front-end

2007-11-28 Thread loknor
Hi, Can anyone provide links to a few tutorials on running Tomcat 6.0 with Apache on the front-end? I know there are 2 recommended techniques, mod_jk and mod_proxy. I'd like to use mod_proxy because it appears to be easier and I do not require a great deal of flexibility. I'm running on

Re: Tomcat 6.0 with Apache 2.2 front-end

2007-11-28 Thread Filip Hanik - Dev Lists
three options mod_proxy_http mod_jk mod_proxy_ajp Filip loknor wrote: Hi, Can anyone provide links to a few tutorials on running Tomcat 6.0 with Apache on the front-end? I know there are 2 recommended techniques, mod_jk and mod_proxy. I'd like to use mod_proxy because it appears to be

Re: Tomcat 6.0 with Apache 2.2 front-end

2007-11-28 Thread loknor
Filip Hanik - Dev Lists wrote: three options mod_proxy_http mod_jk mod_proxy_ajp Filip Yep just found the other option, and a site that got me up to speed very quickly. I can now communicate between Apache and Tomcat.

Session not being replicated - DeltaManager

2007-11-28 Thread mfs
Guys, I have setup a cluster where i have two tomcat instances (one on windows and the other on linux), the two instances are able to detect each other and form a cluster. On top of them i have apache/mod_jk as a load-balancer which has been set NOT to use sticky-sessions, since i want to test

OT - Tomcat and Stanford NLP POS Tagger

2007-11-28 Thread vnug
Hi: We are trying to implement servlet setup with Tomcat 5.0.28 and JDK 1.5.x using POS (Parts of Speech) Tagger. We can not get it to work. Unfortunately, there are no error messages in the log files for us to debug. So, I was wondering - anybody in this newsgroup was successful in getting

Re: Session not being replicated - DeltaManager

2007-11-28 Thread mfs
Mistakenly put the wrong worker.properties in my last post where the worker.lbworker.sticky_session=false was commented which is not the case Farhan. mfs wrote: Guys, I have setup a cluster where i have two tomcat instances (one on windows and the other on linux), the two

Re: Tomcat's container architecture - Authenticator

2007-11-28 Thread Bill Barker
Christopher Schultz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bárbara, Bárbara Vieira wrote: But if we have the Principal in cache, why we have to call the authenticator method(FormAuthenticator)? That call doesn't provide any

Re: Tomcat 6.0 with Apache 2.2 front-end

2007-11-28 Thread Filip Hanik - Dev Lists
using mod_proxy_http, you want to enable ProxyPreserveHost On Filip loknor wrote: Filip Hanik - Dev Lists wrote: three options mod_proxy_http mod_jk mod_proxy_ajp Filip Yep just found the other option, and a site that got me up to speed very quickly. I can now communicate

Re: AccessControlException in Coyote Http11Processor (Tomcat 6.0.14). Bug in Coyote ?

2007-11-28 Thread Mark Thomas
Delian Krustev wrote: Hi Mark, On Tue, 27 Nov 2007 18:21:20 + Mark Thomas wrote: Can you run the faulty instance with: -Djava.security.debug=access,failure and report the failure message. I thought on this, but the exception looks pretty self explanatory. I'll try it anyway,