Topic
7 replies Latest Post - ‏2012-10-12T17:19:44Z by icw
SystemAdmin
SystemAdmin
2327 Posts
ACCEPTED ANSWER

Pinned topic Where can be find the "application-descriptor"'s schema?

‏2012-08-03T03:27:47Z |
When I open the application-descriptor.xml, it said warning:the DTD or XML schema reference could be missing or misspelled.
And the application-descriptor.xml head descriptor like this:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!-- Licensed Materials - Property of IBM
5725-G92 (C) Copyright IBM Corp. 2006, 2012. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or
disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
<!-- Attribute "id" must be identical to application folder name -->
<application id="HelloWorklight" platformVersion="5.0" xmlns="http://www.worklight.com/application-descriptor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

hope someone help me!
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: Where can be find the "application-descriptor"'s schema?

    ‏2012-08-03T05:10:54Z  in response to SystemAdmin
    Hello,

    Make sure you right-click application-descriptor.xml and choose 'Open With > Text Editor'.

    If your application is called 'HelloWorklight' you should have this in your application-descriptor.xml:
    https://gist.github.com/3244592
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: Where can be find the "application-descriptor"'s schema?

      ‏2012-08-03T05:43:52Z  in response to SystemAdmin
      Thanks, When I use Application-descriptor Editor to open the "application-descriptor.xml" the design page said warning: no DTD or XML schema,and the "application-descriptor.xml"'s content like this:

      <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
      <!-- Licensed Materials - Property of IBM
      5725-G92 (C) Copyright IBM Corp. 2006, 2012. All Rights Reserved.
      US Government Users Restricted Rights - Use, duplication or
      disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->
      <!-- Attribute "id" must be identical to application folder name -->
      <application id="HelloWorklight" platformVersion="5.0" xmlns="http://www.worklight.com/application-descriptor" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <displayName>HelloWorklight</displayName>
      <description>HelloWorklight</description>
      <author>
      <name>Ming.He</name>
      <email>heming@yapulan.com</email>
      <homepage>http://www.yapulan.com</homepage>
      <copyright>Copyright @yapulan</copyright>
      </author>
      <height>460</height>
      <width>320</width>
      <mainFile>HelloWorklight.html</mainFile>
      <thumbnailImage>common/images/thumbnail.png</thumbnailImage>
      <usage requireAuthentication="never"/>
      <iphone bundleId="com.HelloWorklight" 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>
      <blackberry version="1.0"/>
      <ipad bundleId="com.HelloWorklight" version="1.0">
      <worklightSettings include="true"/>
      <security>
      <testAppAuthenticity enabled="false"/>
      <encryptWebResources enabled="false"/>
      <testWebResourcesChecksum enabled="false" ignoreFileExtensions="png, jpg, jpeg, gif, mp4, mp3"/>
      </security>
      </ipad>
      <windowsPhone version="1.0">
      <uuid>1d062c73-3ec1-45e5-9ac1-ec25d20bca57</uuid>
      </windowsPhone>
      <mobileWebApp version="1.0"/>
      <vista version="1.0"/>
      <dashboard version="1.0"/>
      <air version="1.0"/>
      <igoogle version="1.0"/>
      <facebook version="1.0"/>
      <embedded version="1.0"/>
      <worklightServerRootURL>http://${local.IPAddress}:8080</worklightServerRootURL>
      </application>
  • IdanAdar
    IdanAdar
    741 Posts
    ACCEPTED ANSWER

    Re: Where can be find the "application-descriptor"'s schema?

    ‏2012-08-03T06:20:44Z  in response to SystemAdmin
    Please provide more information, as described here: http://www.ibm.com/developerworks/forums/thread.jspa?threadID=448316&tstart=0

    Idan Adar
    QA Engineer
    IBM Worklight Mobile Platform
    • SystemAdmin
      SystemAdmin
      2327 Posts
      ACCEPTED ANSWER

      Re: Where can be find the "application-descriptor"'s schema?

      ‏2012-08-03T06:41:52Z  in response to IdanAdar
      Operation System: Windows 64 bit
      Java: Oracle, version1.6, 64 bit

      If working on an Application Server:
      Server type: WAS/Tomcat/Liberty
      Worklight jar: version
      Worklight plug-in (with which the project was built): version

      Installation type: Developer
      Eclipse: Eclipse IDE for Java Developers, Indigo Service Release 2
      Worklight plug-in (with which the project was built): 5.0
      Environment details: iOS/Android/BlackBerry/WindowsPhone/Mobile Web/Facebook/iGoogle/Air/Dashboard/Windows Gadgets, version, device/emulator

      More information:
      Module_03_-_Writing_Your_First_Application.pdf
      HelloWorklight - Application Descriptor
      I can't be edited with Design, it(Design page) said warning:the grammar for this document could not be found, the DTD or XML Schema reference could be missing or misspelled.Please switch to the source view to verify that the reference is correct and that the grammer path is accesible.
    • icw
      icw
      2 Posts
      ACCEPTED ANSWER

      Re: Where can be find the "application-descriptor"'s schema?

      ‏2012-10-12T17:19:44Z  in response to IdanAdar
      I am having this same issue, start a new worklight project, immediately see the error in the application descriptor.

      WinXP // i5 // Eclipse Indigo // Worklight 5.0.3 //ClearCase Remote Client.

      1. Start eclipse
      2. Start new worklight project
      3. immediately see error.

      Is there a link of what a correct application-descriptor.xml file looks like, here's mine that was created directly by worklight and which then says it is bad:
      <?xml version="1.0" encoding="UTF-8"?>

      <!-- Licensed Materials - Property of IBM
      5725-G92 (C) Copyright IBM Corp. 2006, 2012. All Rights Reserved.
      US Government Users Restricted Rights - Use, duplication or
      disclosure restricted by GSA ADP Schedule Contract with IBM Corp. -->

      <!-- Attribute "id" must be identical to application folder name -->
      <application id="appNinja4" platformVersion="5.0.2"
      xmlns="http://www.worklight.com/application-descriptor"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

      <displayName>appNinja4</displayName>
      <description>appNinja4</description>
      <author>
      <name>application's author</name>
      <email>application author's e-mail</email>
      <copyright>Copyright My Company</copyright>
      <homepage>http://mycompany.com</homepage>
      </author>
      <height>460</height>
      <width>320</width>
      <mainFile>appNinja4.html</mainFile>
      <thumbnailImage>common/images/thumbnail.png</thumbnailImage>
      <worklightServerRootURL>http://${local.IPAddress}:8080</worklightServerRootURL>
      <!--
      Uncomment one of the following options to use a different value for the Worklight Server root URL
      <worklightServerRootURL>http://${local.hostname}:8080</worklightServerRootURL>
      <worklightServerRootURL>http://${local.fullhostname}:8080</worklightServerRootURL>
      <worklightServerRootURL>http://${local.IPAddress}:8080</worklightServerRootURL>
      -->

      <!--
      <android version="1.0">
      Uncomment and update push sender ID in order to use push notifications for android
      <pushSender key="keyTest" senderId="senderIdTest" />
      </android>
      -->
      </application>
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: Where can be find the "application-descriptor"'s schema?

    ‏2012-08-07T03:33:25Z  in response to SystemAdmin
    No one can help me?
    I see the validator in the com.ibm.worklight.editors,I find the "application-descriptor.xml" in it,and find this code in "application-descriptor.xml", as fllow:
    <customization xmlns="http://com.ibm.xwt.dde/CustomizationFile"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://com.ibm.xwt.dde/CustomizationFile CustomizationFile.xsd"
    customizationNamespace="http://www.worklight.com/application-descriptor"
    >
    So why I can't open the "application-descriptor.xml" with the Application Descriptor editor in the helloworklightproject?
    And the Design page or Source page have a warning:No grammar constraints (DTD or XML schema) detected for the document.
    Have someone can tell me?
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: Where can be find the "application-descriptor"'s schema?

    ‏2012-08-07T15:42:24Z  in response to SystemAdmin
    I'm online!