2016年04月26日   码农之路   12,134 次浏览

Tomcat启动时报“Unable to process Jar entry”错误如下:
严重: Unable to process Jar entry [javassist/tools/web/BadHttpRequest.class] from Jar [jar:file:/F:/java/workspace/dg/WEB-INF/lib/javassist-3.20.0-GA.jar!/] for annotations
严重: Unable to process Jar entry [javassist/tools/rmi/StubGenerator.class] from Jar [jar:file:/F:/java/workspace/dg/WEB-INF/lib/javassist-3.20.0-GA.jar!/] for annotations
严重: Unable to process Jar entry [javassist/scopedpool/ScopedClassPool.class] from Jar [jar:file:/F:/java/workspace/dg/WEB-INF/lib/javassist-3.20.0-GA.jar!/] for annotations

 

出现这个错误的原因就是tomcat无法正确处理jar包,解决办法有两种:
1、升级tomcat
将tomcat升级到最新版本,这也是百度后找到的解决方法。这种方法还是没有理解真正报错的原因。

 

2、修改tomcat配置文件catalina.properties
打开conf目录下的catalina.properties文件,找到tomcat.util.scan.DefaultJarScanner.jarsToSkip行,可以看到这里列出了许多不需要处理的jar,在最后加上“,javassist-*.jar”即可。

赞 赏
申明:除非注明,本站文章均为原创,转载请以链接形式标明本文地址。 如有问题,请于一周内与本站联系,本站将在第一时间对相关内容进行处理。
本文地址: http://www.yyjjssnn.cn/articles/719.html

>>> Hello World <<<

这篇内容是否帮助到你了呢?

如果你有任何疑问或有建议留给其他朋友,都可以给我留言。

:wink: :twisted: :surprised: :smile: :smile9: :smile8: :smile7: :smile6: :smile5: :smile56: :smile55: :smile54: :smile53: :smile52: :smile51: :smile50: :smile4: :smile49: :smile48: :smile47: :smile46: :smile45: :smile44: :smile43: :smile42: :smile41: :smile40: :smile3: :smile39: :smile38: :smile37: :smile36: :smile35: :smile34: :smile33: :smile32: :smile31: :smile30: :smile2: :smile29: :smile28: :smile27: :smile26: :smile25: :smile24: :smile23: :smile22: :smile21: :smile20: :smile1: :smile19: :smile18: :smile17: :smile16: :smile15: :smile14: :smile13: :smile12: :smile11: :smile10: :smile0: :sad: :rolleyes1: :redface: :razz: :question: :neutral: :mrgreen: :mad: :lol: :idea: :exclaim: :evil: :eek: :cry: :cool: :confused: :biggrin: :arrow:

友情链接: 程序员刘杨 刘杨
Copyright 2003~2018 保留所有权利 | 网站地图
备案号:湘ICP备14001005号-2

湘公网安备 43011102001322号