Error -
I get following error while running the sample xml provided below :- 
 Element "usage" has no mapping that extends com.ext.ConPoint
  
 ------ Sample xml --------
 <ClassA>
  <conPt>
   <usage>Text</usage>
  </conPt>
 </ClassA>
   
  
-------- Binding --------------- 
 <mapping class="com.ext.ClassA" abstract="true">
  <structure name="conPt" field="conPt" map-as="com.ext.ConPoint" 
usage="optional"/>
 </mapping>
  
 <mapping class="com.ext.ConPoint" abstract="true" ordered="false">
  <value style="element" name="usage" field="usage" usage="optional" />
  <value style="element" name="typeName" field="type" usage="optional" />
  <value style="element" name="persistenceKey" field="persistenceKey"  
usage="optional" />
 </mapping>
   
  Solution - 
Just remove the abstract="true" attribute in the ConPoint. Since the conPT 
field in ClassA is a ConPoint, it cannot instantiate a ConPoint object.
  Hope this helps to anyone facing same problem.
Apurva


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  A new smarter way of sharing your world with family and friends! Its secured, 
so only people you invite will have access to your stuff. 
http://www.myfamilycapsule.com/ 
   
   
   
   
   

       
---------------------------------
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to