Error starting module Patient Visit

3 views
Skip to first unread message

Rakshit Wadhwa

unread,
May 18, 2014, 5:46:55 PM5/18/14
to d...@openmrs.org
Hi

I am trying to run openmrs-module-example-spring-mvc-annotation through openMRS 1.9
Github link:  https://github.com/openmrs/openmrs-module-example-spring-mvc-annotation

I have openmrs 1.5.x checked out in the same workspace in which I have the module checked out, as in build.xml of module it takes openmrs 1.5.x in its classpath.

When I first compiled the module, I got the following error.
Paste bin link: http://pastebin.com/M6iSUXGw

To solve these issues I added hibernate3.jar, commons-logging-1.0.4.jar, spring-webmvc.jar, servlet-api-2.5.jar, spring-2.5.6.jar in my build path through eclipse, as well as in lib directory.

Now  "ant package-module" succeeded, however when I upload the .omod file created in my openMRS, it is unable to start, and gives the following error:

Unexpected exception parsing XML document from URL [jar:file:/tmp/1400444421056.openmrs-lib-cache/jspexample/jspexample.jar!/moduleApplicationContext.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface

The complete trace is as follows:
Pastebin link: http://pastebin.com/7yps8UWV


It would be great if you can tell how to resolve this issue.

Thanks and regards
Rakshit

Darius Jazayeri

unread,
May 18, 2014, 6:38:32 PM5/18/14
to dev
Hi Rakshit,

Are you sure you intend to be running OpenMRS 1.5? That's an ancient version of the system, and it's going to be hard or impossible to get any modern OpenMRS code running against it.

-Darius


--
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/

Rakshit Wadhwa

unread,
May 20, 2014, 5:53:16 PM5/20/14
to d...@openmrs.org
I switched to openMRS 1.8.2, and changed the same in the build path of the module.
I am able to compile the module and make .omod file.
However, when I upload it into OpenMRS, I get the following error.

Error starting module - Patient Visit
Error while trying to start module
org.openmrs.module.patientvisit.extension.html.AppointmentPatientDashboardTabExt cannot be cast to org.openmrs.module.Extension

The complete error trace, that I get on terminal is as follows:
http://pastebin.com/80TWvPfU

The file which is mentioned in error is : https://github.com/openmrs/openmrs-module-example-spring-mvc-annotation/blob/master/src/org/openmrs/module/patientvisit/extension/html/AppointmentPatientDashboardTabExt.java

Would be great if you can provide insight in how to fix the issue.

Thanks and regards
Rakshit
Reply all
Reply to author
Forward
0 new messages