You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Kristina Wilhelm (JIRA)" <ji...@apache.org> on 2017/03/29 12:43:42 UTC

[jira] [Created] (CXF-7303) java.io.FileNotFoundException on JIBX binding with customization

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)