wsgen fails, if I add a jaxb custom tag (<jxb:class name="MyClass"/>) to an
element definition in the schema referenced by the wsdl. Using this tag I
would like to customize the jaxb binding (according to the jaxb docs).
Without this tag wsgen does't complain. Also I don't have any problems to
run xjc directly (without wsgen) on the schema containing the tag. But with
the tag present, wsgen fails. Any ideas whats wrong here?

java.lang.NullPointerException
        at
com.sun.tools.xjc.generator.bean.field.AbstractField.writeXmlElementAnnot
        at
com.sun.tools.xjc.generator.bean.field.AbstractField.annotateElement(Abst
        at
com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractFie
        at
com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(A
        at
com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.jav
        at
com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.jav
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
        at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc
        at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst
        at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
        at
com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(Gene
        at
com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(Defa
        at
com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGene
        at
com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGene
        at
com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:
        at
com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.jav
        at com.sun.tools.xjc.model.Model.generateCode(Model.java:226)
        at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl
        at
com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl
        at
org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSuppor
        at
org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:151)
-- 
View this message in context: 
http://www.nabble.com/wsgen-fails-with-customized-schema-using-jaxb-binding-tf3486831.html#a9735084
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to