[英]JRebel not working on external tomcat 7
For some reason I can't get JRebel
work on external Tomcat 7
with Eclipse. 由于某种原因,我无法在带有Eclipse的外部
Tomcat 7
使用JRebel
。 Everything works fine if I use server runtime in IDE, but if I launch server from command line and deploy application externally, JRebel doesn't reflect my changes to server. 如果我在IDE中使用服务器运行时,则一切正常,但如果从命令行启动服务器并在外部部署应用程序,则JRebel不会反映对服务器的更改。
Here is how I configured and deployed my project: 这是我配置和部署项目的方式:
JRebel
on project from projects configuration tab JRebel
Run locally from command line
Run locally from command line
catalina-jrebel.bat
according to generated configuration catalina-jrebel.bat
catalina-jrebel.bat run
catalina-jrebel.bat run
启动服务器 application manager
application manager
在服务器上部署了war文件 Now, if I modify my sample Servlet and save, nothing happens. 现在,如果我修改示例Servlet并保存,则什么也不会发生。 Application behavior doesn't change, nothing in console.
应用程序的行为不变,控制台中没有任何变化。
Am I missing something, and how to debug the problem? 我是否缺少某些东西,以及如何调试问题?
Here is the content of catalina-jrebel.bat
这是
catalina-jrebel.bat
的内容
@echo off
set REBEL_BASE=C:\Users\tutoivon\.jrebel
set JAVA_OPTS="-javaagent:C:\SLO\eclipse\plugins\org.zeroturnaround.eclipse.embedder_6.4.4.RELEASE\jrebel\jrebel.jar" %JAVA_OPTS%
call "%~dp0\catalina.bat" %*
Some things you can check by yourself: 您可以自己检查一些事情:
.war
contains a rebel.xml
inside WEB-INF/classes
- this helps JRebel to find the location of classes updated by IDE. .war
在WEB-INF/classes
内包含rebel.xml
这有助于JRebel查找由IDE更新的类的位置。 rebel.xml
are absolute and correct, no placeholders (eg ${rebel.workspace.path}
) are used - if placeholders are used, then they must be defined by passing eg -Drebel.workspace.path=/path/to/workspace
to JAVA_OPTS
. rebel.xml
中的路径是绝对正确的,不使用任何占位符(例如${rebel.workspace.path}
)-如果使用占位符,则必须通过传递它们来定义它们,例如-Drebel.workspace.path=/path/to/workspace
到JAVA_OPTS
-Drebel.workspace.path=/path/to/workspace
。 If done correctly, JRebel will also log a line such as JRebel: Monitoring directory '/path/in/rebelxml'
in server log. JRebel: Monitoring directory '/path/in/rebelxml'
。 If you still can't get it to work after these steps, contact support@zeroturnaround.com. 如果在完成这些步骤后仍无法正常工作,请联系support@zeroturnaround.com。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.