我可以告诉我的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,但从未使用过Websphere的<jar>。
发布于 2017-08-03 19:30:21
如果您希望同时重新加载Tomcat和WebSphere中的类,则需要使用rebel.xml部署应用程序,该应用程序指向您的集成开发环境编译这些类的位置。
我认为你的错误是,你认为配置文件是用来指向应该重新加载的应用程序的?不是的!
相反,JRebel代理使用rebel.xml配置文件重新配置类加载器,以便从配置文件中指定的位置加载资源。
示例中的第一个条目可能是正确的,因为类是重新加载的。可能缺少的是WebSphere中部署的应用程序中的rebel.xml。如果需要重新加载驻留在jar中的类,请确保将rebel.xml打包到jar文件的根目录中。那么它应该工作得很好。
如果您百分之百确定配置文件在那里,但仍然没有看到类被重新加载,请联系support@zeroturnaround.com上的JRebel支持团队--他们将帮助解决问题。
https://stackoverflow.com/questions/45320491
复制相似问题