1 Reply Latest reply on Jul 10, 2012 4:18 PM by Sham HC

    JAXB annotation not working in CQ

    mosa27

      Hi.

       

      I have created a class which makes use of annotation '@XMLEnumValue' (javax.xml.bind.XMLEnumValue).

      When i compile this java class from CRXDE (right click src, then build->compile), it compiles with no error.

      When i build the bundle from CRXDE(right click bnd file, then build->Build Bundle), it pops up error:

      error.jpg

       

      Code snippet at this line:

      "

      @XmlType(name = "CadConversionElementType", namespace = "http://schemas.datacontract.org/2004/07/Muhimbi.DocumentConverter.WebService.Data")

      @XmlEnum

      public enum CadConversionElementType {

       

          @XmlEnumValue("AllLayouts")  // Line 37, 31

          ALL_LAYOUTS("AllLayouts"),

          @XmlEnumValue("NamedLayout")

          NAMED_LAYOUT("NamedLayout"),

      "

       

      CQ version: 5.4

      System JAVA version: 1.6

      CQ JAVA version: 1.6

      CRXDE Installed JRE: 1.6

       

      Regards,

      Monika