当我试图部署App项目时,将显示以下Valditation:
:“将用户手册部署到谷歌”期间发生了内部错误。验证C:\Users\Adrian\workspace\Guestbook\war\WEB-INF\appengine-web.xml与C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle_1.5.0.r36v201105092302\appengine-java-sdk-1.5.0\docs\appengine-web.xsd之间的XML错误
以下是我的appengine-web.xml:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>adrianschaeferandroid</application>
<version>1</version>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties" />
</system-properties>
<static-files>
<include path="/favicon.ico" />
</static-files>
<static-files>
<include path="stylesheets/main.css" />
</static-files>
</appengine-web-app>有人能看到验证错误吗?我要发appengine-web.xsd吗?
发布于 2011-05-28 13:02:43
只能有一个static-files元素。如果您有多个include,那么应该将它们全部嵌套在一个static-files元素中。
因此,正确的appengine-web.xml应该是:
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>adrianschaeferandroid</application>
<version>1</version>
<system-properties>
<property name="java.util.logging.config.file" value="WEB-INF/logging.properties" />
</system-properties>
<static-files>
<include path="/favicon.ico" />
<include path="stylesheets/main.css" />
</static-files>
</appengine-web-app>发布于 2012-05-19 07:54:11
如果您使用app.yaml文件配置应用程序GAE/Java应用程序以同时生成web.xml和appengine-web.xml:https://developers.google.com/appengine/docs/java/configyaml/appconfig_yaml,就会发现避免这样的错误要容易得多。
https://stackoverflow.com/questions/6161694
复制相似问题