=============================================================================
log4j:ERROR Could not parse file
[/usr/local/apache-tomcat-6.0.26/webapps/mifos/WEB-INF/classes/org/mifos/config/resources/loggerconfiguration.xml].
java.lang.NullPointerException
at java.lang.String.indexOf(String.java:1733)
at org.apache.log4j.helpers.OptionConverter.substVars(OptionConverter.java:385)
at org.apache.log4j.xml.DOMConfigurator.subst(DOMConfigurator.java:951)
at org.apache.log4j.xml.DOMConfigurator.subst(DOMConfigurator.java:936)
at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:847)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:682)
at org.mifos.framework.components.logger.MifosDOMConfigurator.doConfigure(MifosDOMConfigurator.java:41)
at org.mifos.framework.components.logger.MifosXMLWatchdog.doOnChange(MifosXMLWatchdog.java:50)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:89)
at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:58)
at org.mifos.framework.components.logger.MifosXMLWatchdog.<init>(MifosXMLWatchdog.java:40)
at org.mifos.framework.components.logger.MifosDOMConfigurator.configureAndWatch(MifosDOMConfigurator.java:56)
at org.mifos.framework.components.logger.MifosLogManager.readConfiguration(MifosLogManager.java:188)
at org.mifos.framework.components.logger.MifosLogManager.configure(MifosLogManager.java:68)
at org.mifos.framework.components.logger.MifosLogManager.configureLogging(MifosLogManager.java:202)
at org.mifos.framework.components.logger.MifosLogManager.getLoggerHelper(MifosLogManager.java:133)
at org.mifos.framework.components.logger.MifosLogManager.getLogger(MifosLogManager.java:112)
at org.mifos.framework.components.logger.MifosLogManager.getLogger(MifosLogManager.java:96)
at org.mifos.framework.components.batchjobs.MifosScheduler.<clinit>(MifosScheduler.java:51)
.................................................
==============================================================================
localhost log contains the stack trace like: http://pastebin.com/aWw7Wdwx
And catalina log contains the stack trace like: http://pastebin.com/v2dSyGeu
In all three logs, there are some error/exceptions, its really hard to
track the exact problem. If anybody faced similar problems ....please
let me know.
Thanks for your help.
Regards
Shahid
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
I think this is something due to in-build dynamic logger (MifosLogger)
trying to register logger repository. The easy workaround for this is
to delete you tomcat/work folder, delete the exploded mifos folder in
webapps and restart the tomcat.
Udai
Thanks for your reply. but, I have already tried that cycle (delete
work and exploded folder and restart tomcat) several times, getting
same logs.
Shahid
Tried to sent you the logs, but the total size is over 100KB, so got
caught in list moderation. Anyway, I went back to Ubuntu Tomcat from
standalone Tomcat (at least I have successful history of running this
in Ubuntu tomcat) and still getting errors, but those are not like
previous. Those are related with application initialization code where
some query is executed. Here is the stack trace:
http://pastebin.com/RJPJL0UG
Regards
Shahid
Spot on, Buddy!
Shahid, were you able to fix what is likely a database problem and get
Mifos to start?
It's unfortunate that log4j error shows up, I've also been confused by
that from time to time. It takes focus away from database issues, the
more likely cause of startup failure.
Well, later the DB problems are also not showing in logs, but I got
the hint from Buddy. So I recreated the mifos database and seemed it
solved the problems.
Thanks.
Shahid