在成功完成JRebel设置之后,这是Eclipse控制台日志。在Java文件中进行了更改,单击了Synchronize。
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)
答案 0 :(得分:3)
正如Stefan所提到的,请确保已部署的应用程序还有rebel-remote.xml
- 它应位于WEB-INF/classes
内.war
个文件或.jar
文件的根目录。如果确实存在,请确保工作空间和已部署应用程序中的id-s相同。如果您有多个模块,则每个模块都应具有唯一的remote-id。
另一件事是确保您确实需要使用远程处理 - 如果您从同一台计算机启动服务器,则不会,因为远程处理适用于服务器位于不同计算机或VM中的情况。从IDE以外的同一台机器开始,您只需要确保部署的应用程序包含rebel.xmls
包含IDE编译的类文件的路径。
如果一切都失败了,请联系support@zeroturnaround.com