hi all
An update on our fedoragsearch logging issue, and its solution:
.- the problem was in fact external to fedoragsearch itself and lay in
an interaction with another part of our system. A Context element in the
server.xml for another webapp on the same tomcat was causing
fedoragsearch to look in the wrong webapp context path for the log4j
configuration file. Adding an additional context element for
fedoragsearch to the server.xml solved the problem.
Peri
On 04/03/2013 15:30, peri stracchino wrote:
Hi
has anyone ever experienced any problems getting fedoragsearch logging
to work? for some reason our installations - and we have even tried a
completely fresh installation are not logging at all. I'v configured
tomcat to run with log4j debugging enabled and it looks to me as if
its looking in the right place, but doesnt know what configuration
file its looking for - catalina output below:
Trying to find [-there-aint-no-such-file-] using context classloader
WebappClassLoader^M
context: /fedoragsearch^M
delegate: false^M
repositories:^M
/WEB-INF/classes/^M
----------> Parent Classloader:^M
org.apache.catalina.loader.StandardClassLoader@501ba94d^M
.
log4j: Trying to find [-there-aint-no-such-file-] using
WebappClassLoader^M
context: /fedoragsearch^M
delegate: false^M
repositories:^M
/WEB-INF/classes/^M
----------> Parent Classloader:^M
org.apache.catalina.loader.StandardClassLoader@501ba94d^M
class loader.
log4j: Trying to find [-there-aint-no-such-file-] using
ClassLoader.getSystemResource().
log4j: Could not find resource: [-there-aint-no-such-file-].
log4j:WARN No appenders could be found for logger
(org.fcrepo.server.security.servletfilters.BaseCaching).
log4j:WARN Please initialize the log4j system properly.
I'v tried, just for the sake of experiment, setting
-Dlog4j.configuration to the absolute filepath of fedoragsearch
log4j.xml in the java opts in our tomcat start up script, and the
process information shows it is running with this switch. The tomcat
owner has write permissions for the logging file. I'v even tried, just
as an experiment, copying the log4j.xml to a file
called"[-there-aint-no-such-file-]"(desperate times call for desperate
measures;-D) . And yet still no logging, and still the same catalina
message!
Any suggestions would be most welcome...
Peri
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users