cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rickthemick <>
Subject base-address for CXF
Date Wed, 30 Nov 2011 08:33:33 GMT

Because of our network setup (I guess), CXF is generating a correct (based
on the server IP) but not desired URL for our services when listing them at

For this reason I want to force the base address for our services. We are
running CXF on a OSGi runtime and uses Spring to configure the services,
like this:

  <import resource="classpath:META-INF/cxf/cxf.xml" />
  <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />

  <jaxws:endpoint id="MyServiceEndpoint" implementor="#myService"
    address="/myservice" />

I have found fragments of information about a config property called
"base-address" but I fail to apply it to our services. I cant find any
information about it on the pages.

Can somebody please direct me how to use this property? Or is there some
other way to do this? 

What I have done so far is to have the property set in the OSGi config admin
services (by following the example for changing the alias "/cxf" here, from Apache Felix web console:
PID = org.apache.cxf.osgi.cfg
  BundleLocation = Unbound
  base-address = myserver
  org.apache.cxf.servlet.base-address = myserver = org.apache.cxf.osgi.cfg

... but this doesnt seem to help me!

Hope for you help, thanks Rickard!

View this message in context:
Sent from the cxf-user mailing list archive at

View raw message