2016-05-12 72 views
1

在0.8.4版本和0.9.1版本之間的部件的解析器中是否有所改變?我們最近更新了,現在我們不能再上傳我們的.wgt文件了。顯示以下錯誤:Error uploading the following components: TestWidget.wgt: Error parsing config.xml descriptor file: No valid parser foundWidgets的Wirecloud xml解析器

與WireCloud v 0.8.4完全相同的文件工作正常。 上傳操作員時不會出現此問題,他們工作得很好。

這裏是我們的config.xml與0.8.4工作:

<?xml version="1.0" encoding="UTF-8"?> 
<Template xmlns="http://wirecloud.conwet.fi.upm.es/ns/template#"> 
    <Catalog.ResourceDescription> 
     <Vendor>Example Com</Vendor> 
     <Name>widget.chart</Name> 
     <Version>0.0.1</Version> 
     <DisplayName>Chart</DisplayName> 
     <Author>newbird</Author> 
     <Mail>[email protected]</Mail> 
     <Description>A chart</Description> 
     <ImageURI>images/arrow.png</ImageURI> 
     <iPhoneImageURI>images/arrow.png</iPhoneImageURI> 
     <WikiURI>doc/index.html</WikiURI> 
    </Catalog.ResourceDescription> 
    <Platform.Wiring> 
     <InputEndpoint name="data" type="text" label="Data" 
         action_label="data" description="Insert data here" 
         friendcode="text"/> 
    </Platform.Wiring> 
    <Platform.Link> 
     <XHTML href="index.html" content-type="text/html" cacheable="false" 
       use-platform-style="true"/> 
    </Platform.Link> 
    <Platform.Rendering width="3" height="8"/> 
</Template> 

回答

1

呀,這種格式被廢棄的WireCloud 0.7.0(雖然我們沒有提供該版本的發行說明,對不起) ,並於WireCloud 0.9.1

刪除您可以從這種格式通過執行以下命令將您的小部件描述爲當前一個(使用WireCloud 0.9.0或波紋管):

$ wirecloud-admin convert -d xml config.xml config.xml 
+0

當試圖轉換上面列出的config.xml時,提示出現以下錯誤:'找不到處理程序「rdflib.term」 錯誤:找不到有效的解析器。 是否有示例config.xml來演示新模板?在WireCloud資源中,我只能使用舊模板找到示例。 – Newbird

+0

我的錯,我沒有仔細閱讀您的指示,必須採用wirecloud的0.8.4版本來轉換xml配置。 – Newbird