【问题标题】:JRebel Tomcat + WebsphereJRebel Tomcat + Websphere
【发布时间】:2017-07-26 07:42:24
【问题描述】:

我可以告诉我的 Intellij 为 tomcat 和 Webpshere jar 文件重建 .class 吗?

我的模块配置:

  <application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd">

    <classpath>
        <dir name="C:/Workspace/Project/pro-commands/target/classes">
        </dir>
        <jar name="C:/Workspace/WAS8.5/profiles/project/installedApps/pckserkowskiNode01Cell/project-test.ear/pro-commands-1.0-SNAPSHOT.jar">
        </jar>
    </classpath>

</application>

&lt;dir&gt; 适用于 Tomcat,但从未使用过 &lt;jar&gt; 适用于 Websphere。

【问题讨论】:

  • 请澄清,你想做什么? (Shift)-F9 (re) 在 IntelliJ IDEA 中构建项目,但随后您询问的是 JRebel 配置。那么你的真正目标是什么?
  • 或者您想同时重新加载 Tomcat 和 WebSphere 中的类?
  • 我想同时重新加载Tomcat和WebSphere中的类。

标签: java tomcat configuration websphere jrebel


【解决方案1】:

如果您想同时在 Tomcat 和 WebSphere 中重新加载类,您需要使用指向您的 IDE 将这些类编译到的位置的 rebel.xml 部署应用程序。

我认为您的错误是您认为配置文件用于指向应该重新加载的应用程序?不!

相反,JRebel 代理使用 rebel.xml 配置文件来重新配置类加载器,以从配置文件中指定的位置加载资源。

您的示例中的第一个条目可能是正确的,因为类已重新加载。可能缺少的是部署在 WebSphere 中的应用程序中的 rebel.xml。如果您需要重新加载 jar 中的类,请确保将 rebel.xml 打包到 jar 文件的根目录中。那么它应该可以正常工作。

如果您 100% 确定配置文件存在,但您仍然没有看到类已重新加载,请通过 support@zeroturnaround.com 联系 JRebel 支持团队——他们将协助解决问题。

【讨论】:

    猜你喜欢
    • 2016-09-15
    • 1970-01-01
    • 2011-09-15
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-06
    相关资源
    最近更新 更多