简体   繁体   English

Jrebel与Apache Tomcat同步

[英]Jrebel Synchronize With Apache Tomcat

Hi this is the Eclipse Console Log, after the JRebel setup has been successfully completed. 在成功完成JRebel设置之后,这是Eclipse控制台日志。 A change is made in the Java file and Synchronize is clicked. 在Java文件中进行更改并单击“同步”。

 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)

As Stefan mentioned, make sure that the deployed application also has rebel-remote.xml - it should be inside WEB-INF/classes for .war files or root of .jar files. 正如Stefan所提到的,确保已部署的应用程序还具有rebel-remote.xml - 它应该位于.war文件的WEB-INF/classes.jar文件的根目录中。 If it does exist, make sure the id-s both in workspace and deployed application are the same. 如果确实存在,请确保工作空间和已部署应用程序中的id-s相同。 If you have multiple modules, each of them should have unique remote-id. 如果您有多个模块,则每个模块都应具有唯一的remote-id。

Another thing is to make sure you'd actually need to use remoting - if you start server from the same machine, you wont, as remoting is meant for cases where the server is on different machine or in a VM. 另一件事是确保您确实需要使用远程处理 - 如果您从同一台计算机启动服务器,则不会,因为远程处理适用于服务器位于不同计算机或VM中的情况。 Starting from the same machine, outside from your IDE or not, you only have to make sure that the deployed application has rebel.xmls containing paths to class files compiled by the IDE. 从IDE以外的同一台机器开始,您只需要确保部署的应用程序具有包含IDE编译的类文件路径的rebel.xmls

If all else fails, contact support@zeroturnaround.com 如果一切都失败了,请联系support@zeroturnaround.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM