Hi Tim,
First thing is to make sure you're not picking up 1.0 libraries. Using
the scripts in jwsdp-1.2/jaxb/bin should assure you of that. If you're
still having trouble, please send along your schema.
Regards,
--
Ed Mooney |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201 |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive |fruit flies like
781-442-0459 |Burlington, MA 01803 |a banana. Groucho
Tim Davidson wrote:
> Compiling my schema using JAXB RI 1.0.1, I get the following exception. It works ok with jaxb 1.0.
>
> can anyone help?
>
> thanks in advance.
>
> --------
> parsing a schema...
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
> Caused by: java.lang.NoSuchMethodError: com.sun.codemodel.JDefinedClass._implements(Ljava/lang/Class;)Lcom/sun/codemodel
> /JDefinedClass;
> at com.sun.tools.xjc.reader.xmlschema.cs.DefaultClassBinder.elementDecl(DefaultClassBinder.java:110)
> at com.sun.xml.xsom.impl.ElementDecl.apply(ElementDecl.java:137)
> at com.sun.tools.xjc.reader.xmlschema.cs.ClassSelector._bindToClass(ClassSelector.java:167)
> at com.sun.tools.xjc.reader.xmlschema.cs.ClassSelector.bindToType(ClassSelector.java:147)
> at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.populate(BGMBuilder.java:242)
> at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.buildContents(BGMBuilder.java:209)
> at com.sun.tools.xjc.reader.xmlschema.BGMBuilder._build(BGMBuilder.java:109)
> at com.sun.tools.xjc.reader.xmlschema.BGMBuilder.build(BGMBuilder.java:78)
> at com.sun.tools.xjc.GrammarLoader.annotateXMLSchema(GrammarLoader.java:398)
> at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:125)
> at com.sun.tools.xjc.GrammarLoader.load(GrammarLoader.java:71)
> at com.sun.tools.xjc.Driver.run(Driver.java:192)
> at com.sun.tools.xjc.Driver._main(Driver.java:82)
> at com.sun.tools.xjc.Driver.access$000(Driver.java:48)
> at com.sun.tools.xjc.Driver$1.run(Driver.java:62)
>