[Mifos-developer] error with Financial Rules in mifosbeanconfig.xml?

25 views
Skip to first unread message

Kay Chau

unread,
Mar 31, 2010, 5:23:29 PM3/31/10
to Mifos software development

I just upgraded my WAR to the latest trunk version and tried to redeploy Mifos.  I’m getting this error in my log … is there something I needed to update in my mifosBeanConfig.custom.xml file?

 

SEVERE: Exception sending context initialized event to listener instance of class org.mifos.framework.ApplicationInitializer

java.lang.Error: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.mifos.application.accounts.financial.util.helpers.FinancialRules] for bean with name 'financialRules' defined in class path resource [mifosBeanConfig.custom.xml]; nested exception is java.lang.ClassNotFoundException: org.mifos.application.accounts.financial.util.helpers.FinancialRules

                at org.mifos.framework.ApplicationInitializer.init(ApplicationInitializer.java:215)

                at org.mifos.framework.ApplicationInitializer.contextInitialized(ApplicationInitializer.java:125)

                at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)

                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)

                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)

                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)

                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

                at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

                at org.apache.catalina.core.StandardService.start(StandardService.java:516)

                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:578)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Caused by: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.mifos.application.accounts.financial.util.helpers.FinancialRules] for bean with name 'financialRules' defined in class path resource [mifosBeanConfig.custom.xml]; nested exception is java.lang.ClassNotFoundException: org.mifos.application.accounts.financial.util.helpers.FinancialRules

                at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1208)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:618)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:567)

                at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1277)

                at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:844)

                at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:544)

                at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)

                at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)

                at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

                at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)

                at org.mifos.framework.spring.SpringUtil.initializeSpring(SpringUtil.java:55)

                at org.mifos.framework.ApplicationInitializer.init(ApplicationInitializer.java:185)

                ... 25 more

Caused by: java.lang.ClassNotFoundException: org.mifos.application.accounts.financial.util.helpers.FinancialRules

                at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)

                at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)

                at org.springframework.util.ClassUtils.forName(ClassUtils.java:258)

                at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:408)

                at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1229)

                at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1200)

                ... 36 more

Mar 31, 2010 2:06:00 PM org.apache.catalina.core.StandardContext listenerStop

SEVERE: Exception sending context destroyed event to listener instance of class org.mifos.framework.ApplicationInitializer

java.lang.NullPointerException

                at org.mifos.framework.ApplicationInitializer.contextDestroyed(ApplicationInitializer.java:370)

                at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882)

                at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4516)

                at org.apache.catalina.core.StandardContext.start(StandardContext.java:4380)

                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)

                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

                at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)

                at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)

                at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)

                at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)

                at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)

                at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

                at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)

                at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

                at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

                at org.apache.catalina.core.StandardService.start(StandardService.java:516)

                at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

                at org.apache.catalina.startup.Catalina.start(Catalina.java:578)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)

                at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

Mar 31, 2010 2:06:20 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextInitialized()

Mar 31, 2010 2:06:20 PM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextInitialized()

Mar 31, 2010 2:21:35 PM org.apache.catalina.core.ApplicationContext log

INFO: SessionListener: contextDestroyed()

Mar 31, 2010 2:21:35 PM org.apache.catalina.core.ApplicationContext log

INFO: ContextListener: contextDestroyed()

Adam Monsen

unread,
Mar 31, 2010, 6:34:51 PM3/31/10
to Mifos Developer Discussions
On Wed, 2010-03-31 at 17:23 -0400, Kay Chau wrote:
> I just upgraded my WAR to the latest trunk version and tried to
> redeploy Mifos. I’m getting this error in my log … is there something
> I needed to update in my mifosBeanConfig.custom.xml file?

No, shouldn't be... the error you pasted smells like a rather generic
error, as in, this just happened to be the first thing to break, or this
was one error in a series of cascading failures.

I would try deleting CATALINA_HOME/webapps/mifos and CATALINA_HOME/work
and re-starting. Also, double check all your config files (including
local.properties and applicationConfiguration.custom.properties) for
correctness.

signature.asc

Kay Chau

unread,
Mar 31, 2010, 7:36:49 PM3/31/10
to Mifos software development
>
> No, shouldn't be... the error you pasted smells like a rather generic error, as in, this
> just happened to be the first thing to break, or this was one error in a series of
> cascading failures.
>
> I would try deleting CATALINA_HOME/webapps/mifos and
> CATALINA_HOME/work and re-starting. Also, double check all your config files
> (including local.properties and applicationConfiguration.custom.properties) for
> correctness.

I haven't changed any of my .properties files since upgrading and I tried deleting both folders with no luck ...

I guess I'll just blow everything away...

Kay
------------------------------------------------------------------------------
Download Intel&#174; 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

Sam Birney

unread,
Apr 1, 2010, 2:57:59 AM4/1/10
to mifos-d...@lists.sourceforge.net

Actually, I think this is a result of the accounts package refactoring
in Gazelle C. You need to update class attribute in your
mifosBeanConfig.custom.xml to
org.mifos.accounts.financial.util.helpers.FinancialRules

I mentioned this in our Gazelle C testing document, this upgrade step
should be added to the release documentation.

Reply all
Reply to author
Forward
0 new messages