【问题标题】:Apache ManifoldCF. Unable to create repository connection to FileNetApache ManifoldCF。无法创建到 FileNet 的存储库连接
【发布时间】:2016-09-07 23:17:12
【问题描述】:

我正在尝试从 ManifoldCF 连接到 FileNet,但没有成功。我得到的错误是

Connection status:  Connection temporarily failed: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect

我的参数摘要如下。请注意,我将 * 放在我不确定的参数旁边,并且服务器名称和用户名是虚构的

FileNet domain=test-my-filenet-domain *
User ID=myusername
Server protocol=http
Server WebServices location=wsi/FNCEWS40DIME *
Object store=Test OS
Document URL protocol=http
Document URL hostname=samplehost.mycomp.org
Document URL location=Workplace/Browse.jsp
Server port=7003
Server hostname=samplehost-wp.mycomp.org
Document URL port=443
Password=********

我已验证 FileNet CE ping 页面已启动并在 URL http://samplehost.mycomp.org:7003/FileNet/Engine 处运行

经典的 Workplace 可在 https://samplehost-wp.mycomp.org/Workplace 获得。请注意,Workplace 是通过 HTTPS 而 CE 是通过 HTTP

有人使用 Apache Manifold 成功连接到 FileNet 存储库吗?

【问题讨论】:

  • 您是说您不确定您的 FileNet“域”是什么?此外,您的连接错误显示 127.0.0.1 作为 ip; ManifoldCF 和 FileNet 是否在同一台服务器上?
  • 克里斯。是的,我不确定为 FileNet 域输入什么。不,ManifoldCF 和 FileNet 不在同一台服务器上。

标签: filenet manifoldcf


【解决方案1】:

您可以使用 FEM 或 ACCE 来定位您的 FileNet 域。 当您首次登录 ACCE 或 FEM 时,域是第一个(顶部)条目。

FileNet P8 domain

未提及您的 FileNet 版本。 如果您连接的是 FileNet 5.1+ 版,那么您的 Server WebServices location 应该是: Server WebServices location=wsi/FNCEWS40MTOM/

我假设您正在使用基于端口号的 WebLogic;并且您位于该服务器上 WebLogic 的第三个服务实例中(默认为 7001,您位于 7003)。 :IBM FileNet P8 ports

您的错误消息表明您没有找到位于指定端口的服务;特别是它无法连接到本地主机上的某个端口。 验证主机是否是同一台服务器(您在与 ManifoldCF 相同的服务器上运行 FileNet)。

http://127.0.0.1:7003/FileNet/Engine 有效吗?

【讨论】:

  • 好的,我从 ping 页面获取了域名。版本是 P8 Content Platform Engine - 5.2.1.4。不,127.0.0.1:7003 不起作用,错误是无法访问站点。我认为 Manifold 会尝试在指定的文档 URL 上连接到 CE,即“samplehost.mycomp.org”
  • 我想同样的事情,但你的错误暗示了一些不同的事情。您可能想要登录到 Manifold 服务器并尝试 ping/跟踪“samplehost.mycomp.org”并查看它提供的 IP。如果正确,是否还有其他需要编辑的配置文件?我自己没有配置 Manifold 实例,但他们只说它们与 FileNet 4.5 兼容......也许它不适用于 5.2?此外,如果您使用的是 5.2,您肯定希望使用 Server WebServices location=wsi/FNCEWS40MTOM/。
  • 找到了代码 MCF,它试图连接到 FileNet(见第 125 行)。不知道为什么它在进行 FileNet 工厂查找时对 127.0.0.1 进行硬编码。 apache.googlesource.com/manifoldcf/+/CONNECTORS-474/connectors/…
  • 我认为这可能用于从 ManifoldCF 插件获取会话。 FileNet 不使用该端口(我知道),并且导入部分中没有详细说明 FileNet API。我怀疑这是org.apache.manifoldcf.agents.interfaces.*; 包的功能。往下 2 行,您会发现 newSession.createSession(userID,password,filenetDomain,objectStore,serverWSIURI); 其中 serverWSIURI 应该提供正确的 URI。
  • 也许"rmi://127.0.0.1:8305/filenet_factory" 是它给你这个错误的地方。只是在这里猜测....也许您有用于 ManifoldCF 的 RMI 在不同的端口上侦听?
【解决方案2】:

我想通了。根据构建 MCF https://manifoldcf.apache.org/release/release-2.5/en_US/how-to-build-and-deploy.html#Building+and+running+the+FileNet+connector 的文档。 FileNet 和 Documentum 还必须运行两个额外的进程。您必须在运行服务器进程之前运行注册表进程。

<MCF_Install>/processes/filenet-registry/run.[bat|sh]
<MCF_Install>/processes/filenet-server/run.[bat|sh]

从 Apache 代码库您可以看到它建立了一个本地连接(第 125 行)https://apache.googlesource.com/manifoldcf/+/CONNECTORS-474/connectors/filenet/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/filenet/FilenetConnector.java。这是失败的地方,因为相关进程尚未运行。

请注意,MCF 2.4 版适用于 FileNet 4.5。如果您正在运行较新版本的 FileNet,则需要将所有 FileNet CEWS 客户端 jar 添加到

<MCF_Install>/processes/filenet-server/lib-proprietary

我正在运行 FileNet 5.2,并且能够从 ACCE 下载所有 jar。此外,如果您正在运行较新版本的 FileNet,则 Web 服务位置是 wsi/FNCEWS40MTOM 或 wsi/FNCEWS40SOAP。 wsi/FNCEWS40DIME 已弃用。

【讨论】:

  • wsi/FNCEWS40MTOM 绝对是首选。另请注意,如果您在使用更新的 FileNet API 时发现任何异常情况,Apache 建议您重新构建连接器,并提供一个 ANT 文件来执行此操作。
猜你喜欢
  • 1970-01-01
  • 2019-01-01
  • 2017-12-08
  • 1970-01-01
  • 1970-01-01
  • 2019-07-09
  • 2019-06-21
  • 2013-01-07
  • 2014-11-03
相关资源
最近更新 更多