Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while modifying log4j.xml

 
umasankar puranam
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I am trying to change the log level in log4j.xml file in WEB-INF folder in a servlet as shown below.



Now, at the last line I am getting the following error as follows:

java.io.FileNotFoundException: D:\jboss-4.0.3SP1\server\default\.\tmp\deploy\tmp42040knoahsoft-exp.war\log4j.xml
at org.jboss.net.protocol.file.FileURLConnection.connect(FileURLConnection.java:82)
at org.jboss.net.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:91)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:146)
at com.knoah.actions.ServletForward.execute(ServletForward.java:58)

Now, please help me in modifying the log4j.xml file.

Thanks,
UmaSankar.P
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you programatically trying to change the log level of your application ?
Is the xml configuration file present in the location mentioned in the exception ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic