Google App Engine - 无法编译生成的JSP Java文件 [英] Google App Engine - Failed to compile the generated JSP java files

查看:100
本文介绍了Google App Engine - 无法编译生成的JSP Java文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目在本地工作正常,但试图将其部署到GAE服务器时,出现以下错误消息:

 无法更新应用程序:无法编译生成的JSP Java文件。 

这主要发生在我从Java 7切换到Java 6时,因为显然GAE不支持然而。我正在使用GAE 1.7.4,这是一个已知的问题吗?这个项目有什么问题?它是JSP内的语法吗?在我开始使用GAE 1.7.4之前,他们曾经编译过,但我不知道何时开始的确切原因。

解决方案

我一直有同样的问题,并确信存在GAE问题。但是,现在我意识到我已经更改了一些.jsp文件所引用的.java文件的名称,并且文件名未在.jsp中进行过更改。在我修复了.jsp部署中的文件名后,再次正常工作。我认为在GAE开始编译JSP文件之前,有错误的JSP文件会成功部署。另外,在本地运行时,JSP显然不会被编译,直到它们被访问,所以除非所有的JSP文件都在本地进行了测试,否则您可能不知道错误。但是如果您尝试部署,那么JSP编译失败并且部署被中止。不幸的是,没有明显的错误信息来表明发现问题的地方。


My project works fine locally, but when trying to deploy it to the GAE servers, I get the following error message:

Unable to update app: Failed to compile the generated JSP java files.

This happened mainly when I switched from Java 7 to Java 6, since apparently GAE doesn't support that yet. I am using GAE 1.7.4, is this a known problem? What is wrong with the project? Is it syntax within the JSPs? They used to compile before I starting using GAE 1.7.4, but I don't know the exact cause of when this started.

解决方案

I have been having the same problem and was convinced that there was a GAE problem. However, now I realize that I had changed the name of a .java file referenced by a couple of my .jsp files and the file name had not gotten changed in the .jsp. After I fixed the file name in the .jsp deployment worked normally again. Arrgh.

I think before GAE started compiling the JSP files, JSP files with errors would deploy successfully. Also, when running locally, the JSP are apparently not compiled until they are accessed, so unless all the JSP files are tested locally, you may not know of the error. But if you try to deploy, the JSP compilation fails and the deploy is aborted. Unfortunately, there is no sensible error message to suggest where the problem was found.

这篇关于Google App Engine - 无法编译生成的JSP Java文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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