Hi,

to use individual date time formats you have to use a field handler
similar to what I've told you for calendar before.

Regards
Ralf


poijava schrieb:
> Thanks. I saw this after I made my post and it works very well. The only
> problem is that the parser seems to fall over when trying to parse a date in
> the format "04-Feb-2008" stating "Bad DateTime format" date is too short. 
> 
> Can you help? 
> 
> 
> Thanks again. 
> 
> 
> Ralf Joachim-2 wrote:
>> Hi,
>>
>> java.util.Calendar is not directly supported by Castor, you have to use
>> a custom field handler for this to work. Take a look at:
>>
>> http://castor.codehaus.org/xml-fieldhandlers.html
>> http://castor.codehaus.org/xml-mapping.html#Sample-1:-Defining-a-custom-field-handler
>>
>> Regards
>> Ralf
>>
>>
>> poijava schrieb:
>>> Hi I am getting the following error when trying to unmarshall a
>>> java.util.Calendar objed
>>>
>>> <date>04-Feb-2008</date>    -->     private Calendar date;
>>>
>>>
>>> Java schema change: Class java.util.Calendar can no longer be
>>> constructed:
>>> Class org.exolab.castor.mapping.loader.Types can not access a member of
>>> class java.util.Calendar with modifiers "protected"
>>>
>>> Can anyone please help?
>> -- 
>>
>> Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
>> Ralf Joachim
>> Raiffeisenstraße 11
>> 72127 Kusterdingen
>> Germany
>>
>> Tel.   +49 7071 3690 52
>> Mobil: +49 173 9630135
>> Fax    +49 7071 3690 98
>>
>> Internet: www.syscon.eu
>> E-Mail: [EMAIL PROTECTED]
>>
>> Sitz der Gesellschaft: D-72127 Kusterdingen
>> Registereintrag: Amtsgericht Stuttgart, HRB 382295
>> Geschäftsleitung: Jens Joachim, Ralf Joachim
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
>>
> 

-- 

Syscon Ingenieurbüro für Meß- und Datentechnik GmbH
Ralf Joachim
Raiffeisenstraße 11
72127 Kusterdingen
Germany

Tel.   +49 7071 3690 52
Mobil: +49 173 9630135
Fax    +49 7071 3690 98

Internet: www.syscon.eu
E-Mail: [EMAIL PROTECTED]

Sitz der Gesellschaft: D-72127 Kusterdingen
Registereintrag: Amtsgericht Stuttgart, HRB 382295
Geschäftsleitung: Jens Joachim, Ralf Joachim

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to