2017-07-26 40 views
0

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

我的模块配置:

<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从未使用过。

+0

请澄清,你想做什么? (Shift)-F9(重新)在IntelliJ IDEA中构建项目,但是接下来你会问到关于JRebel的配置。那么你真正的目标是什么? –

+0

或者您可能想要同时在Tomcat和WebSphere中重新加载类? –

+0

我想同时在Tomcat和WebSphere中重新加载类。 – Kertt123

回答

0

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

我认为你的错误是你认为配置文件是用来指向应该重新加载的应用程序?没有!

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

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

如果您100%确定配置文件存在,但您仍未看到类被重新加载,请联系JRebel支持团队[email protected] - 他们将协助解决问题。

相关问题