If I remember my XML correctly, you should either use the xmlns:log4j
attribute or the DOCTYPE declaration -- not both. It's not exactly in
error, but duplicates effort and DOCTYPE is somewhat a pain to deal
with. Download log4j from http://logging.apache.org and take a look at
the included example xml files for the recommended way to write these.
--David
Jitesh Sinha wrote:
yes it is there..... the syntax which I am following is :
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true"
xmlns:log4j="http://jakarta.apache.org/log4j/">
....
</log4j:configuration>
I am surprised why it won't work.....
-----Original Message-----
From: Heritier Arnaud [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 2:01 PM
To: Tomcat Users List
Subject: RE : RE : log4j/JDBC driver problem
Do you have a log4j.xml file in your webapp ??
Did you follow the syntax :
<log4j:configuration debug="true"
xmlns:log4j="http://jakarta.apache.org/log4j/">
...
</log4j:configuration>
Arnaud
-----Message d'origine-----
De : Jitesh Sinha [mailto:[EMAIL PROTECTED]
Envoy� : lundi 14 juin 2004 10:20
� : Tomcat Users List
Objet : RE: RE : log4j/JDBC driver problem
renaming the classes12.zip to classes12.jar worked!!thanks
for that . Now pls help me about log4j problem .I guess the
problem is that server is not able to find the log4j.dtd
file?is that guess correct? The error was : log4j:ERROR Could
not parse input source [EMAIL PROTECTED]
java.net.MalformedURLException: no protocol: log4j.dtd
at java.net.URL.<init>(URL.java:579)
at java.net.URL.<init>(URL.java:476)
at java.net.URL.<init>(URL.java:425)
at
org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.
java:807)
at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManag
er.java:767)
at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScanner
Impl.java:275)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
XMLDocumentScannerImpl.java:841)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
LDocumentFragmentScannerImpl.java:329)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:525)
at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
a:581)
at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
at
org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:253)
at
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.
java:201)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:671)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:615)
at
org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java
:583)
at
org.apache.log4j.xml.DOMConfigurator.configure(DOMConfigurator.java:6
93)
-----Original Message-----
From: Heritier Arnaud [mailto:[EMAIL PROTECTED]
Sent: Monday, June 14, 2004 1:23 PM
To: Tomcat Users List
Subject: RE : log4j/JDBC driver problem
2.)
java.sql.SQLException: Cannot load JDBC driver class
'oracle.jdbc.driver.OracleD river'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSou
rce.java:529)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource
.java:312)
I have classes12.zip in server's common/lib directory.I have tried
copying it into webapps/lib directory but am getting the same error.
==> Can you try to rename classes12.zip to classes12.jar ?
Arnaud
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]