JAXB annotation not working in CQ


hi.

 

i have created class makes use of annotation '@xmlenumvalue' (javax.xml.bind.xmlenumvalue).

when compile java class crxde (right click src, build->compile), compiles no error.

when build bundle crxde(right click bnd file, build->build bundle), pops error:

error.jpg

 

code snippet @ 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

hi monika,

 

it known issue [1] qdox, fixed in next release. temporary workaround use build tool maven outside of cq build jar file.

 

[1]   http://jira.codehaus.org/browse/jibx-414

 

thanks,

sham



More discussions in Archived Spaces


adobe

Comments