Non-abstract mapping must define an element name

View: New views
1 Messages — Rating Filter:   Alert me  

Non-abstract mapping must define an element name

by Sanajy kamani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi
 
I have upgraded JIBX versin from 1.1 to 1.1.6a and I started getting following error when I compile the binding definition. I'm using JDK 1.6 and maven1 plugin, maven-jibx-plugin-1.2.
 
============================================
jibx:bind:
    [echo] Running Jibx binding compiler.
Error: Non-abstract mapping must define an element name; on mapping element at (line 2, col 54, in mybinding.xml)
Error: Class name is required; on mapping element at (line 2, col 54, in mybinding.xml)
Error running binding compiler
org.jibx.runtime.JiBXException: Binding mybinding.xml is unusable because of validation errors
        at org.jibx.binding.Utility.loadBinding(Utility.java:341)
        at org.jibx.binding.Utility.loadFileBinding(Utility.java:408)
        at org.jibx.binding.Compile.compile(Compile.java:296)
        at org.jibx.binding.ant.CompileTask.execute(CompileTask.java:248)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:185)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
        at org.apache.commons.jelly.tags.core.OtherwiseTag.doTag(OtherwiseTag.java:87)
        at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
        at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
 
============================================
 
Here is my binding definition file
 
<binding>
  <mapping name="customer" class="example1.Customer">
    <structure name="person" field="person">
      <value name="cust-num" field="customerNumber"/>
      <value name="first-name" field="firstName"/>
      <value name="last-name" field="lastName"/>
    </structure>
    <value name="street" field="street"/>
    <value name="city" field="city"/>
    <value name="state" field="state"/>
    <value name="zip" field="zip"/>
    <value name="phone" field="phone"/>
  </mapping>
</binding>
 
It does has the class name defined on the mapping element. Can you please let me know what's going wrong here?
 
Thanks and regards
sk_jibx


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
jibx-users mailing list
jibx-users@...
https://lists.sourceforge.net/lists/listinfo/jibx-users