简体   繁体   中英

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)

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

I solved the same problem by simply replacing the icu4j-2.6.1.jar with latest jar

click here to download latest version of jar

Hope it works!

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.

You will know where it comes from by running mvn dependency:tree for your project (supposing you're using 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.

我猜 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. Override or use the newer icu4j jar files, 55.0+.

First open the file icu4j-2.6.1.jar with any zip vievwer (7Zip for example). Check if it contains the com/ibm/icu/impl/data/LocaleElements_zh__PINYIN.class file.

I get this error when icu4j-xxx.jar is included in my class path. Why don't you try to remove it from your 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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM