Error deploying new module OpenMRS 1.9.2

0 views
Skip to first unread message

Timothy Tuti

unread,
Feb 25, 2013, 8:51:14 AM2/25/13
to d...@openmrs.org
I keep getting the error when I try to deploy a new module

"Unexpected exception parsing XML document from class path resource [applicationContext-service.xml];
nested exception is java.lang.NoClassDefFoundError: org/openmrs/module/reporting/cohort/definition/BaseCohortDefinition"

All my dependencies are fine and I can't locate the root of this problem. Help.

Tuti

Michael Seaton

unread,
Feb 25, 2013, 10:25:45 AM2/25/13
to d...@openmrs.org
Do you have the reporting module listed as a required module within your config.xml file?

Mike
--
OpenMRS Developers: http://go.openmrs.org/dev
Post: d...@openmrs.org
Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions at https://id.openmrs.org/
 
 

Timothy Tuti

unread,
Feb 26, 2013, 12:14:19 AM2/26/13
to d...@openmrs.org
No I do not. Although I a have its dependency in the pom.xml and I already have it installed and running in my OpenMRS 1.9.2 installation.
--



Timothy Tuti,
Senior Principal Partner,
Hazelband Consulting Group
Tel : (+254)(0)736262966

www.hazelband.com

Michael Seaton

unread,
Feb 26, 2013, 9:05:08 AM2/26/13
to d...@openmrs.org
Hi Tuti,

If your module uses the reporting module API (eg. adds a new CohortDefinition), your module needs to explicitly add a dependency on the reporting module in it's config.xml file, in order for it to work successfully.  This is how the Classloader is designed.

Cheers,
Mike
Reply all
Reply to author
Forward
0 new messages