共享记录-1.1.jar;无法读取zip文件条目 [英] commons-logging-1.1.jar; cannot read zip file entry

查看:139
本文介绍了共享记录-1.1.jar;无法读取zip文件条目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从GIT导入了一个GWT项目,但是当我运行maven安装
时,它说

  .m2 \repository\commons-logging\commons-logging\1.1\commons测井-1.1.jar;无法读取zip文件条目

如果我只是运行我的应用程序,我得到这个

  \git\my-Search-Engine\qsse\war}:java.lang.NoClassDefFoundError:com / google / inject / servlet / GuiceServletContextListener 

我试图找出方法,我找到的一个解决方案是将guice-servlet -3.0从构建路径\qsse\war\webinf\lib



但是如果我这样做,我开始得到这个异常

  ava.lang.NoClassDefFoundError:com / google / inject / Injector 

任何想法如何解决此问题

解决方案

对于第一个问题:



您可以在WinZip或其他压缩工具中打开它。



尝试删除 jar 并重新构建。让Maven下载一个新的。



对于第二个Questin:

您使用哪个GWT版本?

p>


  1. 确认所需的JAR包含在 classpath 中,包括 guice .jar guice-servlet-3.0.jar

此外, guice-servlet-3.0.jar 不应该在您的启动配置 classpath中。它必须位于您的项目类路径中。


I have imported a GWT project from GIT , but when i run maven Install it says

.m2\repository\commons-logging\commons-logging\1.1\commons-logging-1.1.jar; cannot read zip file entry

and if i simply run my application , i get this

\git\my-Search-Engine\qsse\war}: java.lang.NoClassDefFoundError: com/google/inject/servlet/GuiceServletContextListener

I tried to find out the way , one solution i found was to move the guice-servlet-3.0 from build path to \qsse\war\webinf\lib

but if i do that i start getting this exception

  ava.lang.NoClassDefFoundError: com/google/inject/Injector 

any idea how can i resolve this

解决方案

For first question:

Can you open it in a WinZip or other compression tool.

Try deleting that jar and build again. Let Maven download it a fresh.

For Second Questin:

Which GWT version are you using ?

  1. Verify that the required JAR is in your classpath including guice.jar and guice-servlet-3.0.jar

And also, guice-servlet-3.0.jar should not be in you launch configuration classpath. It has to be in your project classpath.

这篇关于共享记录-1.1.jar;无法读取zip文件条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆