问题
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 ?
- Verify that the required JAR is in your
classpathincludingguice.jarandguice-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