java吧 关注:1,252,519贴子:12,738,003
  • 5回复贴,共1

JRebel 热部署启动成功,但是没有效果

只看楼主收藏回复

可以启动项目,也可以运行,但是修改后台代码之后并不能实现热部署
通过maven来启动的jrebel和tomcat,输出日志如下:
JRebel: Starting logging to file: C:\Users\admin\.jrebel\jrebel.log
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: A newer version '7.0.1' is available for download
2016-12-31 21:36:47 JRebel: from http://zeroturnaround.com/software/jrebel/download/
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: #############################################################
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: JRebel Agent 6.4.1 (201603151610)
2016-12-31 21:36:47 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: Over the last 28 days JRebel prevented
2016-12-31 21:36:47 JRebel: at least 999 redeploys/restarts saving you about 0.3 hours.
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: License acquired from License Server: http://idea.lanyus.com
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: Licensed to edx1.
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: The following plugins are disabled at the moment:
2016-12-31 21:36:47 JRebel: * AspectJ Plugin (set -Drebel.aspectj_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Eclipse RCP Plugin (set -Drebel.eclipse_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Groovy Plugin (set -Drebel.groovy_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * JAXB Plugin (set -Drebel.jaxb_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * JDBC Plugin (set -Drebel.jdbc_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Jetty Servlet Context Plugin (set -Drebel.jetty_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring AOP Plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring Bean Plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring Boot Plugin (set -Drebel.spring_boot_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring Context Plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring Core plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring MVC plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring ORM Plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring OXM Plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Spring Security plugin (set -Drebel.spring_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Weblogic EJB Plugin (set -Drebel.weblogic_plugin=true to enable)
2016-12-31 21:36:47 JRebel: * Websphere EJB Plugin (set -Drebel.websphere_plugin=true to enable)
2016-12-31 21:36:47 JRebel:
2016-12-31 21:36:47 JRebel: #############################################################
2016-12-31 21:36:47 JRebel:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building EpointFrame 9.2.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ EpointFrame >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ EpointFrame ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
[INFO]
[INFO] --- jrebel-maven-plugin:1.1.6:generate (generate-rebel-xml) @ EpointFrame ---
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ EpointFrame ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 48 source files to F:\workspace\eclipseMars4.5\EpointFrame\target\classes
2016-12-31 21:36:58 JRebel: Directory 'F:\workspace\eclipseMars4.5\EpointFrame\target\classes' will be monitored for changes.
2016-12-31 21:36:58 JRebel: Directory 'F:\workspace\eclipseMars4.5\EpointFrame\src\main\webapp' will be monitored for changes.
JRebel的配置:




忽略红字...

rebel.xml配置:
<?xml version="1.0" encoding="UTF-8"?>
<application generated-by="maven"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com"
xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_1.xsd">
<classpath>
<dir name="F:/workspace/eclipseMars4.5/EpointFrame/target/classes">
</dir>
</classpath>
<web>
<link target="/">
<dir name="F:/workspace/eclipseMars4.5/EpointFrame/src/main/webapp">
</dir>
</link>
</web>
</application>


IP属地:中国香港1楼2016-12-31 22:06回复
    说老实话,我的也会出现没有效果的情况,而且现在最新版7.0.12还有情况就是反复出现未激活的提示,每次打开IDE就要求激活,而且有时候更新了Java文件,还没有效果


    IP属地:四川2楼2017-07-25 17:57
    回复
      你是新点的??我是沈阳分公司的。同样也遇到该问题了。


      IP属地:辽宁3楼2017-10-20 16:09
      回复(2)
        重新生成工作空间应该就好了


        IP属地:中国香港4楼2017-10-23 17:51
        回复