Hi, Answering my own question. Trying to compile with the JDK1.2.2 javac gave a better error message, the classic couldn't find javax.xml.parser.ParserConfigurationException.class
A somewhat educated guess led to download JAXP from java.sun.com, and of course jaxp.jar has that class. Now everything compiles in jdk1.2.2 and 1.3.1. As a new user to log4j, although one who's read all the documentation, I didn't see a reference to jaxp. The requirements say jdk1.1 and later. I suggest the documentation reflect this requirement. Yoav Yoav Shapira wrote: > > Howdy, > I just started using Log4j, v1.2-alpha2. I know it's an alpha, so > these types of errors are expected. I posting to see if anyone else > has run into this, and hopefully someone can fix it ;) > > I'm writing an initialization servlet for log4j under tomcat 4.0 > (which I've been using for a while, I know the config is correct, > classpath is OK, etc.). When I try to compile it, I get the following: > > javac StartupServlet.java > An exception has occurred in the compiler (1.3.1). Please file a bug at > the Java Developer Connection > (http://java.sun.com/cgi-bin/bugreport.cgi). Include your program and > the following diagnostic in your report. Thank you. > com.sun.tools.javac.v8.code.Symbol$CompletionFailure: file > javax/xml/parsers/FactoryConfigurationError.class not found at > com.sun.tools.javac.v8.code.ClassReader.fillIn(ClassReader.java:997) > at > com.sun.tools.javac.v8.code.ClassReader.complete(ClassReader.java:952) > at com.sun.tools.javac.v8.code.Symbol.complete(Symbol.java:366) > at > com.sun.tools.javac.v8.code.Type$ClassType.supertype(Type.java:812) > at > com.sun.tools.javac.v8.code.Symbol$ClassSymbol.isSubClass(Symbol.java:622) > at com.sun.tools.javac.v8.comp.Check.isUnchecked(Check.java:541) > at com.sun.tools.javac.v8.comp.Flow.markThrown(Flow.java:255) at > com.sun.tools.javac.v8.comp.Flow._case(Flow.java:748) at > com.sun.tools.javac.v8.tree.Tree$Apply.visit(Tree.java:785) at > com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321) at > com.sun.tools.javac.v8.comp.Flow.analyzeExpr(Flow.java:339) at > com.sun.tools.javac.v8.comp.Flow._case(Flow.java:719) at > com.sun.tools.javac.v8.tree.Tree$Exec.visit(Tree.java:699) at > com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321) at > com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394) at > com.sun.tools.javac.v8.comp.Flow.analyzeStats(Flow.java:413) at > com.sun.tools.javac.v8.comp.Flow._case(Flow.java:520) at > com.sun.tools.javac.v8.tree.Tree$Block.visit(Tree.java:492) at > com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321) at > com.sun.tools.javac.v8.comp.Flow.analyzeStat(Flow.java:394) at > com.sun.tools.javac.v8.comp.Flow._case(Flow.java:488) at > com.sun.tools.javac.v8.tree.Tree$MethodDef.visit(Tree.java:441) > at com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321) at > com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379) at > com.sun.tools.javac.v8.comp.Flow._case(Flow.java:456) at > com.sun.tools.javac.v8.tree.Tree$ClassDef.visit(Tree.java:402) at > com.sun.tools.javac.v8.comp.Flow.analyze(Flow.java:321) at > com.sun.tools.javac.v8.comp.Flow.analyzeDef(Flow.java:379) at > com.sun.tools.javac.v8.JavaCompiler.compile(JavaCompiler.java:380) > at com.sun.tools.javac.v8.Main.compile(Main.java:247) at > com.sun.tools.javac.Main.main(Main.java:16) > > This is Sun JDK1.3.1 on Solaris8. The exception must be caused by the > line > DOMConfigurator.configure(configFileName); > > because when I remove that line the file compiles without a problem. > > Any ideas?? Help appreciated, > > Yoav Shapira > Millennium Pharmaceuticals, Inc. > [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]