jrebel启动的时候出现错误,请大神们指教

满增 2014-11-03 03:56:50
2014-11-03 15:54:13 JRebel: Class 'org.apache.jasper.compiler.TldLocationsCache' could not be processed by org.zeroturnaround.javarebel.integration.jasper.tagfile.TldLocationsCacheCBP@org.apache.catalina.loader.StandardClassLoader@c7c82a
2014-11-03 15:54:13 JRebel: ERROR org.zeroturnaround.bundled.javassist.CannotCompileException: [source error] no such constructor
at org.zeroturnaround.bundled.javassist.CtNewMethod.make(JRebel:78)
at org.zeroturnaround.bundled.javassist.CtNewMethod.make(JRebel:44)
at org.zeroturnaround.javarebel.integration.jasper.tagfile.TldLocationsCacheCBP.genScanDirMethod(TldLocationsCacheCBP.java:246)
at org.zeroturnaround.javarebel.integration.jasper.tagfile.TldLocationsCacheCBP.processTldScanJar(TldLocationsCacheCBP.java:303)
at org.zeroturnaround.javarebel.integration.jasper.tagfile.TldLocationsCacheCBP.process(TldLocationsCacheCBP.java:37)
at org.zeroturnaround.javarebel.integration.support.JavassistClassBytecodeProcessor.process(JRebel:62)
at com.zeroturnaround.javarebel.DL.a(JRebel:235)
at com.zeroturnaround.javarebel.DL.a(JRebel:224)
at com.zeroturnaround.javarebel.DL.a(JRebel:208)
at com.zeroturnaround.javarebel.SDKIntegrationImpl.runBytecodeProcessors(JRebel:120)
at com.zeroturnaround.javarebel.DA.transform(JRebel:46)
at java.lang.ClassLoader.defineClass(ClassLoader.java)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.apache.jasper.EmbeddedServletOptions.<init>(EmbeddedServletOptions.java:746)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:116)
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1279)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1192)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5210)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5493)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)
Caused by: compile error: no such constructor
at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atMethodCallCore2(JRebel:593)
at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atMethodCallCore(JRebel:575)
at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atNewExpr(JRebel:301)
at org.zeroturnaround.bundled.javassist.compiler.ast.NewExpr.accept(JRebel:72)
at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atCallExpr(JRebel:496)
at org.zeroturnaround.bundled.javassist.compiler.JvstCodeGen.atCallExpr(JRebel:243)
at org.zeroturnaround.bundled.javassist.compiler.ast.CallExpr.accept(JRebel:45)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atAssignCore(JRebel:859)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atVariableAssign(JRebel:792)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atDeclarator(JRebel:726)
at org.zeroturnaround.bundled.javassist.compiler.ast.Declarator.accept(JRebel:99)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:350)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:350)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.MemberCodeGen.atTryStmnt(JRebel:203)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:366)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:350)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atIfStmnt(JRebel:390)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:354)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:350)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atForStmnt(JRebel:479)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:358)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atStmnt(JRebel:350)
at org.zeroturnaround.bundled.javassist.compiler.ast.Stmnt.accept(JRebel:49)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atMethodBody(JRebel:291)
at org.zeroturnaround.bundled.javassist.compiler.CodeGen.atMethodDecl(JRebel:273)
at org.zeroturnaround.bundled.javassist.compiler.ast.MethodDecl.accept(JRebel:43)
at org.zeroturnaround.bundled.javassist.compiler.Javac.compileMethod(JRebel:168)
at org.zeroturnaround.bundled.javassist.compiler.Javac.compile(JRebel:94)
at org.zeroturnaround.bundled.javassist.CtNewMethod.make(JRebel:73)
... 35 more
...全文
2545 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
liunim90 2015-02-07
  • 打赏
  • 举报
回复
这是一个低版本jrebel的一个bug,已经在新版中被修复了 目前已知的是在5.5版本中这个bug还是存在的。 还可以使用-Drebel.jasper_plugin=false 来禁用掉jasper插件。 附上官网bug post http://zeroturnaround.com/forums/topic/jrebel-5-5-with-tomcat-7-0-50/
从eclipse和网上找到的破解包提取打包成无依赖,独立java程序可用的版本。独立java程序启动的时候增加如下的JVM参数即可 -server -Xmx512m -XX:MaxPermSize=128m -Djava.awt.headless=true -Drebel.spring_plugin=true -noverify -javaagent:D:\apps\jrebel6.4.3\jrebel.jar -Xbootclasspath/p:D:/apps/jrebel6.4.3/rebelboot.jar -Drebel.base=D:\apps\jrebel6.4.3\.jrebel -Drebel.disable_update=true D:\apps\jrebel6.4.3这个为解压后的路径,rebel.base参数指定了jrebel.lic所在的位置,因此无需拷贝到用户目录下。 控制台可以看到如下的输出表示jrebel配置成功。 2016-07-13 11:42:59 JRebel: WARN You are running JRebel using the -javaagent option on a system where -agentpath is supported. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: ############################################################# 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: JRebel Agent 6.4.3 (201604210950) 2016-07-13 11:43:02 JRebel: (c) Copyright ZeroTurnaround AS, Estonia, Tartu. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: Over the last 1 days JRebel prevented 2016-07-13 11:43:02 JRebel: at least 1 redeploys/restarts saving you about 0 hours. 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: Licensed to VIMACER (ZeroTurnaround) 2016-07-13 11:43:02 JRebel: with the following restrictions: 2016-07-13 11:43:02 JRebel: ### Hello World Cracked ### :) 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: License type: enterprise 2016-07-13 11:43:02 JRebel: Valid from: July 14, 2014 2016-07-13 11:43:02 JRebel: Valid until: August 18, 2888 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:02 JRebel: ############################################################# 2016-07-13 11:43:02 JRebel: 2016-07-13 11:43:04 JRebel: Monitoring Log4j configuration in 'xxxxx/log4j.properties'. 2016-07-13 11:43:06 JRebel: Monitoring properties in 'xxxxx\xxxx.properties'. 2016-07-13 11:43:32 JRebel: Reloading class 'xxxxx'. 2016-07-13 11:43:32 JRebel: Reconfiguring bean 'xxxxx' [xxxxx]

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧