Thanks for some clues. At least I can think the things I have been trying should have worked.
Maybe. I forgot to say I am running Tomcat 3.2 with my log4j 1.2 beta. Java is 1.3. The web-app is configured outside the tomcat directory tree. Had similar problems with 3.3. Boss says this project will be in 3.2. Combining my results into one, to save list wear, and because I am beginning to wonder if it isn't the same problem, that I've fumbled my setup somehow: ----- Original Message ----- Mark Derricutt wrote (about jsp): > I handled this a slighly different way, and just added a log4j JSP tag that > took a level, message, and category attributes: > > <jtime:log4j category="main" level="debug" message="w00p" /> Looks like a good place to start when I can get to tags. I can't even read it yet. But it should help me get a target to aim at. ----- Original Message ----- Kevin Steppe wrote (about jsp): > I would recommend: > <% Category slog = Category.getInstance(this.class.getName()); %> I've done something like this, but here's what happened when I tried again: Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSPD:\jakarta\tomcat-3.2.4\work\localhost_8080%2FNakaiSample\_0002fHXJTestMe nu_0002ejspHXJTestMenu_jsp_2.java:67: ???????? Category blog = Category.getInstance(this.class.getName()); ^ (pointing to the "this.class.getName()") (The Japanese error message says "Invalid Format" or "Invalid Form".) > The important part is that _this_ is referencable in a JSP (it's just a Servlet > class anyway). Okay, so it should be accessible like a servlet. That should help. ----- Original Message ----- Scott Farquhar wrote (about converting to Logger): > Why not use this: > > import org.apache.log4j.Logger; > import org.apache.log4j.BasicConfigurator; > > public class HXDbg > { > public static Logger glog = Logger.getLogger( HXDbg.class.getName() );; > static > { > BasicConfigurator.configure(); > } > } I've done something like this, too, and here's what happened when I tried this one: Internal Servlet Error: ... Root cause: java.lang.NoSuchFieldError: glog ... ----- Original Message ----- Scott Farquhar also wrote (about jsp): > The problem you get is from using a static category in your jsp in that > manner. > > Either use a non-static logger, or use the jsp taglibs found in the > jakarta jsp project. (See above.) Again, thanks for your help. I'll look some more tomorrow. Joel -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>