Hi,

I have below simple classes:

Sample.java
-------------------
public class Sample
{
        String st;
        boolean bool;
        Sample1 sample1;
        Sample1 sample2;

        Sample1 sampleArray[] = {sample1, sample2};
        String[] stringArray = {"a", "b"};
}



Sample1.java
---------------------
public class Sample1
{
        String st;
        boolean bool;
}



Now if I try to use either ***JiBX RC0***'s BindingGenerator or
****jibxtools-beta2****  BindingGenerator then I am getting below eror
 while generating binding xml for the above classes:


org.jibx.runtime.JiBXException: Base element type Sample1 must be mapped
        at 
org.jibx.binding.BindingGenerator.defineFields(BindingGenerator.java:356)
        at 
org.jibx.binding.BindingGenerator.defineStructure(BindingGenerator.java:621)
        at 
org.jibx.binding.BindingGenerator.createMapping(BindingGenerator.java:736)
        at org.jibx.binding.BindingGenerator.generate(BindingGenerator.java:888)
        at org.jibx.binding.BindingGenerator.main(BindingGenerator.java:1089)



Is this a problem that can be fixed with BindingGenerator or
handcrafing of the binding xml is the only option ?  Please suggest.



Thanks.


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to