Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Model Driven Development

Avatar

Level 1

I'm trying the

Tutorial on model-driven development using Flash Builder 4 and LiveCycle DS 3

and i'm getting this error:

I'm getting an error when trying to deploy the model (using sql server 2005 express, microsoft jdbc), the error message is: 1 error(s) found when reading model 'MyModel'
ERROR MyModel: XML parse error: Error on line 1 of document:
cvc-elt.1: Cannot find the declaration of element 'model'. Nested exception:
cvc-elt.1: Cannot find the declarion of element model.

Any ideas of how to fix it?

This is the (auto generated)  model:

<model xmlns="http://ns.adobe.com/Fiber/1.0">
    <annotation name="DMS">
        <item name="datasource">java:/comp/env/jdbc/Adminware</item>
        <item name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</item>
    </annotation>

    <entity name="Productos" persistent="true">
        <annotation name="ServerProperties">
            <item name="ServerType">LCDS</item>
        </annotation>

        <annotation name="DMS">
            <item name="Table">dbo.Productos</item>
        </annotation>

        <id name="id" type="integer">
            <annotation name="DMS">
                <item name="ColumnName">ID</item>
            </annotation>
        </id>
        <property name="codigo" type="string" length="20" required="true">
            <annotation name="DMS">
                <item name="ColumnName">Codigo</item>
            </annotation>
        </property>
        <property name="codigoFabricante" type="string" length="20">
            <annotation name="DMS">
                <item name="ColumnName">Codigo_Fabricante</item>
            </annotation>
        </property>
        <property name="codigoBarras" type="string" length="20">
            <annotation name="DMS">
                <item name="ColumnName">Codigo_Barras</item>
            </annotation>
        </property>
        <property name="descripcion" type="string" length="70">
            <annotation name="DMS">
                <item name="ColumnName">Descripcion</item>
            </annotation>
        </property>
        <property name="shortDescri" type="string" length="20">
            <annotation name="DMS">
                <item name="ColumnName">Short_Descri</item>
            </annotation>
        </property>
        <property name="grupo1" type="integer">
            <annotation name="DMS">
                <item name="ColumnName">Grupo1</item>
            </annotation>
        </property>
        <property name="grupo2" type="integer">
            <annotation name="DMS">
                <item name="ColumnName">Grupo2</item>
            </annotation>
        </property>
        <property name="grupo3" type="integer">
            <annotation name="DMS">
                <item name="ColumnName">Grupo3</item>
            </annotation>
        </property>
        <property name="grupo4" type="integer">
            <annotation name="DMS">
                <item name="ColumnName">Grupo4</item>
            </annotation>
        </property>
        <property name="monedaID" type="integer">
            <annotation name="DMS">
                <item name="ColumnName">MonedaID</item>
            </annotation>
        </property>
        <property name="tasaImpuestoID" type="integer">
            <annotation name="DMS">
                <item name="ColumnName">TasaImpuestoID</item>
            </annotation>
        </property>
        <property name="precio" type="double">
            <annotation name="DMS">
                <item name="ColumnName">Precio</item>
            </annotation>
        </property>
        <property name="unidad" type="string" length="10">
            <annotation name="DMS">
                <item name="ColumnName">Unidad</item>
            </annotation>
        </property>
        <property name="foto" type="blob">
            <annotation name="DMS">
                <item name="ColumnName">Foto</item>
            </annotation>
        </property>
    </entity>
</model>

1 Reply

Avatar

Level 2

See http://forums.adobe.com/thread/455187.  Many cases are caused by copy of old WAR or old projects pointing to earlier lcds3 builds.