On Friday, May 20, 2011 3:38:36 AM meteora28 wrote: > If I want to generate my service with CXF and no internet connection, I get > the following exception: > > org.apache.ws.commons.schema.XmlSchemaException: Unable to locate imported > document at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd', relative to > 'schema7.xsd'. > > This is strange because I am not using this schema. (My wsdl references to > "http://www.w3.org/2005/08/addressing".)
Well, the http://www.w3.org/2006/03/addressing/ws-addr.xsd url is the correct URL for the schema defined with targetNamespace of: http://www.w3.org/2005/08/addressing Yep, a bit confusing. > Could it be that this is a default import from CXF? If yes, can I > deactivate this or do something that I don't have to connect to a online > reference while starting my service? You can likely add a META-INF/jax-ws-catalog.xml that is an oasis catalog to redirect that schema to a local file. Something like: <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system"> <rewriteSystem systemIdStartString="http://www.w3.org/2005/08/addressing" rewritePrefix="classpath:/schemas/wsdl"/> </catalog> might even work as I THINK that schema is already in the CXF jar. -- Daniel Kulp [email protected] http://dankulp.com/blog Talend - http://www.talend.com
