cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Freeman Fang <>
Subject Re: CXF without internet connection?
Date Wed, 19 Jan 2011 14:18:37 GMT

On 2011-1-19, at 下午10:05, meteora28 wrote:

> Thank you for your answers.
> I am not sure if I am on the right way. I write down some more  
> information
> to explain.
> When I want to run my application without an internet connection, I  
> get the
> following message:
>> INFO: Creating Service
>> {}DeviceService from class
>> org.onvif.ver10.device.wsdl.Device
>> Exception in thread "AWT-EventQueue-0"
>> Unable to locate  
>> imported
>> document at '',  
>> relative
>> to 'schema7.xsd'.
Well,  you can download 
addr.xsd before hand and save it locally, than you can use XML  
catalog, which can map a remote url to a local relative path file,  
this can avoid internet download during runtime, you just need a META- 
INF/jax-ws-catalog.xml on your classpath, you may need  google lit bit  
to get more details how "XML catalog" works.

Btw, cxf use this way to avoid downloading some xsd files remotely  
even during build time. You can take a look at one previous commit[1],  
just see the "text changed" part and new added files, get some rough  
idea how to write your own jax-ws-catalog.xml.


> With an internet connection it works fine.
> Here some more information.
> I built a java client with wsdl to java from an existing wsdl. this  
> worked
> only with cxf. no other framework could parse it because there is no  
> service
> element.
> so I have to set the address and the service class in my code. this  
> works
> fine.
> I think while this happens the prgramm is importing the ressources.
> has any one an idea to import them before using the java code, for  
> example
> while using wsdl2java?
> -- 
> View this message in context:
> Sent from the cxf-user mailing list archive at

Freeman Fang


Apache Servicemix:
Apache Cxf:
Apache Karaf:
Apache Felix:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message