[ https://issues.apache.org/jira/browse/CXF-7303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-7303. ------------------------------ Resolution: Fixed Assignee: Daniel Kulp Fix Version/s: 3.1.11 3.0.13 Fixed for 3.1.11. However: note that the jibx databinding has been removed from 3.2. We recommend moving to JAXB. > 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 > Assignee: Daniel Kulp > Fix For: 3.0.13, 3.1.11 > > > 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)