Results 1 to 3 of 3
- 03-01-2013, 07:57 PM #1
Member
- Join Date
- Mar 2013
- Posts
- 2
- Rep Power
- 0
log4j not finding log4j.xml "there-aint-no-such-file"
Hi!
got a wierd problem. I have third party program which isnt logging. It runs on apache tomcat, and I'v set apache tomcat to run with the -Dlog4j.debug option. The output it produces suggests it cant find the log4j.xml file, or even possibly that it doesnt know what file it is looking for:
log4j: Trying to find [-there-aint-no-such-file-] using WebappClassLoader
context: /fedoragsearch
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@492 9b0e1
class loader.
log4j: Trying to find [-there-aint-no-such-file-] using ClassLoader.getSystemResource().
log4j: Could not find resource: [-there-aint-no-such-file-].
I'v tried copying the log4j.xml into the application top level folder as well as WEB-INF/classes and also the final set of configuration files (WEB-INF/classes/fgsconfigFinal, but to no avail). I'm not really very familiar with log4j debugging output - does anyone know which is implied by the above? is it the location of log4j.xml it cant find, or does it not even know that its looking for log4j? I'v tried googling log4j and "[-there-aint-no-such-file-] " but havnmt found anything useful!
any useful pointers gratefully received
- 03-31-2013, 01:00 PM #2
Senior Member
- Join Date
- Feb 2010
- Posts
- 128
- Rep Power
- 0
Re: log4j not finding log4j.xml "there-aint-no-such-file"
If I remember correctly there should be a log4j.properties file which should have a path where to look for the log4j.xml file. No?
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
- 04-02-2013, 01:04 PM #3
Member
- Join Date
- Mar 2013
- Posts
- 2
- Rep Power
- 0
Re: log4j not finding log4j.xml "there-aint-no-such-file"
Thanks Flynn
I found the answer in the end - a context element had been set for another webapp sitting on the same tomcat installation. This was causing tomcat to look for the log4j configuration file or my own application under the wrong relative pathway . Setting a context element for my own app solved the problem
Similar Threads
-
access denied("java.net.SocketPermission" "127.0.0.1:1099" "connect,resolve")
By klspepper in forum New To JavaReplies: 0Last Post: 12-07-2012, 08:29 AM -
Convert string operation symbols "+", "-", "/", "*" etc.
By Googol in forum New To JavaReplies: 3Last Post: 10-30-2012, 03:06 PM -
Finding MAX value from "file.txt"
By masterboemi in forum New To JavaReplies: 3Last Post: 04-19-2011, 12:09 AM -
Problem on Log4j: How to include custom <filter/> into JBoss (log4j.xml)?
By holyjohn in forum Advanced JavaReplies: 1Last Post: 09-20-2010, 08:32 AM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks