Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 45158 invoked by uid 500); 10 Jul 2001 15:04:27 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: tomcat-dev@jakarta.apache.org Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 45047 invoked from network); 10 Jul 2001 15:04:13 -0000 Message-ID: <5F935CCBFB73D511BA2000B0D079E11E03B4BD@cyberexch01.internal.evincible.com> From: Kedar Hirve To: "'tomcat-dev@jakarta.apache.org'" Subject: RE: My small, simple problem continued... (null container for my valve) Date: Tue, 10 Jul 2001 10:59:49 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2448.0) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N All right, I think I figured it out, and it seems a little strange. I was checking to see what the container for my valve was, in the _constructor_...the constructor is getting called before any of the heirarchy tree is built, it seems. Does Catalina load up components and run constructors in-order, rather than pre-order? One odd question, though...when IS the invoke method of a valve called? -KSH -----Original Message----- From: Remy Maucherat [mailto:remm@apache.org] Sent: Monday, July 09, 2001 5:57 PM To: tomcat-dev@jakarta.apache.org Subject: Re: My small, simple problem continued... (null container for my valve) > Oh, WOW. It did work, and I didn't even have to modify Catalina's startup > classpath. I had tried putting the class under common\lib and server\lib, > but I didn't know that common\classes would work. But now I've got another > problem... In the lib folders, you can only put jars. Un-jarred classes should be in the classes folders. That's mentioned in the CL docs. The best place to put your valve here is in server/classes/ > Again, I have this barebones valve class I wrote, and I've gotten it to load > up without exception in Catalina. Now, oddly enough, I find that my valve > has a null container, even though its nested in a context in my server.xml: > > debug="0" > docBase="/" reloadable="true"> > > directory="/logs/kedlog" prefix="valvetest" timestamp="true" /> > > > > > Is there some initialization I need to do, or am I forgetting some tags in > my server.xml? Does your valve extend ValveBase or implement Contained ? Remy