Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 76538 invoked from network); 14 Jun 2004 13:00:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Jun 2004 13:00:32 -0000 Received: (qmail 76493 invoked by uid 500); 14 Jun 2004 12:59:54 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 76355 invoked by uid 500); 14 Jun 2004 12:59:53 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 76210 invoked by uid 99); 14 Jun 2004 12:59:51 -0000 Received: from [132.236.56.39] (HELO postoffice9.mail.cornell.edu) (132.236.56.39) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 14 Jun 2004 05:59:51 -0700 Received: from [128.253.38.244] (defiant.ento.cornell.edu [128.253.38.244]) by postoffice9.mail.cornell.edu (8.12.10/8.12.6) with ESMTP id i5ECxWSR027768 for ; Mon, 14 Jun 2004 08:59:33 -0400 (EDT) Message-ID: <40CDA136.3040908@cornell.edu> Date: Mon, 14 Jun 2004 08:59:34 -0400 From: David Smith User-Agent: Mozilla Thunderbird 0.6 (Macintosh/20040502) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: RE : RE : log4j/JDBC driver problem References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 : > > > >xmlns:log4j="http://jakarta.apache.org/log4j/"> >.... > >I am surprised why it won't work..... > >-----Original Message----- >From: Heritier Arnaud [mailto:aheritier@axway.com] >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 : > >xmlns:log4j="http://jakarta.apache.org/log4j/"> >... > > >Arnaud > > > >>-----Message d'origine----- >>De : Jitesh Sinha [mailto:jsinha@cisco.com] >>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 [org.xml.sax.InputSource@2f729e]. >>java.net.MalformedURLException: no protocol: log4j.dtd >> at java.net.URL.(URL.java:579) >> at java.net.URL.(URL.java:476) >> at java.net.URL.(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:aheritier@axway.com] >>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: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> >>--------------------------------------------------------------------- >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org