cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artur Wójcik (Created) (JIRA) <j...@apache.org>
Subject [jira] [Created] (CXF-4070) cxf-codegen-plugin : troublesome exception during generate jax-ws binding when node is not exist
Date Fri, 27 Jan 2012 11:40:40 GMT
cxf-codegen-plugin : 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


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

       

Mime
View raw message