0

既存のワークライトプロジェクトをインポートしましたが、ビルドすると次のエラーが発生します。ご意見をお聞かせください

エラー

cvc-complex-type.2.4.a:要素'usage'で始まる無効なコンテンツが見つかりました。'{"http://www.worklight.com/application-descriptor":shell、 "http://www.worklight.com/application-descriptor":mobileDeviceSSO、 "http://www.worklight.com / application-descriptor ":loginPopupHeight、" http://www.worklight.com/application-descriptor ":loginPopupWidth、" http://www.worklight.com/application-descriptor ":iphone、" http:// www .worklight.com / application-descriptor ":android、" http://www.worklight.com/application-descriptor ":blackberry、" http://www.worklight.com/application-descriptor ":ipad、" http ://www.worklight.com/application-descriptor ":windowsPhone、" http://www.worklight.com/application-descriptor ":mobileWebApp、" http:

XMLファイル

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <application xmlns="http://www.worklight.com/application-descriptor" id="TApp" platformVersion="5.0">
        <displayName>TApp</displayName>
        <description>TApp</description>
        <author>
            <name>application's author</name>
            <email>application author's e-mail</email>
            <homepage>http://mycompany.com</homepage>
            <copyright>Copyright My Company</copyright>
        </author>
        <height>460</height>
        <width>320</width>
        <mainFile>index.html</mainFile>
        <thumbnailImage>common/images/thumbnail.png</thumbnailImage>
        <usage requireAuthentication="never"/>
        <iphone bundleId="com.ATTApp" version="1.0">
            <worklightSettings include="true"/>
            <security>
                <testAppAuthenticity enabled="false"/>
                <encryptWebResources enabled="false"/>
                <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
            </security>
        </iphone>
        <android version="1.0">
            <worklightSettings include="true"/>
            <security>
                <testAppAuthenticity  enabled="false"/>
                <encryptWebResources enabled="false"/>
                <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
                <publicSigningKey>Replace this text with the public key of the certificate with which you sign the APK. For details see the Worklight Developer's Reference Guide.</publicSigningKey>
            </security>
        </android>
        <mobileWebApp version="1.0"/>
        <worklightServerRootURL>http://${local.IPAddress}:8080</worklightServerRootURL> </application>
4

1 に答える 1

0

Worklightバージョンをアップグレードしても、古いapplication-descriptor.xmlファイルが残っているようです。最新のスキーマに準拠するようにファイルを変更する必要があります。最も基本的な解決策は、この行を消去することです。また、ここでアプリケーションのサンプルを見ることができます-https://www.ibm.com/developerworks/mobile/worklight/getting-started/

于 2012-11-20T08:35:45.940 に答える