Issue on trying to open "openmrs" page

I have been trying to install OpenMRS using the steps for installation of OpenMRS for developers. (https://wiki.openmrs.org/display/docs/OpenMRS+Installation+for+Developers+on+Ubuntu). I have pulled the latest core and legacyui modules from github and everything was working fine. When I tried to load “serialization.xstream” module(cloned the github repository and ran the command “mvn clean install”) and tried restarting the application, I am getting the following error message.

with the error details bein:

The following error occurred at startup: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serializationServiceTarget$child#0’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘xstreamSerializer’ while setting bean property ‘serializers’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xstreamSerializer’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/org/openmrs/module/serialization/xstream/XStreamSerializer.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.serialization.xstream.XStreamSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer org.openmrs.module.ModuleException: Unable to start OpenMRS. Error thrown was: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serializationServiceTarget$child#0’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘xstreamSerializer’ while setting bean property ‘serializers’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xstreamSerializer’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/org/openmrs/module/serialization/xstream/XStreamSerializer.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.serialization.xstream.XStreamSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer at org.openmrs.web.WebDaemon.startOpenmrs(WebDaemon.java:65) at org.openmrs.web.Listener.contextInitialized(Listener.java:194) at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:835) at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:530) at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:808) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:342) at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1368) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.startWebapp(JettyWebAppContext.java:320) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1335) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772) at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:511) at org.eclipse.jetty.maven.plugin.JettyWebAppContext.doStart(JettyWebAppContext.java:403) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:161) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132) at org.eclipse.jetty.server.Server.start(Server.java:405) at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106) at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61) at org.eclipse.jetty.server.Server.doStart(Server.java:372) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:457) at org.eclipse.jetty.maven.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:328) at org.eclipse.jetty.maven.plugin.JettyRunMojo.execute(JettyRunMojo.java:170) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: javax.servlet.ServletException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serializationServiceTarget$child#0’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘xstreamSerializer’ while setting bean property ‘serializers’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xstreamSerializer’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/org/openmrs/module/serialization/xstream/XStreamSerializer.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.serialization.xstream.XStreamSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer at org.openmrs.web.Listener.startOpenmrs(Listener.java:264) at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serializationServiceTarget$child#0’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/moduleApplicationContext.xml]: Cannot resolve reference to bean ‘xstreamSerializer’ while setting bean property ‘serializers’ with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xstreamSerializer’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/org/openmrs/module/serialization/xstream/XStreamSerializer.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.serialization.xstream.XStreamSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:382) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:157) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1469) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) 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:894) at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:853) at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:645) at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:624) at org.openmrs.web.Listener.startOpenmrs(Listener.java:256) … 1 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xstreamSerializer’ defined in URL [jar:file:/home/openmrs/.OpenMRS/.openmrs-lib-cache/serialization.xstream/lib/serialization.xstream-api-0.2.14-SNAPSHOT.jar!/org/openmrs/module/serialization/xstream/XStreamSerializer.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.serialization.xstream.XStreamSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1093) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1038) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504) 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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351) … 20 more Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openmrs.module.serialization.xstream.XStreamSerializer]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:89) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1086) … 28 more Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Enhancer at org.openmrs.module.serialization.xstream.converter.CustomCGLIBEnhancedConverter.canConvert(CustomCGLIBEnhancedConverter.java:108) at com.thoughtworks.xstream.core.DefaultConverterLookup.registerConverter(DefaultConverterLookup.java:68) at com.thoughtworks.xstream.XStream.registerConverter(XStream.java:1290) at com.thoughtworks.xstream.XStream.registerConverter(XStream.java:1285) at org.openmrs.module.serialization.xstream.XStreamSerializer.(XStreamSerializer.java:153) at org.openmrs.module.serialization.xstream.XStreamSerializer.(XStreamSerializer.java:93) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) … 30 more Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Enhancer at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:470) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:421) at org.openmrs.module.ModuleClassLoader.loadClass(ModuleClassLoader.java:566) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) … 41 more

I am working on a virtual machine with Ubuntu 16.10 and installed JAVA 8 on it. Can someone please let me know if I am missing something or if I need to follow a different approach to do it.

Any help would be appreciated.

This is the recommended and easier alternative: https://wiki.openmrs.org/display/docs/OpenMRS+SDK

Thank you so much. Will be following the link.:slightly_smiling_face: