You should try CXF instead of the RI. Apache CXF is a JAX-WS compliant and OSGi ready. You will find some examples in the ServiceMix 4 distribution. Here are a few pointers to the examples sources: https://svn.apache.org/repos/asf/servicemix/smx4/features/trunk/examples/ ServiceMix 4 is built on top of Felix and Spring-DM and adds a few features. If you don't want the JBI stuff, you can start with ServiceMix Kernel (http://servicemix.apache.org/kernel/index.html) and deploy CXF bundles onto it instead of using the full ServiceMix 4 distribution.
On Tue, Feb 10, 2009 at 20:12, Keiichiro Ono <[email protected]> wrote: > Hi. > > I'm trying to use JAX-WS on OSGi environment (Felix and Spring-DM). > Basically, I'm trying to write a web service client working on Spring > DM. As far as I know, there is no OSGi-bundle version of JAX-WS > implementations although API bundle is available from SpringSource > repository. In this case, I think there are 3 options: > > 1. Wrap JAX-WS reference implementation by PAX-Construct. > 2. Use Apache Geronimo implementation of JAX-WS. > 3. Use gigantic OSGi bundle from GlassFish Enterprise Server v3 Prelude > project. > > I tried 1, but it did not work because somehow. The stack trace > indicates that the Sun's implementation is calling wrong method which > does not exist. > > Caused by: java.lang.UnsupportedOperationException: Method not implemented. > at java.net.URLStreamHandler.openConnection(URLStreamHandler.java:80) > at java.net.URL.openConnection(URL.java:992) > at > com.sun.xml.ws.api.EndpointAddress.openConnection(EndpointAddress.java:211) > at > com.sun.xml.ws.transport.http.client.HttpClientTransport.createHttpConnection(HttpClientTransport.java:239) > at > com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:116) > ... 38 more > > And so far, I could not solve this problem. So my question is, which > option do you recommend if I need to use JAX-WS on OSGi? > > Thanks. > Kei > > -- > Keiichiro Ono [email protected] > > Cytoscape Core Developer Team: http://www.cytoscape.org/ > UCSD Bioengineering Ideker Lab: http://chianti.ucsd.edu/idekerlab/ > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com _______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
