Re: RemoteAddrValve and RemoteHostValve

2009-02-27 Thread Robert Koberg
On Feb 27, 2009, at 9:28 PM, Zak Mc Kracken wrote: Hi all, I'd like to filter incoming requests with this criterion: if it's www.somewhere.com -> OK else if it's 1.2.3.4 -> OK else -> KO Is it possible to do that by combining RemoteHostValve and RemoteAddrValve? How? I simply tried to write

RemoteAddrValve and RemoteHostValve

2009-02-27 Thread Zak Mc Kracken
Hi all, I'd like to filter incoming requests with this criterion: if it's www.somewhere.com -> OK else if it's 1.2.3.4 -> OK else -> KO Is it possible to do that by combining RemoteHostValve and RemoteAddrValve? How? I simply tried to write them one after another, but all is blocked, it seems t

RE: Tomcat 6 catalina.sh does not remove tomcat.pid

2009-02-27 Thread Caldarale, Charles R
> From: Marilyn Daum [mailto:md...@fireapps.com] > Subject: Tomcat 6 catalina.sh does not remove tomcat.pid > > I compared the catalina.sh scripts, and noticed that the > Tomcat 6 version does contain the > "rm -f $CATALINA_BASE/tomcat.pid" command. Did you leave the word "not" out of the above se

Re: Request not forwarded to login page with security-constraint after session time-out

2009-02-27 Thread Marcel Stör
On 27.02.2009, at 17:38, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/26/2009 5:39 PM, Caldarale, Charles R wrote: From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Request not forwarded to login page with security-constraint after session time-

Tomcat 6 catalina.sh does not remove tomcat.pid

2009-02-27 Thread Marilyn Daum
We just upgraded from Tomcat 5.5.23 to Tomcat 6.0.18. After the upgrade, our shutdown script hangs, waiting for removal of the pid file. I compared the catalina.sh scripts, and noticed that the Tomcat 6 version does contain the "rm -f $CATALINA_BASE/tomcat.pid" command. A quick search of the re

Re: classloaders ?

2009-02-27 Thread André Warnier
Caldarale, Charles R wrote: The custom classloader is specified via a element inside your webapp's element: http://tomcat.apache.org/tomcat-6.0-doc/config/loader.html That does shed light on the matter. Clever, these Tomcat guys. May I respectfully suggest that a link to the above page wo

Servlet API loggin in tomcat 5.5 vs. tomcat 6

2009-02-27 Thread Guillaume Cauchon
I'm actually working on a distributed and one of the component is a webapp. The development for the webapp started on tomcat 5.5, but for technical reason we decided to upgrade to tomcat 6 recently... However we realized the logging configuration doesn't seams to be working the same way! The sa

Re: Slightly OT: ApacheCon - Mark Thomas

2009-02-27 Thread Mark Thomas
Pieter Temmerman wrote: > Hi list, > > Actually this question is more a question for Mark Thomas than for the > list, but please feel free to respond with your input. > > I'm trying to convince my bosses to let me attend to the upcoming > ApacheCon. I'm mainly interested in the Tomcat topics as t

RE: classloaders ?

2009-02-27 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: classloaders ? > > I would (I guess) first attempt to locate the basic > webapp classloader class source of what Tomcat uses > as a generic webapp classloader; then I would either > extend it, or make my own parallel version and compile

Re: classloaders ?

2009-02-27 Thread David Smith
André Warnier wrote: > Ken Bowen wrote: >> I think http://en.wikipedia.org/wiki/Java_Classloader was intended >> -- a reasonable starting point, with further references. >> > Thanks all. That was a good starting point. > Still not wanting to delve too deep into internals, but having read this: >

Re: nio connector configuration

2009-02-27 Thread otismo
Thanks for the response, Filip. Hopefully this is more helpful... I put a war at http://www.nomad.org/test.war containing my web app, the source, and my jmeter test plan. My question: why are comet timeouts getting generated substantially behind the timeout setting? Is it because I have incorr

Re: classloaders ?

2009-02-27 Thread André Warnier
Ken Bowen wrote: I think http://en.wikipedia.org/wiki/Java_Classloader was intended -- a reasonable starting point, with further references. Thanks all. That was a good starting point. Still not wanting to delve too deep into internals, but having read this: http://java.sun.com/javase/6/doc

RE: classloaders ?

2009-02-27 Thread Caldarale, Charles R
> From: André Warnier [mailto:a...@ice-sa.com] > Subject: Re: classloaders ? > > Looks like I'm not the only one to be confused though, > classloaders often are too.. JAR Hell, my my. Not quite as bad as DLL hell, but similar in practice. Don't forget Tomcat's own classloader doc: http://tomcat.

RE: classloaders ?

2009-02-27 Thread Anthony J. Biacco
it's a Java/JVM based concept, but understand that Tomcat itself is running in the JVM, so classloading can be relative to tomcat, or whatever you have running in the JVM. For example, the concept of servlets in tomcat are actually the JVM classloader loading a GenericServlet or HttpServlet clas

Re: classloaders ?

2009-02-27 Thread André Warnier
Youssef Mohammed wrote: http://en.wikipedia.org/wiki/Java_Classloadercheck the references over there ... Thanks. That seems a good one. Looks like I'm not the only one to be confused though, classloaders often are too.. JAR Hell, my my. ;-) -

Re: classloaders ?

2009-02-27 Thread Ken Bowen
I think http://en.wikipedia.org/wiki/Java_Classloader was intended -- a reasonable starting point, with further references. On Feb 27, 2009, at 1:06 PM, Youssef Mohammed wrote: http://en.wikipedia.org/wiki/Java_Classloadercheck the references over there ... Regards, Youssef On Fri, Fe

Re: making compression work using GzipInterceptor in tomcat cluster

2009-02-27 Thread Filip Hanik - Dev Lists
hi Amit, I will take a look Filip Amit Chandel wrote: I have been able to set up a working tomcat cluster with 2 physically separate tomcat instances (IP: 172.17.1.102 and 172.17.1.103) with tomcat version 6.0.10, using following config (showing just one here, the other one is similar instead t

Re: classloaders ?

2009-02-27 Thread Youssef Mohammed
http://en.wikipedia.org/wiki/Java_Classloadercheck the references over there ... Regards, Youssef On Fri, Feb 27, 2009 at 7:56 PM, André Warnier wrote: > Hi. > > I am a superficial browser on this list and tend not to delve to deep into > Java intricacies. But when a term consistently shows u

classloaders ?

2009-02-27 Thread André Warnier
Hi. I am a superficial browser on this list and tend not to delve to deep into Java intricacies. But when a term consistently shows up which I do not understand, I try to at least learn enough about it to be able to reassure my customers. Classloader is now such a term. I gather it is some

RE: /WEB-INF/lib

2009-02-27 Thread Caldarale, Charles R
> From: Mudit Garg [mailto:maxmu...@gmail.com] > Subject: Re: /WEB-INF/lib > > You could set an explicit classpath in tomcat startup script like: Don't ever, ever, ever set CLASSPATH for Tomcat; you will confound the classloader design and end up with all sorts of ClassNotFoundExceptions. It w

RE: Request not forwarded to login page with security-constraintafter session time-out

2009-02-27 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] > Subject: Re: Request not forwarded to login page with > security-constraintafter session time-out > > I don't find this ambiguous at all You have to carefully examine the sections being referred to; in each area of the spec, the

Re: /WEB-INF/lib

2009-02-27 Thread Mudit Garg
Hi, You could set an explicit classpath in tomcat startup script like: for el in $db_drivers_home/*.jar; do CLASSPATH=$el:$CLASSPATH done export CLASSPATH These jars would then be in classpath for all applications though Regards Mudit On Fri, Feb 27, 2009 at

RE: Tomcat 404 Error Redirects

2009-02-27 Thread Propes, Barry L
I am using TC 4.1.31 and my error page attribute is set as follows: 404 /chngctrl/404error.jsp Rather than designated out in the root dir, I specified a dir. Can you try that and see if it works? -Original Message- From: ezyeric [mailto:eric@state.or.us] Sent:

making compression work using GzipInterceptor in tomcat cluster

2009-02-27 Thread Amit Chandel
I have been able to set up a working tomcat cluster with 2 physically separate tomcat instances (IP: 172.17.1.102 and 172.17.1.103) with tomcat version 6.0.10, using following config (showing just one here, the other one is similar instead the jvmRoute and Receiver address attribute):

Re: Tomcat 404 Error Redirects

2009-02-27 Thread ezyeric
Try checking out this post http://www.velocityreviews.com/forums/t142707-tomcat-404-custom-error.html Prakash Nathan1 wrote: > > Hello > > Here is what I have setup to redirect all the 404 request to 404Error.html > > I have made the below changes to the Tomcat's web.xml file > (/opt/app/tomc

Re: Request not forwarded to login page with security-constraint after session time-out

2009-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/26/2009 7:22 PM, Caldarale, Charles R wrote: >> From: Mark Thomas [mailto:ma...@apache.org] >> Subject: Re: Request not forwarded to login page with >> security-constraint after session time-out > >>> What the spec is not explicit about i

Re: Request not forwarded to login page with security-constraint after session time-out

2009-02-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 2/26/2009 5:39 PM, Caldarale, Charles R wrote: >> From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Request >> not forwarded to login page with security-constraint after session >> time-out >> >> The spec is clearer than that. The "*

Re: Java applet NTLM authentication

2009-02-27 Thread André Warnier
André Warnier wrote: [...] As complementary information to my own question, I have already read the document located here : http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/NTLM_SUPPORT.txt However, that does not seem to fit the bill, in the sense that the method outlined there

/WEB-INF/lib

2009-02-27 Thread vlad vesa
Hello everyone, it is possible to set something in tomcat or in my web application to load libraries located in a custom folder within webapplication/WEB-INF/lib/customFolder/*.jar ? The reason of this is that the application has plugins and it would be preferable to organize the libs... if

Java applet NTLM authentication

2009-02-27 Thread André Warnier
Hi. This is not a Tomcat question. But it involves Java, HTTP and HTTP NTLM authentication, so I figure that the rather unique combination of expertise(s) of the contributors to this list may at least result in some good clues for me as to which direction to follow to resolve the problem I'm

lost headers in reply from server

2009-02-27 Thread Ivars Strazdiņš
Hello all, I use apache reverse proxy connected to two tomcat servers via ajp protocol and mod_proxy_balancer . All connections to apache are ssl only. In a very brief diagram: [client] <-- ssl --> [apache reverse proxy] <-- (balancer, ajp protocol) --> [tomcat1 or tomcat2] Apache is 2.2.1

Slightly OT: ApacheCon - Mark Thomas

2009-02-27 Thread Pieter Temmerman
Hi list, Actually this question is more a question for Mark Thomas than for the list, but please feel free to respond with your input. I'm trying to convince my bosses to let me attend to the upcoming ApacheCon. I'm mainly interested in the Tomcat topics as this is what I touch regularly in my wo

Re: "remember me" authentication?

2009-02-27 Thread Pid
Charl Gerber wrote: > Hi everyone, > > Does Tomcat provide default support in some way to implement a 'remember me' > feature for form based authentication? This should not be dependent on a > user's browser remembering the username/password, but by a checkbox you can > check/clear on the logon