1

バージョン 0.8.4 とバージョン 0.9.1 の間で、ウィジェットのパーサーに何か変更がありましたか? 最近更新したところ、.wgt ファイルをアップロードできなくなりました。次のエラーが表示されます: Error uploading the following components: TestWidget.wgt: Error parsing config.xml descriptor file: No valid parser found.

まったく同じファイルが WireCloud v 0.8.4 でも問題なく動作します。この問題は、オペレーターのアップロード時には発生せず、問題なく動作します。

0.8.4 で動作する config.xml は次のとおりです。

<?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>newbird@ecample.com</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>
4

1 に答える 1

1

ええ、この形式は WireCloud 0.7.0 で非推奨になり (そのバージョンのリリース ノートは提供していませんが、申し訳ありません)、WireCloud 0.9.1で削除されました。

次のコマンドを実行して (WireCloud 0.9.0 または以下を使用)、ウィジェットの説明をこの形式から現在の形式に変換できます。

$ wirecloud-admin convert -d xml config.xml config.xml
于 2016-05-17T11:55:07.787 に答える