You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Dan Connelly <da...@comcast.net> on 2009/04/13 00:57:26 UTC
wsdl2java fails; wsdlvalidator OK
Fairly complex schema, but Metro has no problem. Verbatim screen
below:
daniel@Sun:~/workspacePixManager/PIXManager/ejbModule>
~/apache-cxf-2.1.4/bin/wsdl2java -verbose -impl -server \
ftp://ftp.ihe.net/TF_Implementation_Material/ITI/wsdl/PIXManager.wsdl
Loading FrontEnd jaxws
...
Loading DataBinding jaxb
...
wsdl2java -verbose -impl -server
ftp://ftp.ihe.net/TF_Implementation_Material/ITI/wsdl/PIXManager.wsdl
wsdl2java - Apache CXF
2.1.4
WSDLToJava Error: Failed to create java parameter for part [body] in
method [pixManagerPRPAIN201309UV02] - this wsdl is invalid, please use
the wsdlvalidator tool to validate this wsdl
org.apache.cxf.tools.common.ToolException: Failed to create java
parameter for part [body] in method [pixManagerPRPAIN201309UV02] -this
wsdl is invalid, please use the wsdlvalidator tool to validate this wsdl
at
org.apache.cxf.tools.common.model.JavaMethod.addParameter(JavaMethod.java:156)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProcessor.addParameter(ParameterProcessor.java:112)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProcessor.processInput(ParameterProcessor.java:183)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProcessor.buildParamModelsWithoutOrdering(ParameterProcessor.java:546)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProcessor.process(ParameterProcessor.java:80)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.OperationProcessor.processMethod(OperationProcessor.java:92)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.OperationProcessor.process(OperationProcessor.java:63)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.PortTypeProcessor.process(PortTypeProcessor.java:143)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.wsdlDefinitionToJavaModel(WSDLToJavaProcessor.java:88)
at
org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.process(WSDLToJavaProcessor.java:60)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:197)
at
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:232)
at
org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
daniel@Sun:~/workspacePixManager/PIXManager/ejbModule>
~/apache-cxf-2.1.4/bin/wsdlvalidator
ftp://ftp.ihe.net/TF_Implementation_Material/ITI/wsdl/PIXManager.wsdl
Passed Validation : Valid WSDL
Re: wsdl2java fails; wsdlvalidator OK
Posted by Daniel Kulp <dk...@apache.org>.
As Glen mentioned, if you can pair down the wsdl/schema a bit and reproduce
it, that would be great. Checking with the latest CXF SNAPSHOT to see if
it's already fixed would also be great.
The USUAL cause of this error is that JAXB did not return any class
information when we queried it for a part. This is normally due to the wsdl
not being quite right (like a element name wrong in a part or similar) which
is why it suggests validating the wsdl.
Dan
On Sun April 12 2009 6:57:26 pm Dan Connelly wrote:
> Fairly complex schema, but Metro has no problem. Verbatim screen
> below:
>
>
> daniel@Sun:~/workspacePixManager/PIXManager/ejbModule>
> ~/apache-cxf-2.1.4/bin/wsdl2java -verbose -impl -server \
> ftp://ftp.ihe.net/TF_Implementation_Material/ITI/wsdl/PIXManager.wsdl
>
> Loading FrontEnd jaxws
> ...
>
> Loading DataBinding jaxb
> ...
>
> wsdl2java -verbose -impl -server
> ftp://ftp.ihe.net/TF_Implementation_Material/ITI/wsdl/PIXManager.wsdl
>
> wsdl2java - Apache CXF
> 2.1.4
>
>
>
> WSDLToJava Error: Failed to create java parameter for part [body] in
> method [pixManagerPRPAIN201309UV02] - this wsdl is invalid, please use
> the wsdlvalidator tool to validate this wsdl
>
> org.apache.cxf.tools.common.ToolException: Failed to create java
> parameter for part [body] in method [pixManagerPRPAIN201309UV02] -this
> wsdl is invalid, please use the wsdlvalidator tool to validate this wsdl
> at
> org.apache.cxf.tools.common.model.JavaMethod.addParameter(JavaMethod.java:1
>56) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProc
>essor.addParameter(ParameterProcessor.java:112) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProc
>essor.processInput(ParameterProcessor.java:183) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProc
>essor.buildParamModelsWithoutOrdering(ParameterProcessor.java:546) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.ParameterProc
>essor.process(ParameterProcessor.java:80) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.OperationProc
>essor.processMethod(OperationProcessor.java:92) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.OperationProc
>essor.process(OperationProcessor.java:63) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.PortTypeProce
>ssor.process(PortTypeProcessor.java:143) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.ws
>dlDefinitionToJavaModel(WSDLToJavaProcessor.java:88) at
> org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.WSDLToJavaProcessor.pr
>ocess(WSDLToJavaProcessor.java:60) at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer
>.java:197) at
> org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer
>.java:232) at
> org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:103)
> at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:173)
> daniel@Sun:~/workspacePixManager/PIXManager/ejbModule>
> ~/apache-cxf-2.1.4/bin/wsdlvalidator
> ftp://ftp.ihe.net/TF_Implementation_Material/ITI/wsdl/PIXManager.wsdl
> Passed Validation : Valid WSDL
--
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog
Re: wsdl2java fails; wsdlvalidator OK
Posted by Glen Mazza <gl...@gmail.com>.
I don't believe the validator traps everything that could cause wsdl2java to
complain--you may have a rarer issue that hasn't been coded yet for the
validator.
To help with troubleshooting, I would recommend reducing the WSDL to the
absolute barest minimum that reproduces the error (i.e., works on Metro but
not CXF)--remove unused operations, xsd:includes, and complexTypes, and
finally elements within those complex types, and then re-ask on this list
again and/or submit a JIRA request.
HTH,
Glen
Dan Connelly-3 wrote:
>
> Fairly complex schema, but Metro has no problem. Verbatim screen
> below:
>
--
View this message in context: http://www.nabble.com/wsdl2java-fails---wsdlvalidator-OK-tp23015748p23018816.html
Sent from the cxf-user mailing list archive at Nabble.com.