Skip navigation
mosa27
Currently Being Moderated

JAXB annotation not working in CQ

Jul 10, 2012 5:40 AM

Tags: #cq

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:

 

 

Code snippet at this line:

"

@XmlType(name = "CadConversionElementType", namespace = "http://schemas.datacontract.org/2004/07/Muhimbi.DocumentConverter.WebS ervice.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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points