IllegalArgumentException when invoking a service task requiring a date

Description

When invoking a web-service requiring a date defined as xsd:date, we get the following error:

It is due to uncompatible types: Activiti defines dates as java.util.Date, and JaxB XJC (invoked by activiti-cxf to call web-services) generated XMLGregorianCalendar for xsd:date, by default.

To avoid conversions, activiti-cxf should be configured to force JaxB XJC to generate java.util.Date instead of XMLGregorianCalendar using a JaxB binding similar as:

see http://forums.activiti.org/content/illegalargumentexception-when-invoking-service-task-requiring-date

Environment

None

Assignee

Tijs Rademakers

Reporter

Christophe Deneux

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure