Hi Jason,
I've gotten this error before when implementing a new instance of DSpace
or upgrading to a new version. I remember spending quite a bit of time
troubleshooting the problem too, and I still really don't understand how what I
did got it to work, but it's something you can try.
I edited /dspace/config/log4j.xml and basically replaced symbolic variable
"${log.dir}" with the hard-coded location of our dspace.log file as follows:
Original log4j.xml:
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration>
<!-- Standard DSpace file logger -->
<appender name="FILE"
class="org.apache.log4j.RollingFileAppender">
<param name="File" value="${log.dir}/dspace.log" />
.
.
.
New log4j.xml:
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration>
<!-- Standard DSpace file logger -->
<appender name="FILE"
class="org.apache.log4j.RollingFileAppender">
<param name="File"
value="/exp/hm/dspace/log/dspace.log" />
.
.
.
Some things to keep in mind:
Our current DSpace version: 1.5.1
Our WebServer: Sun Webserver7
Our config. parameters in dspace.cfg:
dspace.dir = /dspace
log.init.config = ${dspace.dir}/config/log4j.xml
log.dir = ${dspace.dir}/log
Like I said, the solution really doesn't make sense to me, but it worked, so I
thought you might try it! Has anyone else had this problem? Once I made this
change and restarted the web server, the problem disappeared.
Hope this helps!
Sue
Sue Walker-Thornton
NASA Langley Research Center
Integrated Library Systems ~ Developer, Application & Database Administrator
ConITS Contract
NCI Information Systems, Inc.
130 Research Drive
Hampton, VA 23666
Office: (757) 224-4074
Fax: (757) 224-4001
Mobile: (757) 506-9903
Email: [email protected]<mailto:[email protected]>
-----Original Message-----
From: Jason Fowler [mailto:[email protected]]
Sent: Monday, April 05, 2010 4:51 PM
To: [email protected]
Subject: [Dspace-tech] log4j causing slowness for DSpace
I've been beating my brains in over this issue, and I have tried every possible
solution I can find. I've recently migrated to 1.6.0, and since making the
change, problems with log4j occur at startup. This makes my Dspace startup take
ten minutes. I've narrowed down the problem (I think) to being an issue with
log4j.
I just appended a date stamp to my catalina.out file while I restarted. I have
output it below. The first thing that shows up after the stamp is log4j errors.
After churning for 10 minutes, everything works fine, even logging, solr, etc.
Does anyone have any idea what might be causing this problem? If so, many, many
thanks in advance.
Mon Apr 5 15:29:51 CDT 2010
log4j:WARN No appenders could be found for logger
(org.apache.catalina.startup.Embedded).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
Loading catalog:
file:/usr/local/apache-tomcat-5.5.26/work/Catalina/localhost/xmlui/cocoon_xml_resolver_entities/catalog
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
- Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
- Using dspace provided log configuration (log.init.config)
- Loading: /mnt/storage/dspace/config/log4j.properties
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
Loading catalog:
file:/usr/local/apache-tomcat-5.5.26/work/Catalina/localhost/_/cocoon_xml_resolver_entities/catalog
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
INFO: Loading provided config file: /mnt/storage/dspace/config/dspace.cfg
INFO: Using dspace provided log configuration (log.init.config)
INFO: Loading: /mnt/storage/dspace/config/log4j.properties
Apr 5, 2010 3:39:31 PM org.apache.solr.servlet.SolrDispatchFilter init
INFO: SolrDispatchFilter.init()
Apr 5, 2010 3:39:31 PM org.apache.solr.core.SolrResourceLoader locateInstanceDir
INFO: Using JNDI solr.home: /mnt/storage/dspace/solr
Jason Fowler, CA, MSLS
Archives and Special Collections Librarian
The Southern Baptist Theological Seminary
Vice President, ALABI
[email protected]
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech