I'm getting the same error that you are getting. Running that WSDL on GlassFish Metro (using the Ant file listed under #5 here[1]) also generates an error, except we get a clue to the possible problem:
[wsimport] [ERROR] Unable to parse "oasis-sstc-saml-schema-assertion-1.1.xsd" : /home/gmazza/workspace/testws/oasis-sstc-saml-schema-assertion-1.1.xsd (No such file or directory) [wsimport] line 11 of file:/home/gmazza/workspace/testws/liberty.wsdl The above file is one of the three that are imported by that WSDL (maybe it can't read the other two either, but is just complaining about this one, I don't know.) I don't know where to download those three files, I can't seem to find them from the site you are mentioning. HTH, Glen [1] http://www.jroller.com/gmazza/entry/using_the_ebay_shopping_api1 Am Samstag, den 18.08.2007, 11:55 +0200 schrieb [EMAIL PROTECTED]: > Hello, > (I'm a complete beginner with CXF/JAXB and even webservices, so perhaps I > missed something obvious). > > I would like to build an "Liberty Alliance" enabled application > [http://www.projectliberty.org/] ("Liberty" is a federation protocol which > managed identity federation, Single Sign On, etc). To achieve that goal, > my application need to be compliant with Project Liberty's WSDL and > schema: > http://www.projectliberty.org/index.php/liberty/resource_center/specifications/liberty_alliance_specifications_support_documents_and_utility_schema_files > (for now, I just care of "ID-FF" resources (identity federation > framework)), and more precisely > http://www.projectliberty.org/liberty/content/download/1231/7997/file/liberty-idff-wsdl-v1.1.wsdl > > So, I attempt to generate all the java classes from the WSDL with > wsdl2java tool of CXF 2.0.1, but it doesn't work, and I don't know where > to begin to try to correct the problem. > When I run the tool, it raise this exception: > 8<----------------------------------------------------------------- > $wsdl2java -verbose liberty-idff-wsdl-v1.1.wsdl > Loading FrontEnd jaxws ... > Loading DataBinding jaxb ... > wsdl2java -verbose liberty-idff-wsdl-v1.1.wsdl > wsdl2java - 2.0.1-incubator > > WSDLToJava Error : java.lang.RuntimeException: Fail to create wsdl > definition from : > file:/home/fanf/tmp/test_cxf_liberty/liberty-idff-wsdl-v1.1.wsdl > Caused by : null > > org.apache.cxf.tools.common.ToolException: java.lang.RuntimeException: > Fail to create wsdl definition from : > file:/home/fanf/tmp/test_cxf_liberty/liberty-idff-wsdl-v1.1.wsdl > Caused by : null > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:242) > at > org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83) > at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102) > at > org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171) > Caused by: java.lang.RuntimeException: Fail to create wsdl definition from > : file:/home/fanf/tmp/test_cxf_liberty/liberty-idff-wsdl-v1.1.wsdl Caused > by : null > at > org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:131) > at > org.apache.cxf.wsdl11.WSDLDefinitionBuilder.build(WSDLDefinitionBuilder.java:112) > at > org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:90) > at > org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.build(JAXWSDefinitionBuilder.java:63) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:143) > at > org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:234) > ... 3 more > Caused by: java.lang.NullPointerException > at com.ibm.wsdl.xml.WSDLReaderImpl.parseImport(Unknown Source) at > com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source) > at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at > com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at > com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at > com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at > com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) at > org.apache.cxf.wsdl11.WSDLDefinitionBuilder.parseWSDL(WSDLDefinitionBuilder.java:123) > ... 8 more > 8<----------------------------------------------------------------- > > I know that schema definition are quite complex, perhaps I need to > do/configure somethings ? > Any help or link to documentation would really much appreciated :) >
