[ https://issues.apache.org/jira/browse/CXF-4070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-4070. ------------------------------ Resolution: Won't Fix Fix Version/s: Invalid Assignee: Daniel Kulp There are two reasons why this won't be fixed/invalid: 1) JAX-WS requires us to throw an exception for binding files that don't match the input. 2) According to the JAX-WS spec (section 8.7.4) <jaxws:package> is not even allowed in the faults. Just the class name. > cxf-codegen-plugin, wsdlto : troublesome exception during generate jax-ws > binding when node is not exist > -------------------------------------------------------------------------------------------------------- > > Key: CXF-4070 > URL: https://issues.apache.org/jira/browse/CXF-4070 > Project: CXF > Issue Type: Improvement > Components: Tooling > Affects Versions: 2.4 > Reporter: Artur Wójcik > Assignee: Daniel Kulp > Fix For: Invalid > > > Configuration: > plugin : > <plugin> > <groupId>org.apache.cxf</groupId> > <artifactId>cxf-codegen-plugin</artifactId> > <version>2.4.2</version> > <executions> > <execution> > <id>generate-sources-default</id> > <phase>generate-sources</phase> > <configuration> > > <sourceRoot>${project.build.directory}/generated-sources/cxf-default</sourceRoot> > <defaultOptions> > <bindingFiles> > > <bindingFile>${project.basedir}/bindings/jaxws_binding.xml</bindingFile> > </bindingFiles> > </defaultOptions> > <wsdlRoot>${basedir}</wsdlRoot> > <includes> > <include>**/*.wsdl</include> > </includes> > </configuration> > <goals> > <goal>wsdl2java</goal> > </goals> > </execution> > </executions> > </plugin> > jaxws_binding.xml : > <?xml version="1.0" encoding="UTF-8"?> > <jaxws:bindings xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"> > <bindings xmlns="http://java.sun.com/xml/ns/jaxws" > node="wsdl:definitions/wsdl:portType/wsdl:operation/wsdl:fault"> > <package name="com.company.common.fault" /> > </bindings> > </jaxws:bindings> > So, I would like generate jax-ws binding for all wsdl's in project, > but not everyone has fault element. I want to have common things in one place. > Use wsdlOptions is not advisable. > I'm getting: > Could not find any node with the > XPath expression: > //wsdl:definitions[wsdl:portType]/wsdl:portType/wsdl:operation/wsdl:fault -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira