Hi -
I have the following web method, we are using JAXB binding but the
WSDL generator doesn't create a complex type for the returning(or
param) map thus wsdl2java blows up with the following exception(see
below). Xfire use to create a complex type in the WSDL for this. Do I
need a special annotation?
@WebMethod
Map<Long, MetadataVO> getMap(Map<Long, String> param);
------------------------------------------------------------------------
-------------
WSDLToJava Error : java.lang.NullPointerException
org.apache.cxf.tools.common.ToolException:
java.lang.NullPointerException
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute
(WSDLToJavaContainer.java:223)
at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool
(ToolRunner.java:84)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run
(WSDLToJava.java:102)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main
(WSDLToJava.java:171)
Caused by: java.lang.NullPointerException
at
org.apache.ws.commons.schema.XmlSchemaCollection.getElementByQName
(XmlSchemaCollection.java:372)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildMessage
(WSDLServiceBuilder.java:775)
at
org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterfaceOperation
(WSDLServiceBuilder.java:578)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildInterface
(WSDLServiceBuilder.java:561)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices
(WSDLServiceBuilder.java:251)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices
(WSDLServiceBuilder.java:154)
at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices
(WSDLServiceBuilder.java:143)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute
(WSDLToJavaContainer.java:142)
at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute
(WSDLToJavaContainer.java:215)
... 3 more
Julio Arias
Java Developer
Roundbox Global : enterprise : technology : genius
---------------------------------------------------------------------
Avenida 11 y Calle 7-9, Barrio Amón, San Jose, Costa Rica
tel: 404.567.5000 ext. 2001 | cell: 11.506.849.5981
email: [EMAIL PROTECTED] | www.rbxglobal.com
---------------------------------------------------------------------