如何在openmrs中安装自定义品牌模块?

时间:2015-10-19 14:29:34

标签: java maven openmrs

我按照安装OpenMRS的所有步骤进行操作。我下载了OpenMRS核心源代码,然后在控制台中执行了mvn clean install。然后执行命令mvn jetty:在webapp目录中运行,一切正常。所以,我从openmrs模块库下载了自定义brading 0.2(.omod)模块,我将其复制到... / Application Data / OpenMRS / modules中,然后执行mvn jetty:run for launch。我收到以下错误:

ERROR - Listener.performWebStartOfModules(651) |2015-10-19 09:17:50,233| Unable to refresh the spring application context.  Root Cause was:
java.net.UnknownHostException: www.springframework.org
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:589)
    at java.net.Socket.connect(Socket.java:538)
    at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    at sun.net.www.http.HttpClient.New(HttpClient.java:308)
    at sun.net.www.http.HttpClient.New(HttpClient.java:326)
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1167)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:931)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
    at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
    at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
    at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:76)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadDocument(XmlBeanDefinitionReader.java:429)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:391)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:336)
    at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:304)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:181)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:217)
    at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
    at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
    at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
    at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:537)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:452)
    at org.openmrs.module.ModuleUtil.refreshApplicationContext(ModuleUtil.java:842)
    at org.openmrs.module.web.WebModuleUtil.refreshWAC(WebModuleUtil.java:953)
    at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:638)
    at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:617)
    at org.openmrs.web.Listener.startOpenmrs(Listener.java:255)
    at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)
WARN - Listener.performWebStartOfModules(680) |2015-10-19 09:17:50,249| caught another error: 
org.openmrs.api.APIException: Service not found: interface org.openmrs.scheduler.SchedulerService
    at org.openmrs.api.context.ServiceContext.getService(ServiceContext.java:700)
    at org.openmrs.api.context.ServiceContext.getSchedulerService(ServiceContext.java:291)
    at org.openmrs.api.context.Context.getSchedulerService(Context.java:498)
    at org.openmrs.module.web.WebModuleUtil.stopTasks(WebModuleUtil.java:378)
    at org.openmrs.module.web.WebModuleUtil.stopModule(WebModuleUtil.java:852)
    at org.openmrs.module.web.WebModuleUtil.shutdownModules(WebModuleUtil.java:795)
    at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:657)
    at org.openmrs.web.Listener.performWebStartOfModules(Listener.java:617)
    at org.openmrs.web.Listener.startOpenmrs(Listener.java:255)
    at org.openmrs.web.WebDaemon$1.run(WebDaemon.java:42)

谁知道它可能是? 注意:我的互联网连接在代理后面,maven的命令工作,因为我在settings.xml文件中设置了代理。

1 个答案:

答案 0 :(得分:0)

您的系统是否已连接到互联网?

此外,如果您已下载并运行OpenMRS的已发布版本,或者您刚从GitHub获取最新(正在开发)代码,则不清楚。你能澄清一下吗?

最后,通过使用项目自己的Q&amp; A网站,您可能会获得OpenMRS专家的回复,而不是您来到这里:https://talk.openmrs.org/c/ask