I have written a Maven 2 Jibx plugin that works across multi-modules.  It will bind to classes that are across dependent modules.

I am having a weird problem with a deserializer that converts shorts.  I represent dates as the number of days since a certain date as a short.  My serializer-deserializer converts to/from a date string and a short.  Here is the error I get:

Deserializer class com.GDate not found for converting default value

Here is the bind file:
<binding>
  <format type = "short" label="GDateFormat" serializer="com.GDate.formatXMLDate" deserializer="com.GDate.parseXMLDate"/>
  <mapping name = "SimpleObject" class=" com.SimpleObject">
    <value name = "StartDate" field="startDate" format="GDateFormat" usage = "optional"/>
  </mapping>
</binding>

If I remove the usage = "optional" entry, the error goes away.  If I use default="0", it fails.  If I run the same binding from an ant script, it works fine.  If I use any other serializer-deserializer I have written that returns an object, it works ok.

Have any ideas what the problem is?

 Thanks,
 
Frank Mena
 

Reply via email to