未能将生成的JSP java文件编译到应用程序引擎Google Glass

未能将生成的JSP java文件编译到应用程序引擎Google Glass,java,google-app-engine,jsp,google-mirror-api,google-glass,Java,Google App Engine,Jsp,Google Mirror Api,Google Glass,我正在为谷歌玻璃开发玻璃器皿。我想看看是否可以将Glassware上传到AppEngine,所以我得到了支持AppEngine的最新版本(位于GitHub上,此处:)。我更改了API代码和我的App Engine应用程序名称,并通过命令提示符使用Eclipse&appcfg.cmd上的Google App Engine SDK将其部署到App Engine。部署时,我遇到以下错误: Failed to compile the generated JSP java files to App Eng

我正在为谷歌玻璃开发玻璃器皿。我想看看是否可以将Glassware上传到AppEngine,所以我得到了支持AppEngine的最新版本(位于GitHub上,此处:)。我更改了API代码和我的App Engine应用程序名称,并通过命令提示符使用Eclipse&appcfg.cmd上的Google App Engine SDK将其部署到App Engine。部署时,我遇到以下错误:

Failed to compile the generated JSP java files to App Engine
我得到的完整错误如下(这是它的命令提示符版本):

警告:注解处理器com.goo支持的源版本“RELEASE_6”
gle.appengine.tools.compilation.DataStoreCallbackProcessor“小于-source”
1.7'
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:7:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.Contact;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:11:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.TimelineItem;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:12:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.Subscription;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:13:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.Attachment;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:7:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.Contact;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:11:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.TimelineItem;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:12:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.Subscription;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:13:错误:包com.google.api.services.mirror.model不存在
导入com.google.api.services.mirror.model.Attachment;
^
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:69:错误:找不到符号
Contact Contact=MirrorClient.getContact(凭证,MainServlet.Contact\u名称
);
^
符号:班级联系
位置:类索引
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:69:错误:无法访问联系人
Contact Contact=MirrorClient.getContact(凭证,MainServlet.Contact\u名称
);
^
找不到com.google.api.services.mirror.model.Contact的类文件
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:71:错误:找不到符号
List timelineItems=MirrorClient.listItems(凭证,3L).getI
tems();
^
符号:类时间线项目
位置:类索引
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:71:错误:无法访问TimelineListResponse
List timelineItems=MirrorClient.listItems(凭证,3L).getI
tems();
^
com.google.api.services.mirror.model.TimelineListResponse的类文件不是f
声音
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
a:74:错误:找不到符号
列表订阅=MirrorClient.listSubscriptions(凭据)。
getItems();
^
符号:班级订阅
位置:类索引
C:\Users\Family3\AppData\Local\Temp\1382233159652-0\org\apache\jsp\index\u jsp.jav
Index.jsp位于此处:

出于某种原因,mirror.model jar旁边有一个奇怪的源代码图标。其他罐子都没有。下面是它的一张照片:我可能从另一个地方得到这个罐子吗

此外,有人建议添加

<packaging>war</packaging>
战争
到pom.xml。这也没能解决问题,它和我以前的错误一样


我不知道我为什么会犯这个错误。JSP文件似乎有问题,但这是Glass团队发布的版本。也许我需要改变一些东西?也许是一些罐子的问题?谢谢你的帮助。

我有同样的问题,我通过添加解决了

<packaging>war</packaging>

如果您仍然有问题,请告诉我。

它没有解决任何问题。您可以尝试使用jdk6吗?从错误日志中,我看到您正在使用jdk7。您的问题解决了吗?@Karthi Nope。你找到解决方案了吗?事实上,我的一个jsp文件有问题。该特定jsp文件中的一个库导入失败。在开发模式下运行应用程序时,在访问该页面之前,您不会遇到此错误。但当您将应用程序部署到服务器时,它将编译所有jsp文件,若有任何问题,它将通过错误来解决。解决方案是在开发模式下访问所有jsp文件,然后找到错误并修复它,然后部署到AppEngine。
<packaging>war</packaging>
<modelVersion>4.0.0</modelVersion>
<groupId>com.google</groupId>
<artifactId>glass-java-starter</artifactId>
<version>0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
mvn clean install
appcfg.sh update target/glass-java-starter-0.1-SNAPSHOT