java ClassNotFoundException:com。谷歌。gwt。朱尼特。服务器杜松
如何消除此错误:
java.lang.ClassNotFoundException: com.google.gwt.junit.server.JUnitHostImpl
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:359)
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:348)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:347)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
[ERROR] at com.google.appengine.tools.development.IsolatedAppClassLoader.loadClass(IsolatedAppClassLoader.java:213)
我试过:
mvn clean
- Eclipse项目清理
但错误仍然存在
# 1 楼答案
我发现问题出在
maven-war-plugin
插件上:我从这里复制了这个配置:
https://github.com/errai/errai/blob/master/errai-jpa/demos/errai-jpa-demo-todo-list/pom.xml
作为在CapeAdwarf环境中运行Errai应用程序的假定修复程序
# 2 楼答案
我删除了:
从我的*。gwt。xml和
从我的网站。xml来解决这个问题,正如this answer所建议的那样