eclipse使用jrebel

eclipse使用jrebeljrebel 注:以下都是网上收集整理的,可能不全,仅限于学习和研究使用。 JavaRebel是一个工具,主要是用于热加载,比如说在Tomcat之类的应用服务器中,更新了class或者某些资源文件,使用了JRebel之后,就不需要重新启动应用服务器。这里有一点先声明一下,本文只是激活成功教程仅限于学习和研究使用,勿用于其他用途。下载地址:http://www.zeroturnar…

大家好,又见面了,我是你们的朋友全栈君。

jrebel

 

注:以下都是网上收集整理的,可能不全,仅限于学习和研究使用。

 

JavaRebel是一个工具,主要是用于热加载,比如说在Tomcat之类的应用服务器中,更新了class或者某些资源文件,使用了JRebel之后,就不需要重新启动应用服务器。这里有一点先声明一下,本文只是激活成功教程仅限于学习和研究使用,勿用于其他用途。

下载地址:http://www.zeroturnaround.com/jrebel/download/     下载下来的是一个Zip压缩包,打开之后会发现一个jrebel.jar,这就是其最重要的运行包了。其他都是一些文档和插件。

PS. rebel出了免费社区版,参见:

http://zeroturnaround.com/blog/free-version-of-jrebel-social/

一、安装包准备

1. Jrebel.jar 核心JAR包,http://zeroturnaround.com/jrebel/prev-releases/ 上面进行下载。

安装 JRebel Eclipse插件进入 Help » Install New Software… 并且输入下面的URL :http://www.zeroturnaround.com/update-site/

2. update-site.zip jrebel Eclipse插件http://www.zeroturnaround.com/update-site/update-site.zip
eclipse使用jrebel
 

二、配置Eclipse

(1)、Eclipse中配置 window->preference->tomcat->JVM Settings,加入以下参数

-Drebel.spring_plugin=true 支持spring框架

-Drebel.aspectj_plugin=true 支持aspectj

-Drebel.struts2_plugin=true 支持strut2

-javaagent:D:/jrebel.jar 这里自行修改jrebel.jar正确的路径

-Drebel.dirs=F:/Project/test/WebContent/WEB-INF/classes,F:/Project/test/WebContent

-Dmyproject.root=D:/project/operamasks/workspaces/xxxx -Drebel.disable_update=true

-noverify

[(-javaagent 下载的jrebel.jar的路径,-Drebel.dirsc 项目的class文件的路径, -Dmyproject.root的值表示当前的需要热部署的工程路径)]

 

三、安装Eclipse插件

安装JRebel Eclipse 插件

Help » Install New Software

然后通过 如下 URL :http://www.zeroturnaround.com/update-site/

如果要离线下载的话,可以通过下载离线包的方式进行:http://www.zeroturnaround.com/update-site/update-site.zip

/**************************************************

jrebel 下载:

官网地址:http://www.zeroturnaround.com/jrebel/ (试用30天)

激活成功教程地址:http://dl.dbank.com/c086engzbb

**************************************************/

————————————————————–

eclipse使用jrebel
 

 

 

四、配置完上面后,还需要关闭tomcat的应用程序的reloadable设置

<Context path=”/hello”  reloadable=”
false

” docBase=”D:/project”  />

JReble log

如果你想选中Enable debug logging ,需要配置日志信息。点击Lauch JRebel Agent Settings ,可以选中Show JRebel message in standard output(在控制台输出打印),并且Log to file并且输出到日志文件中。    如果不设置日志路径,则可能会提示找不到日志的信息。点击Open JRebel agent,查看jrebel.properties,jrebel.info目录。

参考

【http://zeroturnaround.com/software/jrebel/learn/eclipse-jrebel-tutorial/】

【https://zeroturnaround.com/software/jrebel/download/installing-jrebel-plugin-for-eclipse/】

【http://manuals.zeroturnaround.com/jrebel/】

有更加好的激活成功教程

【http://blog.csdn.net/sensisoft/article/details/20010615】

激活成功教程jrebel方法

【http://www.blogjava.net/usherlight/archive/2009/10/15/298449.html】

【http://www.sdandroid.com/2014/02/jrebel_6430.html】

 

JRebel: Starting logging to file: C:\Users\Administrator\.jrebel\jrebel.log
2015-03-18 23:27:34 JRebel:  
2015-03-18 23:27:34 JRebel:  #############################################################
2015-03-18 23:27:34 JRebel:  
2015-03-18 23:27:34 JRebel:  JRebel Legacy Agent 6.1.1 (201503111717)
2015-03-18 23:27:34 JRebel:  (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  Over the last 1 days JRebel prevented
2015-03-18 23:27:35 JRebel:  at least 0 redeploys/restarts saving you about 0 hours.
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  Licensed to wei huang
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  License type: evaluation
2015-03-18 23:27:35 JRebel:  Valid from: March 18, 2015
2015-03-18 23:27:35 JRebel:  Valid until: April 1, 2015
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  You are using an EVALUATION license.
2015-03-18 23:27:35 JRebel:  Days left until license expires: 14
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  To extend your evaluation or purchase a license,
2015-03-18 23:27:35 JRebel:  contact sales@zeroturnaround.com.
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  If you think this is an error, contact support@zeroturnaround.com.
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel:  #############################################################
2015-03-18 23:27:35 JRebel:  
2015-03-18 23:27:35 JRebel: WARN 
2015-03-18 23:27:35 JRebel: WARN You have multiple 'D:\software\eclipse\eclipse-jee-kepler-SR2-win32-x86_64\eclipse\plugins\org.zeroturnaround.eclipse.embedder_6.1.1.RELEASE-201503121801\jrebel\jrebel.jar's as -javaagent in your server startup script
2015-03-18 23:27:35 JRebel: WARN 
三月 18, 2015 11:27:36 下午 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_55\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program Files (x86)\Common Files\NetSarang;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Java\jdk1.7.0_55\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Git\cmd;D:\software\apache-maven-3.0.5/bin;C:\Program Files\MySQL\MySQL Server 5.1\bin;.
三月 18, 2015 11:27:36 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin
警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:tv_mobile' did not find a matching property.
三月 18, 2015 11:27:36 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-bio-8080"]
三月 18, 2015 11:27:36 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["ajp-bio-8009"]
三月 18, 2015 11:27:36 下午 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 1057 ms
三月 18, 2015 11:27:36 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service Catalina
三月 18, 2015 11:27:36 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/7.0.53
2015-03-18 23:27:39 JRebel: Directory 'D:\software\eclipse\workspace2\tv_mobile\target\classes' will be monitored for changes.
2015-03-18 23:27:39 JRebel: Directory 'D:\software\eclipse\workspace2\tv_mobile\target\m2e-wtp\web-resources' will be monitored for changes.
2015-03-18 23:27:39 JRebel: Directory 'D:\software\eclipse\workspace2\tv_mobile\src\main\webapp' will be monitored for changes.
三月 18, 2015 11:27:45 下午 org.apache.catalina.core.ApplicationContext log
信息: No Spring WebApplicationInitializer types detected on classpath
2015-03-18 23:27:45 JRebel-Log4j: Monitoring Log4j configuration in 'file:/D:/software/eclipse/workspace2/tv_mobile/target/classes/log4j.properties'.
三月 18, 2015 11:27:45 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2015-03-18 23:27:45 JRebel-Spring: Monitoring Spring bean definitions in 'D:\software\eclipse\workspace2\tv_mobile\target\classes\beans.xml'.
2015-03-18 23:27:48 JRebel-Spring: Monitoring properties in 'D:\software\eclipse\workspace2\tv_mobile\target\classes\jdbc.properties'.
初始化字典
Hibernate: 
    /* criteria query */ select
        this_.id as id1_5_0_,
        this_.description as descript2_5_0_,
        this_.groupId as groupId3_5_0_,
        this_.key2 as key4_5_0_,
        this_.value as value5_5_0_ 
    from
        t_dictionary this_ 
    order by
        this_.groupId asc,
        this_.key2 asc
三月 18, 2015 11:27:57 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'spring2'
2015-03-18 23:27:57 JRebel-Spring: Monitoring Spring bean definitions in 'D:\software\eclipse\workspace2\tv_mobile\target\m2e-wtp\web-resources\WEB-INF\spring2-servlet.xml'.
三月 18, 2015 11:27:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
三月 18, 2015 11:27:58 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
三月 18, 2015 11:27:58 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 21843 ms

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/150272.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • Word2vec原理浅析及gensim中word2vec使用

    Word2vec原理浅析及gensim中word2vec使用本文转载于以下博客链接:Word2vec原理浅析:https://blog.csdn.net/u010700066/article/details/83070102;gensim中word2vec使用:https://www.jianshu.com/p/b779f8219f74如有冒犯,还望谅解!Word2vec原理浅析及tensorflow实现Word2Vec是由Google的M…

    2022年5月13日
    38
  • Schrodinger分子动力模拟软件与UltraLAB建模工作站配置探讨

    Schrodinger分子动力模拟软件与UltraLAB建模工作站配置探讨Schrodinger2018-1是Schrodinger软件的最新版本,也是目前计算化学领域的领导者,能够为生命科学和材料研究提供软件解决方案和服务。该软件并不是独立,而是一个软件合集包,由maestro、maesrtoelements、materialsscience、bioluminate、knime、canvas、mmshare、aacg、Glide、Impact、Jagua…

    2022年5月25日
    45
  • servlet的工作原理_servlet的作用

    servlet的工作原理_servlet的作用1.Servlet容器Servlet是运行Servlet容器的基础之上的,所以了解Servlet工作原理就得先从Servlet容器说起,以Tomact为例:在Tomact容器等级中,Context容器直接管理Servlet在容器中的包装类Wrapper,每个Context对应一个Web项目,所以Context如何运行直接影响到Servlet的运行。1

    2022年10月4日
    4
  • 原码补码反码转换「建议收藏」

    原码补码反码转换「建议收藏」一、机器数和真值在学习原码、反码和补码之前,需要先了解机器数和真值的概念。1、机器数一个数在计算机中的二进制表示形式,叫做这个数的机器数。机器数是带符号的,在计算机用一个数的最高位存放符号,正数为0,负数为1.比如,十进制中的数+2,计算机字长为8位,转换成二进制就是00000010。如果是-2,就是10000010。那么,这里的00000010和10000010就是机器数。2、真值机器数的第一位是符号位,后边才是真正的数值,所以机器数的形式值就不等于真正的数

    2025年12月5日
    6
  • PHP开发WebaPP教程,开发webapp 需要什么技术基础吗? html5 js css3 PHP 除了这些还需要什么?…

    PHP开发WebaPP教程,开发webapp 需要什么技术基础吗? html5 js css3 PHP 除了这些还需要什么?…开发webapp需要什么技术基础吗?或者有没有开发webapp视频教程或者资料求推荐下回复内容:开发webapp需要什么技术基础吗?或者有没有开发webapp视频教程或者资料求推荐下数据库:比如mysqlSQL语言:对数据库编程的语言web容器:比如apache,nginx你还需要了解一些项目管理工具,如maven,svn,git等另外一些基础知识,如http、https协议等话说ap…

    2022年6月19日
    27
  • 免费大数据平台有哪些?

    免费大数据平台有哪些?

    2021年6月14日
    187

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号