[Mifos-developer] testing mifos plugins

1 view
Skip to first unread message

Adam Monsen

unread,
Oct 26, 2009, 7:21:16 PM10/26/09
to Mifos Developer Discussions
We've been struggling a bit trying to come up with a good way to test
Mifos plugins.

Jeff started on an acceptance test that will be committed, but it will
not be enabled by default since we don't currently have an automated way
to install plugins during acceptance tests.

I looked into configuring the Cargo Maven plugin to add extra jar
dependencies to the classpath, but this has the same problems as adding
Mifos plugins to $CATALINA_HOME/lib (see
http://thread.gmane.org/gmane.comp.finance.mifos.devel/6981/focus=7006
and http://marc.info/?t=125521906200001&r=1&w=2 ). Attached is a patch
and the stacktrace thrown on startup.

Also see: http://www.mifos.org/developers/wiki/PluginManagement

plugin_test.diff.gz
trace.txt.gz
signature.asc

Udai Gupta

unread,
Dec 24, 2009, 8:10:18 AM12/24/09
to Mifos software development
Hi Adam,

I think we can go ahead with this as now I have figured out the way to load plugin at runtime, see r16471

@Exception
You were getting exception when putting importers in CATALINA_HOME/lib because importers were not able to see the spi/api libs which exists in webapp/mifos/WEB-INF/lib.

This is the security feature, Classloaders are not supposed to see classes loaded by a classloader lower in hierarchy then itself.
Bootstraper Classloader (JDK JRE lib)
Catalina Classloader (CATAINA_HOME/lib)
Application Classloader (WEB-INF/lib, WEB-INF/classes)

http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html

@AcceptanceTest
Can you tell me the location, if Jeff has committed the code in.
I guess, we can load jars from any location using programmatic way.

Cheers,
Udai

Jeff Brewster

unread,
Dec 29, 2009, 12:01:11 AM12/29/09
to Mifos software development

@AcceptanceTest
Can you tell me the location, if Jeff has committed the code in.
I guess, we can load jars from any location using programmatic way.

Udai,

I’m not sure what you’re looking for – the import transaction acceptance test?  If so, you can find it here:  /mifos-gazelle-trunk/acceptanceTests/src/test/java/org/mifos/test/acceptance/admin/ImportTransactionsTest.java.

Jeff

Udai Gupta

unread,
Dec 29, 2009, 12:08:44 AM12/29/09
to Mifos software development
Thanks Jeff,

this is what I was looking.

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev

Reply all
Reply to author
Forward
0 new messages