[Mifos-developer] getting this error on latest trunk in log

1 view
Skip to first unread message

Kay Chau

unread,
May 11, 2010, 2:06:54 PM5/11/10
to Mifos software development

Hi there

 

I just tried installing the latest trunk revision on my machine.  I am getting this error in my logs

 

 

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

org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/mifosBeanConfig.custom.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/mifosBeanConfig.custom.xml]

                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:341)

                at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)

                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)

                at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)

                at

 

Looks like it might be something in my mifosBeanConfig.custom.xml file … I haven’t changed it since 1.5.

 

This is what I have at the top of my file:

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

<beans

       xmlns="http://www.springframework.org/schema/beans"

       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

       xsi:schemaLocation="http://www.springframework.org/schema/beans

         http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

    <bean id = "financialRules"

       class="org.mifos.accounts.financial.util.helpers.FinancialRules"

       abstract="false" factory-method="getInstance">

 

 

Do I have something wrong here?

 

Thanks!

Kay

Keith Woodlock

unread,
May 11, 2010, 2:16:39 PM5/11/10
to Mifos software development
Kay,

the problem here is that it isnt actually finding the file within the
'classpath'..

MifosSpringContextListener was created to support what was previously
done in SpringUtil.getConfigFiles which is to support this extra
custom file that may or may not be part of the applicationContext.

1.5 may not be using MifosSpringContextListener but instead using
SpringUtil approach.

KeithW.
> ------------------------------------------------------------------------------
>
>
>

------------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Mifos Developer" group.
To post to this group, send email to mifosde...@googlegroups.com.
To unsubscribe from this group, send email to mifosdevelope...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mifosdeveloper?hl=en.

Kay Chau

unread,
May 11, 2010, 2:20:07 PM5/11/10
to Mifos software development
Thanks Keith for the explanation ... is there a way to fix my xml file or something to pick this up? Or is this a bug?

Kay
> > Looks like it might be something in my mifosBeanConfig.custom.xml file ... I

Kay Chau

unread,
May 11, 2010, 2:40:22 PM5/11/10
to Mifos software development
I just filed a bug for this not working

http://mifosforge.jira.com/browse/MIFOS-2922

Thanks!
Kay
Reply all
Reply to author
Forward
0 new messages