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

孤街浪徒 提交于 2019-12-25 00:09:22

问题


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


回答1:


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.




回答2:


For the second question, can you also move the other guice jars to webinf\lib ? (guice-3.0.jar should be missing)



来源:https://stackoverflow.com/questions/10083482/commons-logging-1-1-jar-cannot-read-zip-file-entry

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!