Reputation: 23492
For some reason I can't get JRebel
work on external Tomcat 7
with Eclipse. 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.
Here is how I configured and deployed my project:
JRebel
on project from projects configuration tabRun locally from command line
catalina-jrebel.bat
according to generated configurationcatalina-jrebel.bat run
application manager
Now, if I modify my sample Servlet and save, nothing happens. 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
@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" %*
Upvotes: 0
Views: 1168
Reputation: 664
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.rebel.xml
are absolute and correct, no placeholders (e.g. ${rebel.workspace.path}
) are used - if placeholders are used, then they must be defined by passing e.g. -Drebel.workspace.path=/path/to/workspace
to JAVA_OPTS
. If done correctly, JRebel will also log a line such as JRebel: Monitoring directory '/path/in/rebelxml'
in server log.If you still can't get it to work after these steps, contact [email protected].
Upvotes: 1