I have been trying to generate JAXB server side artifacts from WSDL and have 
been getting the following errors.  I was able to use the same WSDLS to 
generate ADB and XMLBEANS bindings successfully.  I have tried jaxbri which 
fails immediately after reading in the imported files and jaxme which gets a 
bit further and actually generates some of the code but still fails with a 
CodeGenerationException.  Is there any way to get a little more information out 
of wsdl2java with regard to what might be the problem?  I would like to be 
completely JAX-WS compliant but this is not possible I think without being able 
to generate JAXB artifacts.    


Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:265)
        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
        at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcepti
on
        at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRI
Extension.java:112)
        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGener
ationEngine.java:218)
        ... 2 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBRI
Extension.java:101)
        ... 3 more
Caused by: java.lang.RuntimeException: java.lang.NullPointerException
        at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGene
rationUtility.java:192)
        ... 8 more
Caused by: java.lang.NullPointerException
        at org.apache.axis2.jaxbri.CodeGenerationUtility$1.resolveEntity(CodeGen
erationUtility.java:107)
        at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:
268)
        at com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl.sta
rtElement(AbstractReferenceFinderImpl.java:78)
        at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
ce)
        at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unkn
own Source)
        at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
own Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
        at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour
ce)
        at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:
366)
        at com.sun.tools.xjc.reader.internalizer.DOMForest.parse(DOMForest.java:
246)
        at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.parseSchema(SchemaC
ompilerImpl.java:131)
        at org.apache.axis2.jaxbri.CodeGenerationUtility.processSchemas(CodeGene
rationUtility.java:161)
        ... 8 more

Regards,
Bill

Reply via email to