2012-07-09 107 views
5

我已经为Eclipse Indigo安装了Google App Engine插件。我用自动生成的示例代码创建了新的Web应用程序项目。创建项目时,我没有选中“使用Google Web Toolkit”。这里描述我的项目如下:Google App Engine HTTP Error 403Google App Engine NO_MODIFICATION_ALLOWED_ERR Eclipse构建错误

构建项目时,我收到以下错误:

Errors occurred during the build.

Errors running builder 'Google App Engine Project Change Notifier' on project 'Test

NO_MODIFICATION_ALLOWED_ERR: An attempt is made to modify an object where modifications are not allowed.

我可以在本地主机运行servlet的,没有任何问题,但是当我部署应用程序,它不起作用。日志显示:

Uncaught exception from servlet

java.lang.UnsupportedClassVersionError: test/Test : Unsupported major.minor version 51.0

回答

1

问题是由Java 7引起的.Google App Engine仅支持Java 6。

+4

我肯定用java 6,但我仍然有同样的问题。我尽可能去除了我的eclipse juno安装并重新安装了所有东西。当我升级到GAE 1.7.1时,这开始发生。当我在eclipse构建器中禁用Google App Engine项目更改通知程序时停止,但不确定此构建程序是否必要。 – 2012-08-27 14:36:56

+1

这是一个答案......但如何解决它本来不错。 – cmroanirgo 2012-12-08 12:34:59

1

我想这可能与this issue从线程建议的解决方法为我工作(粘贴在这里为方便起见):

As a temporary workaround, navigate to Project Properties -> Builders and disable the "Google App Engine Change Notifier" builder.