cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kristina Wilhelm (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-7303) java.io.FileNotFoundException on JIBX binding with customization
Date Wed, 29 Mar 2017 12:43:42 GMT
Kristina Wilhelm created CXF-7303:
-------------------------------------

             Summary: java.io.FileNotFoundException on JIBX binding with customization 
                 Key: CXF-7303
                 URL: https://issues.apache.org/jira/browse/CXF-7303
             Project: CXF
          Issue Type: Bug
          Components: OtherDatabindings
    Affects Versions: 3.1.10
         Environment: ubuntu 16.10, Java 8
            Reporter: Kristina Wilhelm


If I use xml for customization on jibix binding with cxf-codegen-plugin 3.1.10, I get FileNotFoundException:
java.io.FileNotFoundException: file:/home/kwilhelm/workspace/cxf-with-jibx-1.0.0/src/main/config/custom-jibx-codegen.xml
(No such file or directory)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at java.io.FileInputStream.<init>(FileInputStream.java:93)
	at org.jibx.schema.codegen.custom.SchemasetCustom.loadCustomizations(SchemasetCustom.java:288)

Here is the plugin configuration:
      <plugin>
        <groupId>org.apache.cxf</groupId>
        <artifactId>cxf-codegen-plugin</artifactId>
        <version>3.1.10</version>
                <executions>
                    <execution>
                        <phase>generate-sources</phase>
                        <configuration>
                            <sourceRoot>${project.build.directory}/generated-sources</sourceRoot>
                            <wsdlOptions>
                                <wsdlOption>
                                    <wsdl>${project.basedir}/src/main/resources/wsdl/calculator.wsdl</wsdl>
                                    <dataBinding>jibx</dataBinding>
                                    <extraargs>
                                        <extraarg>-b</extraarg>
                                        <extraarg>${project.basedir}/src/main/config/custom-jibx-codegen.xml</extraarg>
										<extraarg>-verbose</extraarg>
                                    </extraargs>
                                </wsdlOption>
                            </wsdlOptions>
                        </configuration>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
      </plugin>
The file is in the path, but it will be appended "file:" in ahead of the path in the method
org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.validate(ToolContext env) before it goes to
org.jibx.schema.codegen.custom.SchemasetCustom.loadCustomizations



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message