簡體   English   中英

JRebel Tomcat + Websphere

[英]JRebel Tomcat + Websphere

我可以告訴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>

<dir>適用於Tomcat,但從未使用過<jar>用於Websphere。

如果要同時在Tomcat和WebSphere中重新加載類,則需要使用rebel.xml部署應用程序,該應用程序指向IDE將這些類編譯到的位置。

我認為您的錯誤是您認為配置文件用於指向應重新加載的應用程序? 沒有!

相反,JRebel代理使用rebel.xml配置文件重新配置類加載器,以從配置文件中指定的位置加載資源。

您的示例中的第一個條目可能是正確的,因為重新加載了類。 可能缺少的是在WebSphere中部署的應用程序中的rebel.xml。 如果需要重新加載jar中的類,請確保將rebel.xml打包到jar文件的根目錄中。 然后它應該工作正常。

如果您100%確保配置文件存在,並且仍然看不到重新加載了類,請通過support@zeroturnaround.com與JRebel支持團隊聯系-他們將協助解決問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM