【问题标题】:Can I install modules to my wildfly through cli in domain mode?我可以在域模式下通过 cli 将模块安装到我的 wildfly 吗?
【发布时间】:2020-04-14 18:24:33
【问题描述】:

支持第一个问题,管理从一个点到所有主机的添加模块?

如果我运行 Wildfly 域模式,我将无法运行它

[domain@127.0.0.1:9999 /] module add --name=com.oracle.jdbc --resources=/path/to/ojdbc6.jar --dependencies=javax.api,javax.transaction.api

答案:

The command is not available in the current context (e.g. required subsystems or connection to the controller might be unavailable).

【问题讨论】:

    标签: configuration wildfly config


    【解决方案1】:

    模块操作在域模式下不起作用,因为它将文件复制到本地。 一种解决方案也是使用 Galleon 来配置您的模块

    【讨论】:

    【解决方案2】:

    我发现了一个很好的博客:

    https://in.relation.to/2017/05/29/creating-patches-for-wildfly/

    这行得通。如果您要将模块添加到 modules/com/.. 那么在项目中您必须放置 modules/system/layers/base/com/..

    这样你就可以管理wildfly-s的差异了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-03-12
      • 1970-01-01
      • 2019-10-09
      • 1970-01-01
      • 2012-03-15
      • 2020-01-20
      • 2016-11-27
      • 2021-03-31
      相关资源
      最近更新 更多