I am not sure what I am missing here. The binding.xml is as follows I am not using any namespace stuff here..

 

<!--

      Mapping file for stcdbotd Repository

      @Author : Sudhi Seshachala

      @version :$Revision:  $

-->

 

if I remove the “default” It ain’t makin difference..

 

<binding package="com.stc.stcdbeway.repository.impl" default="elements">

 

<mapping class= "java.util.HashMap" name="map"

      marshaller="org.jibx.extras.HashMapperStringToComplex" unmarshaller="org.jibx.extras.HashMapperStringToComplex"/>

 

        <mapping name="stcdbDatabaseModel" class="com.stc.stcdbeway.repository.impl.StcdbDatabaseModelImpl">

       

          <value style="attribute" name="majorVersion" field="majorVersion"/>

          <value style="attribute" name="minorVersion" field="minorVersion"/>

            <value style="attribute" name="microVersion" field="microVersion"/>

          <value style="attribute" name="name" field="name" ident="def"/>

            <value style="element" name="connectionDefinition" field="connectionDefinition"/>

           

            <structure field="tables"/>

           

        </mapping>

 

        <mapping name="stcdbTable" class="com.stc.stcdbeway.repository.impl.StcdbDBTableImpl">

                 

                  <value style="attribute" name="name" field="name" ident="def"/>

                  <value style="attribute" name="encoding" field="encoding"/>

                  <value style="attribute" name="fileName" field="fileName"/>

                  <value style="attribute" name="parent" field="parent" ident="ref"/>

                 

                  <structure field="columns" />

                  <structure field="properties" name="map"

                        marshaller="org.jibx.extras.HashMapper" unmarshaller="org.jibx.extras.HashMapper"/>

      </mapping>

 

            <mapping name="stcdbColumn" class="com.stc.stcdbeway.repository.impl.StcdbDBColumnImpl">

                  <value style="attribute" name="name" field="name"/>

                  <value style="attribute" name="fieldName" field="fieldName"/>

                  <value style="attribute" name="jdbcType" field="jdbcType"/>

                  <value style="attribute" name="scale" field="scale"/>

                  <value style="attribute" name="precision" field="precision"/>

                  <value style="attribute" name="cardinalPosition" field="cardinalPosition"/>

                  <value style="attribute" name="isPrimaryKey" field="pkFlag"/>

                  <value style="attribute" name="isForeignKey" field="fkFlag"/>

                  <value style="attribute" name="indexed" field="indexed"/>

                  <value style="attribute" name="nullable" field="nullable"/>

                 

                  <value style="attribute" name="parent" field="parent" ident="ref"/>

     

            </mapping>

           

            <mapping name="stcdbDBConnectionDefinition" class="com.stc.stcdbeway.repository.impl.StcdbDBConnectionDefinitionImpl">

                  <value style="attribute" name="name" field="name"/>

                  <value style="attribute" name="driverClass" field="driverClass"/>

                  <value style="attribute" name="url" field="url"/>

                  <value style="attribute" name="userName" field="userName"/>

                  <value style="attribute" name="password" field="password"/>

            </mapping>             

</binding>

 

 

 

 

 Root Cause: No unmarshaller for element "binding" (line 7, col 73)

        at com.stc.stcdbeway.repository.impl.MappingFactory.unmarshal(MappingFac

tory.java:53)

        at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.loadM

odelFromRepository(StcdbObjectTypeDefinitionImpl.java:341)

        at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.creat

eDatabaseModel(StcdbObjectTypeDefinitionImpl.java:291)

        at com.stc.stcdbeway.repository.impl.StcdbObjectTypeDefinitionImpl.getTa

bles(StcdbObjectTypeDefinitionImpl.java:283)

        at com.stc.stcdbeway.wizard.StcdbOTDNode.addDBTableNodes(StcdbOTDNode.ja

va:171)

 

 

Reply via email to