Hi,

Yeah, just remove classpath prefix.
Also I think you should put your resource to src/main/resources/ of your jar file. You may need take a look at [1] which is a bundle jar using wsdlLocation for both client and server side, to see how the folder structure is and how to use spring-dm to expose cxf client/server in OSGi container.

[1]https://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/itests/cxf-jms-osgi/

Freeman
On 2010-11-2, at 上午3:53, KARR, DAVID (ATTSI) wrote:

I'm trying to produce a "client" jar that includes my generated classes
and my wsdl and schema.

At the root of the jar file, where the "com" directory exists, I also
have a "contract" directory, that has a subdir that specifies a contract
version number.  In that directory is my wsdl and schemas.

In my call to "wsdl2java", I tried specifying
"classpath:contract/<versiondir>/<wsdlfilename>".

When I generate this and then run it in the container, I see this in the
console:

   "Can not initialize the default wsdl from classpath:contract/..."

What should the "wsdlLocation" value be? Do I just remove "classpath:"
from it?  I thought it had to be a URL, so that seems unlikely.


--
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org

Reply via email to