Adr*_*ian 5 java xml google-app-engine
当我尝试部署我的App Engine项目时,会显示以下Valditation Error:
在"将Guestbook部署到Google"期间发生内部错误.XML错误验证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 \文档\ AppEngine上,web.xsd
这是我的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>
Run Code Online (Sandbox Code Playgroud)
任何人都可以看到验证错误?我可以发布appengine-web.xsd吗?
你只能有1个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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3529 次 |
| 最近记录: |