MFP 7.0 Java 适配器构建错误
MFP 7.0 Java Adapter Build Error
我正在使用基于 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.
我可以构建 Java 基于脚本的适配器,这只是在尝试构建 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
实施。
我可以通过重新安装 CLI 和 eclipse 插件来"fix"解决这个问题。
我在 Mobile First 7.1 版中遇到了同样的错误。
经过深入调试,我找到了它的根本原因。
我的错误是,在成功安装 MobileFirst 7.1 后,我将我的 eclipse 移动到新文件夹。
因此,每当我尝试启动服务器或部署适配器时,都会收到此错误
安装目录无效。检查路径是否指向 Liberty 配置文件运行时环境(例如 /wlp)。
我按照以下步骤解决了这个问题:
- 在服务器部分,点击添加新服务器
- Select IBM 部分中的 WebSphere Application Server 版本 x.x。
- 点击配置运行时环境
- Select 移动优先开发服务器的第一个条目
- 点击编辑
- 现在在路径中输入 \plugins\com.worklight.worklight-artifacts_xxxx\liberty\wlp
- 点击完成
- 现在启动你的服务器。
我正在使用基于 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.
我可以构建 Java 基于脚本的适配器,这只是在尝试构建 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
实施。
我可以通过重新安装 CLI 和 eclipse 插件来"fix"解决这个问题。
我在 Mobile First 7.1 版中遇到了同样的错误。 经过深入调试,我找到了它的根本原因。
我的错误是,在成功安装 MobileFirst 7.1 后,我将我的 eclipse 移动到新文件夹。
因此,每当我尝试启动服务器或部署适配器时,都会收到此错误 安装目录无效。检查路径是否指向 Liberty 配置文件运行时环境(例如 /wlp)。
我按照以下步骤解决了这个问题:
- 在服务器部分,点击添加新服务器
- Select IBM 部分中的 WebSphere Application Server 版本 x.x。
- 点击配置运行时环境
- Select 移动优先开发服务器的第一个条目
- 点击编辑
- 现在在路径中输入 \plugins\com.worklight.worklight-artifacts_xxxx\liberty\wlp
- 点击完成
- 现在启动你的服务器。