You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Te...@HVBIS.com on 2008/04/07 11:21:20 UTC
wsdl2java -d jaxbri throws Exception
Hi
following command
wsdl2java -uri C:\Temp\new\wsgen\BankSearch.wsdl -o
C:\Temp\new\wsdl2java -t -u -d jaxbri
throws following output with exception:
InvocationTargetException and NullPointerException,
if I leave the -d option and let it use adb than the generation
completes correctly.
Why? Any ideas?
Cheers
Tezcan
below is the failure with -d jaxbri:
------------------------------------------------------------------------
--
C:\download\axis2-1.3\bin>wsdl2java -uri
C:\Temp\new\wsgen\BankSearch.wsdl -o C:
\Temp\new\wsdl2java -t -u -d jaxbri
Using AXIS2_HOME: C:\download\axis2-1.3
Using JAVA_HOME: C:\APPS\jdk\j2sdk1.5.0_04
Retrieving schema at 'BankSearch_schema1.xsd', relative to
'file:/C:/Temp/new/ws
gen/'.
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
below is the successful generation without -d jaxbri:
------------------------------------------------------------------------
--
C:\download\axis2-1.3\bin>wsdl2java -uri
C:\Temp\new\wsgen\BankSearch.wsdl -o C:
\Temp\new\wsdl2java -t -u
Using AXIS2_HOME: C:\download\axis2-1.3
Using JAVA_HOME: C:\APPS\jdk\j2sdk1.5.0_04
Retrieving schema at 'BankSearch_schema1.xsd', relative to
'file:/C:/Temp/new/ws
gen/'.
[WARN] Type {http://bankservice}bankSearchResponse missing!
C:\download\axis2-1.3\bin>