jaxb - binding an element of type java.lang.Object -
i need modify element in xsd, unfortunately element of java.lang.object type.
i tried binding following code snippet.
<jxb:bindings> <jxb:globalbindings> <jxb:javatype name="java.lang.string" xmltype="xsd:anytype"/> </jxb:globalbindings> </jxb:bindings>
but i'm getting following error
@ org.apache.cxf.tools.common.toolerrorlistener.throwtoolexception(toolerrorlistener.java:87) @ org.apache.cxf.tools.wsdlto.wsdltojavacontainer.execute(wsdltojavacontainer.java:166) @ org.apache.cxf.tools.wsdlto.wsdltojavacontainer.execute(wsdltojavacontainer.java:412) @ org.apache.cxf.tools.common.toolspec.toolrunner.runtool(toolrunner.java:103) @ org.apache.cxf.tools.wsdlto.wsdltojava.run(wsdltojava.java:113) @ org.apache.cxf.tools.wsdlto.wsdltojava.run(wsdltojava.java:86) @ org.apache.cxf.tools.wsdlto.wsdltojava.main(wsdltojava.java:184) **caused by: com.sun.istack.saxparseexception2: undefined simple type "{http://www.w3.org/2001/xmlschema}anytype".** @ com.sun.tools.xjc.errorreceiver.error(errorreceiver.java:82) @ com.sun.tools.xjc.reader.xmlschema.bindinfo.biglobalbinding.dispatchglobalconversions(biglobalbinding.java:429) @ com.sun.tools.xjc.reader.xmlschema.bgmbuilder.promoteglobalbindings(bgmbuilder.java:257) @ com.sun.tools.xjc.reader.xmlschema.bgmbuilder.<init>(bgmbuilder.java:174) @ com.sun.tools.xjc.reader.xmlschema.bgmbuilder.build(bgmbuilder.java:114) @ com.sun.tools.xjc.modelloader.annotatexmlschema(modelloader.java:415) @ com.sun.tools.xjc.api.impl.s2j.schemacompilerimpl.bind(schemacompilerimpl.java:245) @ com.sun.tools.xjc.api.impl.s2j.schemacompilerimpl.bind(schemacompilerimpl.java:85) @ org.apache.cxf.tools.wsdlto.databinding.jaxb.jaxbdatabinding.initialize(jaxbdatabinding.java:462) @ org.apache.cxf.tools.wsdlto.wsdltojavacontainer.generatetypes(wsdltojavacontainer.java:714) @ org.apache.cxf.tools.wsdlto.wsdltojavacontainer.processwsdl(wsdltojavacontainer.java:270) @ org.apache.cxf.tools.wsdlto.wsdltojavacontainer.execute(wsdltojavacontainer.java:164)
can advice me resolve issue.
Comments
Post a Comment