我在具有默认h2数据库的linux系统上使用wso2-am v210。 我成功地推动了APIS。如果我更改为发布者或存储,则API列表为空。您唯一看到的是#34;尚未发布任何API"。 如果我改用碳管理控制台,我可以看到我的API:
资源/浏览/ _SYSTEM / apimgt /应用 - 数据/提供者/ {用户}
如何让API在Store and Publisher中显示?
从Webapp-Start开始,记录了以下错误:
[2017-04-05 08:21:48,324] - [信息 ] - [org.apache.solr.core.SolrXmlConfig] - [] - [] - [] - [] - [装载容器] 来自/myinstanz/repository/conf/solr/solr.xml的配置] [2017年4月5日 08:21:48365] - [调试] - [org.apache.solr.core.Config] - [] - [] - [] - [] - [空 缺少可选的solr / @ coreLoadThreads] [2017-04-05 08:21:48365] - [调试] - [org.apache.solr.core.Config] - [] - [] - [] - [] - [空 缺少可选的solr / @ persistent] [2017-04-05 08:21:48365] - [调试] - [org.apache.solr.core.Config] - [] - [] - [] - [] - [空 缺少可选的solr / @ sharedLib] [2017-04-05 08:21:48365] - [调试] - [org.apache.solr.core.Config] - [] - [] - [] - [] - [空 缺少可选的solr / @ zkHost] [2017-04-05 08:21:48366] - [调试] - [org.apache.solr.core.Config] - [] - [] - [] - [] - [空 缺少可选的solr / cores] [2017-04-05 08:21:48,415] - [信息 ] - [org.apache.solr.core.CoresLocator] - [] - [] - [] - [] - [配置定义的核心 根目录:/ myinstanz / repository / conf / solr] [2017-04-05 08:21:48439] - [INFO ] - [org.apache.solr.core.CoreContainer] - [] - [] - [] - [] - [New CoreContainer 169912266] [2017-04-05 08:21:48,440] - [信息 ] - [org.apache.solr.core.CoreContainer] - [] - [] - [] - [] - [将核心加载到 CoreContainer [instanceDir = / myinstanz / repository / conf / solr /]] [2017-04-05 08:21:48,440] - [信息 ] - [org.apache.solr.core.CoreContainer] - [] - [] - [] - [] - [loading shared library:/ myinstanz / repository / conf / solr / lib] [2017-04-05 08:21:48440] - [WARN ] - [org.apache.solr.core.SolrResourceLoader] - [] - [] - [] - [] - [无法找到 (或读取)添加到classloader:lib的目录(解析为: / myinstanz / repository / conf / solr / lib)。] [2017-04-05 08:21:48450] - [ERROR] - [org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject] - [] - [] - [] - [] - [错误 获取API信息时] org.apache.solr.common.SolrException: 实例化shardHandlerFactory类时出错 [HttpShardHandlerFactory]:加载类时出错 ' HttpShardHandlerFactory'在 org.apache.solr.handler.component.ShardHandlerFactory.newInstance(ShardHandlerFactory.java:53) 在org.apache.solr.core.CoreContainer.load(CoreContainer.java:328) 在 org.wso2.carbon.registry.indexing.solr.SolrClient。(SolrClient.java:131)at at org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:142) 在 org.wso2.carbon.registry.indexing.service.ContentBasedSearchService.searchContentInternal(ContentBasedSearchService.java:156)
...
[2017-04-05 08:21:48,927] - [警告 ] - [org.apache.solr.core.SolrResourceLoader] - [] - [] - [] - [] - [无法找到 (或读取)添加到classloader:lib的目录(解析为: / myinstanz / repository / conf / solr / lib)。] [2017-04-05 08:21:48930] - [ERROR] - [org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject] - [] - [] - [] - [] - [错误 获取API标签时] org.apache.solr.common.SolrException:错误 实例化shardHandlerFactory类[HttpShardHandlerFactory]: 加载课程时遇到错误' HttpShardHandlerFactory'在 org.apache.solr.handler.component.ShardHandlerFactory.newInstance(ShardHandlerFactory.java:53) 在org.apache.solr.core.CoreContainer.load(CoreContainer.java:328) 在 org.wso2.carbon.registry.indexing.solr.SolrClient。(SolrClient.java:131)
...
[2017-04-05 08:22:09,068] - [信息 ] - [org.apache.solr.core.CoreContainer] - [] - [] - [] - [] - [loading shared library:/ myinstanz / repository / conf / solr / lib] [2017-04-05 08:22:09068] - [WARN ] - [org.apache.solr.core.SolrResourceLoader] - [] - [] - [] - [] - [无法找到 (或读取)添加到classloader:lib的目录(解析为: / myinstanz / repository / conf / solr / lib)。] [2017-04-05 08:22:09075] - [ERROR] - [JAGGERY.site.pages.index:JAG] - [] - [] - [] - [] - [org.apache.solr.common.SolrException: 实例化shardHandlerFactory类时出错 [HttpShardHandlerFactory]:加载类时出错 ' HttpShardHandlerFactory'] [2017-04-05 08:22:09077] - [ERROR] - [org.jaggeryjs.jaggery.core.manager.WebAppManager] - [] - [] - [] - [] - [org.mozilla.javascript.EcmaError: TypeError:无法读取属性" apis"从null (/publisher/site/blocks/listing/block.jag#40)] org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.EcmaError:TypeError:无法读取属性 " API和#34;来自null(/publisher/site/blocks/listing/block.jag#40)at org.jaggeryjs.scriptengine.engine.RhinoEngine.execScript(RhinoEngine.java:571) 在 org.jaggeryjs.scriptengine.engine.RhinoEngine.exec(RhinoEngine.java:273) 在 org.jaggeryjs.jaggery.core.manager.WebAppManager.exec(WebAppManager.java:588) 在 org.jaggeryjs.jaggery.core.manager.WebAppManager.execute(WebAppManager.java:508)
...
[2017-04-05 08:22:26,883] - [警告 ] - [org.apache.solr.core.SolrResourceLoader] - [] - [] - [] - [] - [无法找到 (或读取)添加到classloader:lib的目录(解析为: / myinstanz / repository / conf / solr / lib)。] [2017-04-05 08:22:26887] - [ERROR] - [org.wso2.carbon.apimgt.hostobjects.APIStoreHostObject] - [] - [] - [] - [] - [错误 获取API信息时] org.apache.solr.common.SolrException: 实例化shardHandlerFactory类时出错 [HttpShardHandlerFactory]:加载类时出错 ' HttpShardHandlerFactory'在 org.apache.solr.handler.component.ShardHandlerFactory.newInstance(ShardHandlerFactory.java:53) 在org.apache.solr.core.CoreContainer.load(CoreContainer.java:328) 在 org.wso2.carbon.registry.indexing.solr.SolrClient。(SolrClient.java:131)at at org.wso2.carbon.registry.indexing.solr.SolrClient.getInstance(SolrClient.java:142)
我在当地尝试过,一切正常。
拜托,你能帮助我吗?
谢谢。 迎接