【问题标题】:Failed to configure Identity Server 5.0.0 as API Key Manager未能将 Identity Server 5.0.0 配置为 API 密钥管理器
【发布时间】:2015-01-17 11:17:15
【问题描述】:

我按照文档将 Identity Server 5.0.0 配置为 API(1.80) 密钥管理器 - https://docs.wso2.com/display/CLUSTER420/Configuring+WSO2+Identity+Server+as+the+Key+Manager,并在身份服务器中安装 API 密钥管理器功能后启动时记录显示的异常。例外情况如下:

ERROR {org.wso2.carbon.registry.indexing.RegistryConfigLoader} -  org.wso2.carbon.apimgt.impl.indexing.indexer.WSDLIndexer is not found in classpath. Please check whether the class is exported in your OSGI bundle. {org.wso2.carbon.registry.indexing.RegistryConfigLoader}
java.lang.ClassNotFoundException: org.wso2.carbon.apimgt.impl.indexing.indexer.WSDLIndexer
    at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
    at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    at org.wso2.carbon.registry.indexing.RegistryConfigLoader.<init>(RegistryConfigLoader.java:132)
...

ERROR {org.wso2.carbon.registry.indexing.solr.SolrClient} -  Could not instantiate Solr client {org.wso2.carbon.registry.indexing.solr.SolrClient}
java.lang.RuntimeException: java.io.FileNotFoundException: D:\wso2\wso2is-5.0.0\solr\data\index\_7.fnm (The system cannot find the file specified)
    at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1068)
    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:579)
    at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:137)
    at org.wso2.carbon.registry.indexing.solr.SolrClient.<init>(SolrClient.java:90)

...

有人可以帮忙吗?不胜感激。

【问题讨论】:

  • 安装功能后是否将AM 1.8.0的registry.xml+apimanager.xml复制到IS 5.0.0?
  • 是的,我做到了。我可以在 IS 5.0.0 文件夹下找到包含 WSDLIndexer.class 的 jar 文件。这很奇怪。
  • 您好,您找到问题的解决方案了吗?

标签: wso2


【解决方案1】:

我相信我已经找到了问题所在。在安装本文中的密钥管理器功能并在密钥管理器之后安装 WSO2 Identity Manager Service Pack 时,/repository/components/plugins 目录中有两个文件:

org.wso2.carbon.registry.indexing_4.2.1.jar org.wso2.carbon.registry.indexing_4.2.2.jar

我通过删除 4.2.1 jar 版本并保留 4.2.2 jar 版本解决了这个问题。这样做之后,没有遇到任何错误。

【讨论】:

  • 非常感谢,布赖恩。此问题已在最新版本中修复。
猜你喜欢
  • 1970-01-01
  • 2016-08-22
  • 1970-01-01
  • 2015-06-05
  • 2020-06-05
  • 2018-02-02
  • 2021-07-04
  • 1970-01-01
  • 2019-04-26
相关资源
最近更新 更多