[英]How to solve : Unable to Process Jar entry
I am getting this error on console.我在控制台上收到此错误。 Can anyone please help me out (I am working on a Spring MVC project with GWT and maven)任何人都可以帮助我(我正在使用 GWT 和 maven 开发一个 Spring MVC 项目)
SEVERE: Unable to process Jar entry [com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class] from Jar [jar:file:/C:/Users/ayush/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/transconnect/WEB-INF/lib/icu4j-2.6.1.jar!/] for annotations org.apache.tomcat.util.bcel.classfile.Cl严重:无法处理来自 Jar [jar:file:/C:/Users/ayush/workspace/.metadata/.plugins/org.eclipse.wst 的 Jar 条目 [com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class] .server.core/tmp1/wtpwebapps/transconnect/WEB-INF/lib/icu4j-2.6.1.jar!/] 注释 org.apache.tomcat.util.bcel.classfile.Cl
So, in our case it didn't come from a direct dependency but rather from an indirect injection of the com.google.code.findbugs
library.所以,在我们的例子中,它不是来自直接依赖,而是来自com.google.code.findbugs
库的间接注入。
You will know where it comes from by running mvn dependency:tree
for your project (supposing you're using maven)您将通过为您的项目运行mvn dependency:tree
来了解它的来源(假设您正在使用 maven)
Solution for us was to use a newer version of the findbugs library (3.0.0) which appeared to be much leaner in terms of dependency content.我们的解决方案是使用较新版本的 findbugs 库 (3.0.0),它在依赖项内容方面似乎更加精简。
我猜 jar 中缺少LocaleElements_zh__PINYIN.class
文件尝试替换jar 。
com.ibm.icu.impl.data.LocaleElements_zh__PINYIN is a ill-formed class file inside the 2.6.1 icu4j jar file. com.ibm.icu.impl.data.LocaleElements_zh__PINYIN 是 2.6.1 icu4j jar 文件中格式错误的类文件。 Override or use the newer icu4j jar files, 55.0+.覆盖或使用较新的 icu4j jar 文件 55.0+。
First open the file icu4j-2.6.1.jar with any zip vievwer (7Zip for example).首先使用任何 zip 查看器(例如 7Zip)打开文件 icu4j-2.6.1.jar。 Check if it contains the com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class file.检查它是否包含 com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class 文件。
I get this error when icu4j-xxx.jar is included in my class path.当 icu4j-xxx.jar 包含在我的类路径中时,我收到此错误。 Why don't you try to remove it from your WEB-INF/lib?为什么不尝试从 WEB-INF/lib 中删除它?
对我来说,将 tomcat 升级到tomcat-8.0.37
解决了这个问题。
this is work for me:这对我来说是工作:
<dependency>
<groupId>com.ibm.icu</groupId>
<artifactId>icu4j</artifactId>
<version>4.6</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.