Geoff,

When you say "jar file" what do you mean exactly? Is this log4j.jar or some other jar 
file? Which OS, JDK version of Xerces is this? Ceki

At 07:56 08.02.2001 +0800, you wrote:
>I'm importing the jar file into the weblogic classpath and it's trying to
>get the dtd out of the jar file.
>The program has no problem getting the other files (.class files) out of the
>jar file.
>
>I've deleted the dtd from the jar file and moved it to another directory and
>pointed the xml to the dtd there.
>
>This is less than ideal - I would prefer to keep it in the jar file.
>
>Any ideas?
>
>Cheers
>
>Geoff
>
>-----Original Message-----
>From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, 7 February 2001 17:21
>To: LOG4J Users Mailing List
>Subject: Re: Help using DOMConfigurator
>
>
>Geoff,
>
>There is no need to displace the log4j.dtd file. Leave it where it was. 
>
>Why is java.util.zip involved? Have you placed the files in a jar archive?
>Ceki
>
>At 14:02 07.02.2001 +0800, you wrote:
>>Hello all,
>> 
>>I'm trying to use the latest copy of log4j and trying to use the
>>DOMConfigurator.
>>
>>I've taken a copy of the sample1.xml, renamed it, copied the DTD to the
>same
>>directory and when I try and run:
>> 
>>DOMConfigurator.configure(xmlFilePath);
>> 
>>I get:
>> 
>>log4j:ERROR Could not parse input stream
>[java.io.FileInputStream@86695348].
>>java.util.zip.ZipException: error in opening zip file
>>        at java.util.zip.ZipFile.open(Native Method)
>>        at java.util.zip.ZipFile.<init>(ZipFile.java:69)
>>        at java.util.zip.ZipFile.<init>(ZipFile.java:84)
>>        at
>>weblogic.utils.zip.ZipURLConnection.getInputStream(Handler.java:40)
>>        at java.net.URL.openStream(URL.java:818)
>>        at
>>org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFa
>c
>>tory.java, Co
>>mpiled Code)
>>        at
>>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEnti
>t
>>y(DefaultEnti
>>tyHandler.java:767)
>>        at
>>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubs
>e
>>t(DefaultEnti
>>tyHandler.java:566)
>>        at
>>org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.jav
>a
>>:1131)
>>        at
>>org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentS
>c
>>anner.java:21
>>77)
>>        at
>>org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.
>j
>>ava:2133)
>>        at
>>org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XM
>L
>>DocumentScann
>>er.java, Compiled Code)
>>        at
>>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner
>.
>>java, Compile
>>d Code)
>>        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:900)
>>        at
>>org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:1
>2
>>3)
>>        at
>>org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:566)
>>        at
>>org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:513)
>> 
>>
>>Any Ideas??
>>
>>Cheers, 
>>
>>Geoff Oliphant 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to