logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BLa...@flr.follett.com
Subject log4j complaining of XML not being well-formed.
Date Fri, 11 Jan 2002 22:59:35 GMT
Hi All,

I'm trying to get log4j incorporated into a servlet that I'm writing.  I'm
using JBoss 2.4.3 with Tomcat 3.2.3.

Here's the XML file that I'm using:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">

<log4j:configuration xmlns:log4j='http://jakarta.apache.org/log4j/'>
  <appender name="DefaultAppender"
      class="org.apache.log4j.RollingFileAppender" />

  <category name="com.follett.flsg.request">
    <priority value ="debug" />
    <appender-ref ref="DefaultAppender" />
  </category>
</log4j:configuration>


And here's the error I'm getting from the console.

[Default] log4j:ERROR FATAL: The markup in the document preceding the root
eleme
nt must be well-formed.
        at line=9 col=3 of SystemId
="jar:file:/C:/JBoss-2.4.3_Tomcat-3.2.3/jboss
/lib/ext/log4j.jar!/org/apache/log4j/xml/log4j.dtd" PublicID = "null"
[Default] Could not initialize XMLSample program.
[Default] org.xml.sax.SAXException: Stopping after fatal error: The markup
in th
e document preceding the root element must be well-formed.
[Default]       at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.j
ava:1245)
[Default]
[Default]       at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXML
Error(XMLDocumentScanner.java:570)
[Default]
[Default]       at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XM
LDocumentScanner.java:624)
[Default]
[Default]       at
org.apache.xerces.framework.XMLDocumentScanner$PrologDispatch
er.dispatch(XMLDocumentScanner.java:834)
[Default]
[Default]       at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLD
ocumentScanner.java:381)
[Default]
[Default]       at
org.apache.xerces.framework.XMLParser.parse(XMLParser.java:10
98)
[Default]
[Default]       at com.follett.flsg.log.Log.<init>(Log.java:80)
[Default]
[Default]       at
com.follett.flsg.request.AddReqServlet.init(AddReqServlet.jav
a:81)
[Default]
[Default]       at
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.j
ava:317)
[Default]
[Default]       at org.apache.tomcat.core.Handler.init(Handler.java:215)
[Default]
[Default]       at
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.jav
a:296)
[Default]
[Default]       at org.apache.tomcat.core.Handler.service(Handler.java:254)
[Default]
[Default]       at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.
java:372)
[Default]
[Default]       at
org.apache.tomcat.core.ContextManager.internalService(Context
Manager.java:812)
[Default]
[Default]       at
org.apache.tomcat.core.ContextManager.service(ContextManager.
java:758)
[Default]
[Default]       at
org.apache.tomcat.service.http.HttpConnectionHandler.processC
onnection(HttpConnectionHandler.java:213)
[Default]
[Default]       at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoi
nt.java:416)
[Default]
[Default]       at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadP
ool.java:501)
[Default]
[Default]       at java.lang.Thread.run(Thread.java:484)
[Default]

Anybody have any ideas?

Thanks in advance.

- Bob



--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message