Home Answers Viewqa Log4J JDBCAppender

 
 


Imran
JDBCAppender
1 Answer(s)      2 years and 2 months ago
Posted in : Log4J

Dear Friends, I am a newer person on java technology. I define a JDBCAppender in XML file which is not working properly.Anyone can tell me the steps to overcome this problem.

  • THESE ARE THE ERRORS:

java.io.FileNotFoundException: E:\Reader\log4j.xml (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:106) at java.io.FileInputStream.(FileInputStream.java:66) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161) at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:653) at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:186) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:771) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:225) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208) at reader.Main.main(Main.java:19)

BUILD SUCCESSFUL (total time: 17 seconds)

View Answers

March 23, 2011 at 11:17 AM


Hi,

log4j.xml is not present in your project.

java.io.FileNotFoundException: E:\Reader\log4j.xml (The system cannot find the file specified)

Copy log4j.xml from log4j.xml Example page and use in your project.

Thanks









Related Pages:
JDBCAppender
JDBCAppender  I have already included (log4j.xml) in my project, in which JDBCAppender is defined but still there is a problem
JDBCAppender
JDBCAppender  Dear Friends, I am a newer person on java technology. I define a JDBCAppender in XML file which is not working properly.Anyone can tell me the steps to overcome this problem. THESE ARE THE ERRORS

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.