Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7303

java.io.FileNotFoundException on JIBX binding with customization

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.10
    • 3.0.13, 3.1.11
    • OtherDatabindings
    • None
    • ubuntu 16.10, Java 8

    • Unknown

    Description

      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

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            kwilhelm Kristina Wilhelm
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: