引起:java.lang.ClassNotFoundException:org.apache.commons.collections.Transformer

时间:2017-06-12 07:29:18

标签: java maven gwt

我正在研究Maven。一旦我制作了新的maven项目,然后我在原型中设置了gwt-maven-plugin然后我给了工件ID然后我按下完成按钮我在安装maven时遇到错误。< / p>

Exception in thread "html-unit client thread": java.lang.NoClassDefFoundError: org/Apache/commons/collections/Transformer
[ERROR]     at java.lang.Class.getDeclaredConstructors0(Native Method)
[ERROR]     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
[ERROR]     at java.lang.Class.getDeclaredConstructors(Class.java:2020)
[ERROR]     at com.gargoylesoftware.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration.process(AbstractJavaScriptConfiguration.java:184)
[ERROR]     at com.gargoylesoftware.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration.getClassConfiguration(AbstractJavaScriptConfiguration.java:169)
[ERROR]     at com.gargoylesoftware.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration.buildUsageMap(AbstractJavaScriptConfiguration.java:79)
[ERROR]     at com.gargoylesoftware.htmlunit.javascript.configuration.AbstractJavaScriptConfiguration.<init>(AbstractJavaScriptConfiguration.java:59)
[ERROR]     at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.<init>(JavaScriptConfiguration.java:560)
[ERROR]     at com.gargoylesoftware.htmlunit.javascript.configuration.JavaScriptConfiguration.getInstance(JavaScriptConfiguration.java:576)
[ERROR]     at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.<init>(JavaScriptEngine.java:141)
[ERROR]     at com.gargoylesoftware.htmlunit.WebClient.init(WebClient.java:237)
[ERROR]     at com.gargoylesoftware.htmlunit.WebClient.<init>(WebClient.java:211)
[ERROR]     at com.google.gwt.junit.RunStyleHtmlUnit$HtmlUnitThread.run(RunStyleHtmlUnit.java:99)
[ERROR] Caused by: java.lang.ClassNotFoundException: org.apache.commons.collections.Transformer
[ERROR]     at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
[ERROR]     at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
[ERROR]     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
[ERROR]     at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
[ERROR]     ... 13 more

0 个答案:

没有答案