【问题标题】:Issue with building service in liferay7?Liferay 7 中的构建服务有问题吗?
【发布时间】:2016-11-22 04:41:18
【问题描述】:

我在 Liferay 7 中部署我的 servicebuilder 项目时出错。错误如下:-

Problem with deploying bundle: Could not resolve module: abhishek-service [497]
  Unresolved requirement: Import-Package: com.example.exception; version="[1.0.0,2.0.0)"

我不明白为什么会出现这个问题?我遵循的步骤如下: - 1)通过名为“abhishek”的liferay ide创建了一个服务构建器。 2) 保留 abhishek-services 文件夹中 service.xml 中的默认命名空间和实体。 3) 通过 Gradle 窗口中的 BuildService 选项构建服务。 4) 将 abhishek-service 部署到服务器上。 5) 如上所述弹出错误。 请帮助..thanx提前..

【问题讨论】:

  • 通过 ant 构建服务时是否弹出相同的错误?代码 497 运气好
  • 你能分享你的 service.xml 吗? OSGi 找不到这些包com.example.exception,我们现在需要弄清楚为什么......

标签: liferay liferay-7


【解决方案1】:

我猜:

  • com.example.exception 由服务生成器生成并放置在 abhishek-api 模块中。
  • 你只部署了abhishek-service模块

也尝试部署abhishek-api 模块。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-04-03
    • 2014-01-26
    • 2016-06-04
    • 1970-01-01
    • 2017-07-13
    • 2012-05-31
    • 2017-04-12
    • 2015-02-01
    相关资源
    最近更新 更多