【问题标题】:MFP 7.0 Java Adapter Build ErrorMFP 7.0 Java 适配器构建错误
【发布时间】:2015-06-23 22:03:13
【问题描述】:

我正在使用基于 MFP 7.0 Java 的适配器,当我尝试通过 CLI 和 Eclipse 构建时,我收到以下错误:

Error: 
BUILD FAILED
/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:133: The following error occurred while executing this line:
/Applications/IBM/MobileFirst-CLI/mobilefirst-cli/node_modules/generator-worklight-server/lib/build.xml:159: /wlp/dev does not exist.

我可以很好地构建基于 JavaScript 的适配器,这只是在尝试构建 Java 适配器时。

编辑:

这是我在 Eclipse 中使用 MFP Studio 插件时遇到的构建错误:

The installation directory is not valid. Check that the path points to a Liberty profile runtime environment (e.g. <path>/wlp).

Here's a gist 用于我们的 JavaSampleAdapterResource.java 实现。

【问题讨论】:

  • 您能否提供更多有关您正在做的事情的背景信息,或者提供一个示例项目以及触发此错误的示例 Java 适配器?
  • 另外,我假设 Studio 的错误实际上看起来不同,因为它没有使用 CLI...

标签: java ibm-mobilefirst mobilefirst-adapters mobilefirst-server mobilefirst-cli


【解决方案1】:

我在 Mobile First 7.1 版中遇到了同样的错误。 经过深入调试,我找到了它的根本原因。

我的错误是,在成功安装 MobileFirst 7.1 后,我将 eclipse 移动到了新文件夹。

所以每当我尝试启动服务器或部署适配器时,我都会收到此错误 安装目录无效。检查路径是否指向 Liberty Profile 运行时环境(例如 /wlp)。

我按照以下步骤解决了这个问题:

  • 在服务器部分,单击以添加新服务器
  • 在 IBM 部分选择 WebSphere Application Server 版本 x.x。
  • 点击配置运行时环境
  • 选择显示 Mobile First Development Server 的第一个条目
  • 点击编辑
  • 现在在路径中输入 \plugins\com.worklight.worklight-artifacts_xxxx\liberty\wlp
  • 点击完成
  • 现在启动您的服务器。

【讨论】:

    【解决方案2】:

    我能够通过重新安装 CLI 和 eclipse 插件来“修复”这个问题。

    【讨论】:

    • 嗨@Idan。我刚刚看到在 Mac OS 上安装的全新基于 Mars 的 Studio 和 CLI 上运行 7.1 时出现完全相同的问题。正在关注“第一个混合应用程序”教程。我还没有尝试重新安装任何东西,所以如果你想让我收集日志或其他抵押品,请告诉我。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多