简体   繁体   English

如何解决:无法处理 Jar 条目

[英]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

I solved the same problem by simply replacing the icu4j-2.6.1.jar with latest jar我通过简单地用最新的 jar 替换 icu4j-2.6.1.jar 解决了同样的问题

click here to download latest version of jar点击这里下载最新版本的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.所以,在我们的例子中,它不是来自直接依赖,而是来自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.

相关问题 如何解决GRAVE:无法处理Jar输入 - How to solve GRAVE: Unable to process Jar entry 无法处理来自 Jar 的 jar 条目 - Unable to process jar entry from Jar 我收到此错误无法处理来自 jar 的 Jar 条目 [module-info.class] - I am getting this error Unable to process Jar entry [module-info.class] from jar 我收到此错误严重:无法处理来自 Jar 的 Jar 条目 [module-info.class] - I am getting this error SEVERE: Unable to process Jar entry [module-info.class] from Jar 在Tomcat上部署应用程序会出现严重错误:无法处理注释的Jar条目 - Deploying application on Tomcat gives an error SEVERE: Unable to process Jar entry for annotations 严重:无法在 Tomcat 7 &amp;&amp; Java 8 中处理 Jar 条目 [module-info.class] - SEVERE: Unable to process Jar entry [module-info.class] in Tomcat 7 && Java 8 无法在.jar中打开嵌套条目 - Unable to open nested entry inside .jar 如何解决无法驱动../selenium-server-standalone-3.141.59.jar的模块描述 - How to solve unable to drive module description for ../selenium-server-standalone-3.141.59.jar 尝试将外部jar作为进程执行时无法访问jar文件 - Unable to access jar file when trying to execute external jar as Process 如何解决itextpdf-5.3.0.jar中的ExceptionConverter? - How to solve ExceptionConverter in itextpdf-5.3.0.jar?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM