怎么jar包中读取配置文件jrebel.jar文件

JRebel配置手册_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
JRebel配置手册
上传于||文档简介
&&e​c​l​i​p​s​e​ ​ ​ ​热​部​署​配​置​手​册
阅读已结束,如果下载本文需要使用5下载券
想免费下载本文?
下载文档到电脑,查找使用更方便
还剩4页未读,继续阅读
你可能喜欢30222人阅读
java 学习研究(32)
工具使用(29)
最近更新到jrebel6.2.1了,我自己做了个技术分享的微信公众号(茶爸爸),有心的朋友可以来这里一起学习
云盘下载链接:
-javaagent:/Users/chababa/Desktop/dev/applications/jrebel_6.2.1-agent-crack/jrebel.jar
-Xbootclasspath/p:/var/folders/8y/s9s8bfjj0p9_t01p9w0kcwsm0000gp/T//rebelboot.jar
-Drebel.generate.show=true
-Drebel.spring_plugin=true
-Drebel.aspectj_plugin=true
-Drebel.cxf_plugin=true
-Drebel.logback_plugin=true
-Drebel.mybatis_plugin=true
--------------------------------------------------------------
开放链接:/s/1gd9xkEv
新增内容:mvn jrebel 下调试找不到源码
目前我的做法是使用Remote Debug方式,下面我来说如何配置:
1、新建Maven Build-&JRE-VM agruments里填写以下内容,注意javaagent路径需要和本地路径一致,红色部分就是配置开启dwp远程配置。
-javaagent:/Users/chababa/Desktop/dev/applications/jrebel/jrebel.jar
-Xbootclasspath/p:jrebel-bootstrap.jrebel.jar
-Drebel.generate.show=true
-Drebel.spring_plugin=true
-Drebel.aspectj_plugin=true
-Drebel.cxf_plugin=true
-Drebel.logback_plugin=true
-Drebel.mybatis_plugin=true
-Xdebug -piler=NONE -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
2、Eclipse - Run - Debug Configurations - Remote Java Application - New - 选择project - 配置Configurations Properties 里面的 Host(本机调试:127.0.0.1) 和 Port(对应黄色字体8787)
3、配置好后,先运行mvn jetty:run 把web服务启动起来,然后,在选择刚才配置的debug remote启动,这样你在调试所有的jar包源码就可以跟踪进去了。
----------------------------------------------------------------------------------------------------
注意地方,如果是mvn项目,需要注意下面的配置
现在开始配置:
1、关注cha-baba微信公众号,发送“jrebel”即可收到下载地址,下载是百度云盘地址。
2、将下载的jrebel6.0.0-crack.zip解压,
jrebel6.0.0的jar包和破解文件假设文件解压在D:/jrebel步骤:
1.eclipse下载jrebe插件,可以去市场中下载&&&&&&
2.打开eclipse的window-preference-jrebel,打开advance选项卡,把jar包的路径指向D:/jrebel/jrebel.jar&&&&&
3.用CMD打开DOS窗口,输入cd /d D:/jrebel/bin进入目录,输入activate.cmd D:/jrebel/jrebel.lic破解密钥&&&&&&
4.如果eclipse没有tomca插件要先下载,然后在window-preference-tomcat-jvm setting中的append to jvm parameter新增5条配置:
-javaagent:D:/jrebel/jrebel.jar //jar在硬盘存放的路径
-noverify-Drebel.struts2_plugin=true&
//struts2-Drebel.aspectj_plugin=true //看自己需求要不要
-Drebel.spring_plugin=true //spring
======================================启动提示配置成功============================================
20:26:18 JRebel: &
20:26:18 JRebel:& #############################################################
20:26:18 JRebel: &
20:26:18 JRebel:& JRebel Legacy Agent 6.0.0 ()
20:26:18 JRebel:& (c) Copyright ZeroTurnaround AS, Estonia, Tartu.
20:26:18 JRebel: &
20:26:18 JRebel:& Over the last 30 days JRebel prevented
20:26:18 JRebel:& at least 3 redeploys/restarts saving you about 0.1 hours.
20:26:18 JRebel: &
20:26:18 JRebel:& Over the last 63 days JRebel prevented
20:26:18 JRebel:& at least 4 redeploys/restarts saving you about 0.2 hours.
20:26:18 JRebel: &
20:26:18 JRebel:& Licensed to anonymous-user
20:26:18 JRebel: & with the following restrictions:&
20:26:18 JRebel: & ####### Cracked by anonymous-user, For FUN! Unlimited! Enjoy! ######
20:26:18 JRebel: &
20:26:18 JRebel:& License type: perpetual
20:26:18 JRebel: &
20:26:18 JRebel: &
20:26:18 JRebel:& #############################################################
20:26:18 JRebel: &
*****************************
更改java文件后,jrebel编译并自动加载到jvm
##################################################################################
20:26:54 JRebel: Reloading class 'org.demo.DemoController'.
20:26:54 JRebel-Spring: Reconfiguring bean 'demoController' [org.demo.DemoController]
20:26:54,511 INFO& [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped &{[/test],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}& onto public
java.lang.String org.demo.DemoController.test()
20:26:54,512 INFO& [org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping] - Mapped &{[/test1],methods=[],params=[],headers=[],consumes=[],produces=[],custom=[]}& onto public
java.lang.String org.demo.DemoController.test1()
上述参数的相关说明:
&-agentpath:&&这个是你使用的JRebel Agent版本的lib包的路径(路径后缀不要写成jrebel.jar),注意其中的斜线方向。
-Drebel.dirs&:这个是你要监控的项目的&class&文件路径
-Drebel.disable_update: 设为true,就不会联网检查更新
-DJAVA_OPTS:&这个选项不是必须,当内存溢出的时候或其它特殊情况下才需要设置它的参数大小。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:449875次
积分:5583
积分:5583
排名:第3041名
原创:119篇
转载:163篇
评论:122条
(6)(27)(32)(11)(6)(9)(3)(4)(3)(21)(16)(3)(3)(19)(32)(8)(1)(1)(1)(2)(1)(3)(1)(1)(3)(2)(2)(4)(1)(4)(2)(2)(1)(2)(2)(4)(10)(17)(6)(2)(2)(1)(4)<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
您的访问请求被拒绝 403 Forbidden - ITeye技术社区
您的访问请求被拒绝
亲爱的会员,您的IP地址所在网段被ITeye拒绝服务,这可能是以下两种情况导致:
一、您所在的网段内有网络爬虫大量抓取ITeye网页,为保证其他人流畅的访问ITeye,该网段被ITeye拒绝
二、您通过某个代理服务器访问ITeye网站,该代理服务器被网络爬虫利用,大量抓取ITeye网页
请您点击按钮解除封锁&当前位置:&>& >
Jrebel + eclipse + tomcat 用于热部署 的实践总结
Jrebel + eclipse + tomcat 用于热部署 的实践总结
发布时间: 23:47:06&&&编辑:
1、用eclipse 下载 http:
update zeroturnaround com update-site2、接着替换 your eclipse location
org zeroturnaround ec
1、用eclipse 下载 /update-site
2、接着替换 your eclipse&& location\plugins\org.zeroturnaround.eclipse.embedder_6.0.0.RELEASE-\jrebel ,即eclipse所在目录的plugins 替换jrebel里面的jar包。
3、去eclipse 中注册jrebel ,替换文件是jrebel.lic,提示注册成功
以上部分是注册部分
1、双击servers 下面的某个tomcat服务,点击overview,需要配置如下参数:
a、 Server Locations选择 User Tomcat installation
b、 Publishing中选择 Never publish automatically
c、 Timeouts中 Start设置成 1000或更大
d、 JRebel Integration中两个复选框都选中
e、选择Open lauch configuration,在(x)=Arguments选项卡中增加 配置VM arguments参数:
-Drebel.struts2-plugin=true
-Drebel.spring_plugin=true
-Xms256m -Xmx256m -XX:MaxNewSize=256m -XX:MaxPermSize=256m
2、双击servers中下面某个tomcat服务,点击modules,添加你需要的module。 需要add external web module.注意document base 需要填写的是程序的webapp的位置,而非tomcat下编译的位置。如:
your project location\xxxxxx\WebApps
Path为要访问的程序web名
3、其次程序上右击选择jrebel,advanced properties.当然了,需要enable 一下jrebel。可以重新生成一下rebel文件。
4、至此,程序可以达到热部署了。
以上是使用插件模式。(一般没什么用)
-agent:D:\xxxx\xxxxx\jrebel.jar
-Drebel.dirs=your project location\xxxx\WebApps\WEB-INF\classes,your project location\xxxx\WebApps\WEB-INF\classes\config,your project location\xxxxx\WebApps
-Drebel.spring_plugin=true
-Drebel.aspectj_plugin=true
-Drebel.struts2_plugin=true
-Drebel.hibernate_plugin=true
-Drebel.hibernate_validator_plugin=true
或者把这些加到的启动参数里面
最后要注意的是tom的moles中的某个module 的auto reload参数要配置成disabled
此方法经实践可用
本文来自:
本文链接:
相关热词搜索:4745人阅读
JRebel安装使用说明
开发JAVA或对JAVA感兴趣的朋友,可以参考下。
开发环境下,tomcat对热布署的支持还是比较弱,致使开发过程中浪费大量时间在重起服务上。为了提高开发效率,决定引入Jrebel,它对热布署的支持相对比较全面。
虽然Jrebel官方号称使用它不存在内存泄漏问题,但是占用一定的资源是肯定的,因此不考虑在正式环境下使用热布署。Jrebel除了支持Tomcat还包括Jetty、Resin、Weblogic等等,本文要讲的是tomcat&#43; eclipse&#43; spring&#43; struts2的环境。在使用Jrebel后,期望看到开发人员早上开机启动一次tomcat后就够了。
PS. rebel出了免费社区版,参见:
一、安装包准备
1. .jar 核心JAR包, 上面进行下载。
2. update-site.zip jrebel Eclipse插件
二、配置Eclipse
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正确的路径
如果你要支持更多的框架,可以参考官网
如果你要了解更多的参数配置,可以参考官网
三、安装Eclipse插件
Help >> Install New Software
然后通过 如下 URL :
如果要离线下载的话,可以通过下载离线包的方式进行:
如果不使用默认的jrebel需指定其JAR包的路径 :
四、配置 JReBel.xml
右键项目 点击属性就可以看到JRebel选项:
选择配置文件的路径即可。
五、启动tomcat,成功安装
最后启动tomcat 就会看到控制台输出相关信息:
JRebel-Spring: Monitoring Spring bean definitions in 'jar:file:/E:/WorkSpace/JIUCOOL/WebContent/WEB-INF/lib/org.springframework.conf.jar!/spring/config/default/applicationContext.xml'.
JRebel-Spring: Monitoring Spring bean definitions in 'E:\WorkSpace\JIUCOOL\WebContent\WEB-INF\config\dataContext.xml'.
JRebel-Spring: Monitoring Spring bean definitions in 'E:\WorkSpace\JIUCOOL\WebContent\WEB-INF\config\serviceContext.xml'.
JRebel-Spring: Monitoring properties in 'E:\WorkSpace\JIUCOOL\WebContent\WEB-INF\classes\config.properties'.
说明JREBEL已经配置成功。
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:38508次
排名:千里之外
转载:13篇
评论:26条
(1)(1)(1)(1)(1)(1)(1)(1)(1)(1)(3)(1)(4)(1)

我要回帖

更多关于 jrebel.jar myeclipse 的文章

 

随机推荐