首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Jrebel与Apache Tomcat同步

Jrebel与Apache Tomcat同步
EN

Stack Overflow用户
提问于 2014-11-11 18:16:02
回答 1查看 2.1K关注 0票数 1

您好,这是Eclipse Console Log,在JRebel设置成功完成之后。在Java文件中进行更改,然后单击Synchronize。

代码语言:javascript
复制
 Response headers: [Server: Apache-Coyote/1.1, x-rebel-response: ERR_UNKNOWN_REBEL_HASH, x-rebel-responseMessage: Remoting module '5e1de368dea571c9bc1939d90988e22a746772ce' was not found, Content-Length: 0, Date: Wed, 12 Nov 2014 09:56:42 GMT]
[2014-11-12 02:56:42] Cannot find such project on the remote server. Maybe it is not deployed, or project's id in rebel-remote.xml file is different.
com.zeroturnaround.jrebel.remoting.RemotingException: Cannot find such project on the remote server. Maybe it is not deployed, or project's id in rebel-remote.xml file is different.
    at com.zeroturnaround.jrebel.remoting.net.RemotingClient.performHandshake(JRebelRemoting:124)
    at com.zeroturnaround.jrebel.remoting.net.RemotingClient.beginTransaction(JRebelRemoting:77)
    at com.zeroturnaround.jrebel.remoting.Transaction.begin(JRebelRemoting:108)
    at com.zeroturnaround.jrebel.remoting.TransactionGroup.begin(JRebelRemoting:35)
    at org.zeroturnaround.eclipse.jrebel.remoting.builder.RemotingSyncPerformer.initSynchronization(RemotingSyncPerformer.java:58)
    at org.zeroturnaround.eclipse.jrebel.remoting.builder.ManualBuilder.synchronizeProject(ManualBuilder.java:57)
    at org.zeroturnaround.eclipse.jrebel.remoting.actions.SyncNowAction$1.run(SyncNowAction.java:124)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
EN

回答 1

Stack Overflow用户

发布于 2014-11-11 21:14:15

正如Stefan提到的,确保部署的应用程序也有rebel-remote.xml -它应该位于.war文件的WEB-INF/classes内或.jar文件的根目录中。如果它确实存在,请确保工作区和已部署应用程序中的id-s相同。如果您有多个模块,那么每个模块都应该有唯一的remote-id。

另一件事是确保你确实需要使用远程处理-如果你从同一台机器上启动服务器,你不需要,因为远程处理意味着服务器在不同的机器上或在VM中的情况下。从同一台计算机开始,无论是否在集成开发环境之外,您只需确保部署的应用程序具有rebel.xmls,其中包含集成开发环境编译的类文件的路径。

如果所有方法都失败了,请联系support@zeroturnaround.com

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26862455

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档