Web应用程序(Eclipse,Spring,GWT)出错 - reportUnusedDeclaredThrownExceptionIncludeDocCommentReference [英] Error with web application (Eclipse, Spring, GWT) - reportUnusedDeclaredThrownExceptionIncludeDocCommentReference

查看:104
本文介绍了Web应用程序(Eclipse,Spring,GWT)出错 - reportUnusedDeclaredThrownExceptionIncludeDocCommentReference的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用spring 3.0.5,并尝试在eclipse中运行我的webapp。当我在tomcat中启动应用程序时,我们得到这个例外:

I am using spring 3.0.5 and try to run my webapp in eclipse. When I start the application in tomcat we get this exception:

java.lang.NoSuchFieldError: reportUnusedDeclaredThrownExceptionIncludeDocCommentReference 
at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:338) 
at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.<init>(JdtCompiler.java:174) 
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:616) 
at com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:193) 
at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:390) 
at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:275) 
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:325) 
at com.google.gwt.dev.DevModeBase$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:104) 
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:180) 
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:510) 
at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) 
at java.lang.Thread.run(Thread.java:619)

此项目通过CVS导入。它在我的电脑(Win7 64bit)正常启动,但在coleague的计算机(Win XP)上抛出高于给定的错误。我不知道是否重要。

This project is imported through CVS. It start normally on my computer (Win7 64bit), but throws above given error on coleague's computer (Win XP). I don't know if that matters at all.

任何建议?

推荐答案

这看起来像一些罐子是冲突的。

This looks like some jars are clashing.

确保您的Eclipse优先考虑GWT托管模式库。

Make sure your Eclipse gives priority to GWT hosted mode libraries.

转到您的GWT项目属性项目浏览器右键单击项目并选择属性)。然后导航到Java Build Path-> Order And Export选项卡。将GWT SDK包移动到任何其他库之上(即它应该在JRE库和任何其他可能存在的lib之上 - maven libs等)。

Go to your GWT project properties (In project Explorer right click on the project and select Properties). Then navigate to Java Build Path->Order And Export tab. Move the GWT SDK bundle above any other library (i.e. it should be above the JRE libraries and any other libs you may have - maven libs etc).

这应该可以解决你问题。

This should solve you problem.

这篇关于Web应用程序(Eclipse,Spring,GWT)出错 - reportUnusedDeclaredThrownExceptionIncludeDocCommentReference的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆