共享记录-1.1.jar;无法读取zip文件条目 [英] commons-logging-1.1.jar; cannot read zip file entry
问题描述
我从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>- 确认所需的JAR包含在
classpath
中,包括guice .jar
和guice-servlet-3.0.jar
此外,
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 ?
- Verify that the required JAR is in your
classpath
includingguice.jar
andguice-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屋!