Hi,
If I understand correctly, you just want to use cxf http-osgi
transport which leverage osgi http service(pax-web underlying), right?
You're using Equinox directly? Not with Karaf or Servicemix?
If you use Equinox directly, you need install a dozen of bundles
yourself(from cxf 2.211 to cxf 2.4.0 a lot of bundles need change), I
suggest you take a look at apache-cxf-features.xml[1] to get some
details about the bundles you need install.
I suggest you consider to use Apache Servicemix which support cxf out
of the box, you needn't install cxf related bundles yourself, and
there's a cxf-osgi example which should be exactly same as your
scenario, the import package of that example should be still helpful
even you use Equinox directly, so you need check your customer
bundle's Import-Package, it should be
javax.jws,
javax.wsdl,
javax.xml.namespace,
META-INF.cxf,
META-INF.cxf.osgi,
org.apache.cxf.bus,
org.apache.cxf.bus.spring,
org.apache.cxf.bus.resource,
org.apache.cxf.configuration.spring,
org.apache.cxf.resource,
org.apache.cxf.transport.http,
org.apache.servicemix.util,
org.springframework.beans.factory.config
[1]http://repo2.maven.org/maven2/org/apache/cxf/karaf/apache-cxf/2.4.0/apache-cxf-2.4.0-features.xml
Freeman
On 2011-9-9, at 下午10:56, bst wrote:
Hi,
I'm running the application on Equinox platform and my concept is to
register osgiServlet to existing httpService using pax-whiteboard.
Then
registering my own webServices through JaxWsServerFactoryBean using
the
service-reference to the osgiServlet. Everything worked great until I
upgraded to the cxf-bundle-2.4.0.
In sping-context file I'm using only these two imports as suggested
somewhere in this forum:
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/osgi/cxf-extension-
osgi.xml"/>
Even though I can not spot any problems from the logfiles the standard
services-list page shows no content ("No services have been found.").
Obviously the osgiServlet is up and running but the webServices are
not. The
console shows practically the same output as it does with the
cxf-bundle-2.2.11 (which works fine):
/09.09.2011 16:18:42
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromWSDL
INFO: Creating Service {urn:ihe:iti:xds-b:
2007}DocumentRepository_Service
from WSDL: wsdl/iti41.wsdl
09.09.2011 16:18:42
org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory
createEndpoint
WARNUNG: Could not find endpoint/port for
{urn:ihe:iti:xds-b:2007}DocumentRepository_PortTypePort in wsdl. Using
{urn:ihe:iti:xds-b:2007}DocumenRepository_Port_Soap12.
09.09.2011 16:18:42 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /xds-iti41/
Any ideas?
Many thanks,
Cheers,
Boris
--
View this message in context:
http://cxf.547215.n5.nabble.com/osgi-problem-since-2-4-0-tp4786635p4786635.html
Sent from the cxf-user mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com