2011-05-28 24 views
5

doğrulayarak XML hata, aşağıdaki Valditation Hata gösterilmiştir: "Google'a dağıtma defteri":appengine-web.xml - Benim App Engine Project dağıtmak çalıştığınızda

bir iç hata oluştu. C: \ Users \ Adrian \ çalışma alanı \ Ziyaretçi defteri \ savaş \ 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 İşte

benim appengine-web.xml edilir:

<?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> 

kimse Doğrulama Hatası görebilir mi? Appengine-web.xsd dosyasını göndereyim mi?

cevap

6

yalnızca 1 static-files öğeniz olabilir. Birden çok include varsa, hepsini bir static-files öğesinin içine yerleştirmelisiniz. Böylece

doğru appengine-web.xml olmalıdır:

<?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> 
+0

oh^u^u^u^u^aptal bir hata ... çok fazla üretin! – Adrian