annousk2 / ga-api-java-samples

Automatically exported from code.google.com/p/ga-api-java-samples
0 stars 0 forks source link

No XML schema association in appengine-web-xml files #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a project in Eclipse
2. Locate appengine-web.xml
3. Right-click it ans select "Validate"

It returns "No grammar constraints (DTD or XML schema) detected for the 
document.   appengine-web.xml   /myApp/war/WEB-INF  line 1  XML 
Problem" and the file is always flagged by a yellow attention marker. 

It should enumerate the errors found in the file. Schema validation is a 
powerful tool that should be better leveraged. Instead of reporting an XML 
error at the end of the deployment process. 

This is GAE 1.3.0 in Galileo under Windows XP

Original issue reported on code.google.com by juan.la...@gmail.com on 30 Dec 2009 at 4:24

GoogleCodeExporter commented 9 years ago
I tried the properties below, no luck:

<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app 
xmlns="http://appengine.google.com/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="C:\eclipse\plugins\com.google.appengine.eclipse.sdkbundle.1.
3.0_1.3.0.v200912141120\appengin
e-java-sdk-1.3.0\docs\appengine-web.xsd">
    <application>ar-com-tecnosol-delivery</application>
    <version>1</version>
</appengine-web-app>

Original comment by juan.la...@gmail.com on 30 Dec 2009 at 4:27

GoogleCodeExporter commented 9 years ago
Following the instructions in
http://help.eclipse.org/help32/index.jsp?
topic=/org.eclipse.wst.xsdeditor.doc.user/topics/tvdtschm.html
I added the schema to the catalog and it worked fine. 
Only I hardcoded the 1.3.0 file location and it will flop after installing a 
new 
version. Ideally a reference to a file on the web is needed. 
Is there one such file published by Google?

Original comment by juan.la...@gmail.com on 30 Dec 2009 at 6:22