Legacy UI error with Platform 2.0.0-alpha

Application Name: Legacy UI Version Number: 0.1

Question: I am using Platform 2.0.0-alpha version. When I install the Legacy UI, it gives the below error.

WARN - AbstractApplicationContext.refresh(487) |2016-03-11 10:57:17,114| Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'legacyUiUrlMapping' defined in URL [jar:file:/home/nadeeshani/Desktop/WSO2Products/zip%20download/tomcat/temp/1457674028856.openmrs-lib-cache/legacyui/legacyui.jar!/webModuleApplicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/jfree/data/time/RegularTimePeriod
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:762)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
    at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:842)
    at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:866)
    at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:641)
    at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:620)
    at org.openmrs.web.Listener.startOpenmrs(Listener.java:258)
    at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)

How can I resolve this?

Where did you get the legacyui module from? Did you download it from the module repository or did you compile it from source?

I downloaded it from here. https://modules.openmrs.org/#/show/231/legacy-ui-module

@nadeeshani do you think you can compile the module from source? https://github.com/openmrs/openmrs-module-legacyui

2 Likes

I built the LegacyUI module from the source code and it worked. Thank you @dkayiwa. :slight_smile:

@wyclif, sounds like a new (0.2?) release of Legacy UI module is needed perhaps…

We’ll definitely release a new version of the module at a later point once we get the work that needs to go into it is done

@wyclif, I think @michael’s point is that at least twice a week we see this exact same exchange on the lists. Why not just do a quick 0.2 release and save people the trouble? It doesn’t cost anything…

...

On Fri, Mar 11, 2016 at 7:12 PM, Wyclif Luyima talk+noreply■■■■■■■■■■■■ wrote:

wyclif https://talk.openmrs.org/users/wyclif Wyclif Luyima https://talk.openmrs.org/users/wyclif /dev/5 March 11

We’ll definitely release a new version of the module at a later point once we get the work that needs to go into it is done

Visit Topic https://talk.openmrs.org/t/lagacy-ui-error-with-platform-2-0-0-alpha/5229/7 or reply to this email to respond

To stop receiving notifications for this particular topic, click here https://talk.openmrs.org/t/lagacy-ui-error-with-platform-2-0-0-alpha/5229/unsubscribe. To unsubscribe from these emails, change your user preferences https://talk.openmrs.org/my/preferences

or, click here <reply@talk.openmrs.org?subject=unsubscribe> to unsubscribe via email.

1 Like

Yeah, this … basically the fact that the 0.1 release that’s out there is causing a lot of grief for people. Even 0.1.1 depending on what’s changed between then and now…

I have just released version 0.2 of the module. But i do not have permission to upload it to modulus. Can the modulus admin give me the required permissions?

1 Like

You may have better luck if you @-mention or otherwise contact the module’s owner (as listed at https://modules.openmrs.org/#/show/231/legacy-ui-module) directly rather than an indirect statement like this. :slight_smile:

Great tip. :smile: @wyclif can you add me to the maintainers of the legacyui module?

Done! Sorry it was late since I was on vacation