I forgot one binding definition, the one with the problem. ;)
<mapping name="categoryTask" value-style="element" class="CategoryTask">
<value name="startTaskId" field="startTask" ident="ref"/>
</mapping>
With class:
public class CategoryTask { // Does not extend the abstracttask
private CriteriumTask startTask;
}
And this definition goes wrong with the message.
With regards,
Nick Stolwijk
Nick Stolwijk wrote:
> I've a problem with my jibx binding.
>
> Jibx gives me the message:
>
> No ID definitions for compatible type; on value element at (line 25, col
> 60, in process-binding.xml)
>
> We are still using jibx 1.1.3 because the maven2 plugin and repository
> are not yet updated with the newest jibx. I wonder if this is the
> problem. If someone could confirm it, I will be glad.
>
> Some code:
>
> public abstract class AbstractTask {
> private String id;
> }
>
> public class CriteriumTask extends AbstractTask {
>
> }
>
> The binding:
>
> <mapping abstract="true" class="AbstractTask">
> <value style="attribute" name="taskId" field="id" ident="def"/>
> </mapping>
>
> <mapping name="criterionTask" value-style="element"
> class="CriteriumTask" extends="AbstractTask">
> <structure map-as="AbstractTask"/>
> </mapping>
>
> This is a simplified example (removed packagenames and other fields and
> methods.
>
> Can someone help me?
>
> With regards,
>
> Nick Stolwijk
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> jibx-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users