Java JRebel-Tomcat+Websphere

Java JRebel-Tomcat+Websphere,java,tomcat,configuration,websphere,jrebel,Java,Tomcat,Configuration,Websphere,Jrebel,我可以告诉我的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://upd

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

适用于Tomcat,但从不使用Websphere。

如果要同时在Tomcat和Websphere中重新加载类,则需要使用rebel.xml部署应用程序,该文件指向IDE编译这些类的位置

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

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

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


如果您100%确定配置文件在那里,但仍然没有看到类被重新加载,请通过以下地址与JRebel支持团队联系:support@zeroturnaround.com-他们将协助解决问题。

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