Update: Going from 2.5.2 to 2.5.3 results in the same exception. Kind regards
Arthur > Hi all > > When switching from CXF 2.5.2 to 2.6.0 I encounter an > IllegalArgumentException (stacktrace see below) when using wsdl2java with the > following > arguments: > > wsdl2java -client -d D:\workspace\ClientCxf\src -classdir > D:\workspace\msg\ClientCxf\build\classes -b defaultBinding.txt -impl -verbose > http://localhost:8380/p/services/pAdapter?wsdl > > All works well if I omit the "-b defaultBinding.txt" parameter. > defaultBinding.txt has the following content: > > <jaxb:bindings version="2.1" > xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" > xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > <jaxb:globalBindings generateElementProperty="false"/> > </jaxb:bindings> > > Probably I've overlooked something in the 2.6 migration guide. > > Thanks and regards > > Arthur > > > WSDLToJava Error: java.lang.IllegalArgumentException: URI is not > hierarchical > > org.apache.cxf.tools.common.ToolException: > java.lang.IllegalArgumentException: URI is not hierarchical > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:293) > at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103) > at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:113) > at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:86) > at > org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:184) > Caused by: java.lang.IllegalArgumentException: URI is not hierarchical > at java.io.File.<init>(File.java:363) > at > org.apache.cxf.resource.URIResolver.tryFileSystem(URIResolver.java:144) > at org.apache.cxf.resource.URIResolver.<init>(URIResolver.java:92) > at org.apache.cxf.resource.URIResolver.<init>(URIResolver.java:75) > at org.apache.cxf.resource.URIResolver.<init>(URIResolver.java:71) > at > org.apache.cxf.tools.wsdlto.frontend.jaxws.JAXWSContainer.validate(JAXWSContainer.java:61) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.processWsdl(WSDLToJavaContainer.java:147) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:139) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:285) > ... 4 more > -- > Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir > belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
