tag:blogger.com,1999:blog-9210566578097047576.post2729769142800579666..comments2023-11-05T02:04:07.740-08:00Comments on <coderthoughts />: A Distributed OSGi Powered AJAX WebAppDavid Bosschaerthttp://www.blogger.com/profile/13786738766478890804noreply@blogger.comBlogger14125tag:blogger.com,1999:blog-9210566578097047576.post-55938508624530491982013-01-22T00:53:10.087-08:002013-01-22T00:53:10.087-08:00Hi Sachin,
While the principles in this blog post...Hi Sachin,<br /><br />While the principles in this blog post should still hold, it *is* 4 years old now, so the actual technology mentioned might have changed/moved on a bit. I think the best idea would be to post your question around the DOSGi bundle on the cxf user list: <a href="http://cxf.apache.org/mailing-lists.html" rel="nofollow">http://cxf.apache.org/mailing-lists.html</a><br /><br />Cheers,<br /><br />DavidDavid Bosschaerthttps://www.blogger.com/profile/13786738766478890804noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-32963611432609235022013-01-21T23:56:09.783-08:002013-01-21T23:56:09.783-08:00Gary,
Were you able to make it work?Gary,<br /><br />Were you able to make it work?Anonymoushttps://www.blogger.com/profile/08649661976051525270noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-32125405504314018252013-01-21T23:55:07.977-08:002013-01-21T23:55:07.977-08:00Gary,
Were you able to get this work?
We are stuc...Gary,<br /><br />Were you able to get this work?<br />We are stuck with same issue.<br /><br />David,<br />Should's the DOSGI bundle only rely on http service instead of any bundles that actually provide it. It would make the use of single bundle distributions very easy.<br /><br />SachinAnonymoushttps://www.blogger.com/profile/08649661976051525270noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-35609833165789140222009-07-01T07:25:39.586-07:002009-07-01T07:25:39.586-07:00I thought I'd provide a mini update.. So I go...I thought I'd provide a mini update.. So I got this "working" by removing the pax jar from the single distribution. This works but does show one class not found error (the aggregate activator tries to activate the pax activator).. Whenever I try to use the multi distribution I get unresolved bundles. Basically there seems to be a "uses" conflict. I'm trying to track down what it is (probably has something to do with the equinox servlet bridge).. <br /><br />Thanks again for all of your help!Garyhttps://www.blogger.com/profile/00382078075354093682noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-9986627704601043462009-06-26T14:01:37.995-07:002009-06-26T14:01:37.995-07:00Hey Gary, ah - yes I remember removing that mortba...Hey Gary, ah - yes I remember removing that mortbay bundle because Pax-Web also exports those packages. You can put in the <a href="http://repository.codehaus.org/org/mortbay/jetty/jetty/6.1.16/jetty-6.1.16.jar" rel="nofollow">jetty bundle</a> to solve the resolution problem. Setting that property I mentioned before will mean that it isn't used but you are right, CXF directly links to those classes.<br />You may also need the <a href="http://repository.codehaus.org/org/mortbay/jetty/jetty-util/6.1.16/jetty-util-6.1.16.jar" rel="nofollow">jetty-util bundle</a>.<br />Hope this helps, DavidDavid Bosschaerthttps://www.blogger.com/profile/13786738766478890804noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-73398188228790761262009-06-26T13:25:03.165-07:002009-06-26T13:25:03.165-07:00Thanks David.. I wish it were that easy.. Removi...Thanks David.. I wish it were that easy.. Removing the pax web bundle causes the CXF bundle to not resolve... It directly imports the org.mortbay stuff.. Looks like I may have to code my own customized bridge instead of using the equinox one.. If I solve it I'll post an update.. <br /><br />Thanks again,<br />GaryGaryhttps://www.blogger.com/profile/00382078075354093682noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-58041459235377342922009-06-26T10:27:46.110-07:002009-06-26T10:27:46.110-07:00Hi Gary,
When you take the CXF/DOSGi multi bundle...Hi Gary,<br /><br />When you take the CXF/DOSGi multi bundle distribution, should be able to take out the pax-web bundle because, as you say, Equinox also provides the OSGi HTTP Service. As long as you set the osgi.remote.configuration.pojo.httpservice.context property the CXF/DOSGi implementation uses the HTTP Service, so it should then bind the one provided by Equinox.David Bosschaerthttps://www.blogger.com/profile/13786738766478890804noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-55258915084201987792009-06-26T10:04:37.986-07:002009-06-26T10:04:37.986-07:00Thanks David.. Seems that CXF depends on the pa...Thanks David.. Seems that CXF depends on the pax web stuff and the equinox servlet bridge depends on the equinox http service.. So I feel like I have an extra http service in here.. I will keep digging and see if I can find the answer.. <br /><br />Thanks again for the help!<br />GaryGaryhttps://www.blogger.com/profile/00382078075354093682noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-12232131151885288822009-06-26T05:51:50.359-07:002009-06-26T05:51:50.359-07:00Hi Gary, Yes and no :) Setting the osgi.remote.con...Hi Gary, Yes and no :) Setting the osgi.remote.configuration.pojo.httpservice.context property causes CXF/DOSGi to use a Servlet to serve up the web service (not the embedded Jetty), then it registers this servlet with the OSGi HTTP Service (in the CXF/DOSGi distro this one uses Pax-Web which uses Jetty too, but thats really a Pax-Web implementation detail). <br /><br />It should be perfectly possible to use that servlet in any ordinary Servlet Container. Have a look at the <a href="https://svn.apache.org/repos/asf/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/HttpServiceConfigurationTypeHandler.java" rel="nofollow">HttpServiceConfigurationTypeHandler.createServer()</a> method. You will see there that it uses a plain Servlet.David Bosschaerthttps://www.blogger.com/profile/13786738766478890804noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-19212529459140403442009-06-26T05:09:36.467-07:002009-06-26T05:09:36.467-07:00Curious if you have tried to run a CXF DOSGI web s...Curious if you have tried to run a CXF DOSGI web service under the servlet bridge? Specifically if you can have the web service end point be served up by the web app container and not the embedded jetty...Garyhttps://www.blogger.com/profile/00382078075354093682noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-80379559162674338082009-03-24T04:16:00.000-07:002009-03-24T04:16:00.000-07:00thanks david!i thought tha the felix minimum execu...thanks david!<BR/><BR/>i thought tha the felix minimum execution environment was CDC.(dont know why:). <BR/><BR/>I will have to do all the xml-to object, object-to-xml stuff using some CDC framework, kind of boring. <BR/><BR/>Thanks anyway!ledhttps://www.blogger.com/profile/15713216358128455217noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-64476952186399096852009-03-23T15:57:00.000-07:002009-03-23T15:57:00.000-07:00Hi led, the Distributed OSGi spec doesn't place an...Hi led, the Distributed OSGi spec doesn't place any additional requirements on the execution environment. The added interfaces work on all platforms supported by OSGi.<BR/><BR/>Having said that, the CXF-based DOSGi <I>implementation</I> requires features of Java 5. If you would like to use it from a CDC client, you could invoke on the generated WSDL interface via any CDC-compatible SOAP/HTTP client though...David Bosschaerthttps://www.blogger.com/profile/13786738766478890804noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-75874039781716129722009-03-23T12:54:00.000-07:002009-03-23T12:54:00.000-07:00What is the minimum execution enviroment for D-OSG...What is the minimum execution enviroment for D-OSGI client code ? Does it run on a Java CDC env?ledhttps://www.blogger.com/profile/15713216358128455217noreply@blogger.comtag:blogger.com,1999:blog-9210566578097047576.post-30124039655195204562009-02-11T02:57:00.000-08:002009-02-11T02:57:00.000-08:00Thanks for this interesting post. I've been lookin...Thanks for this interesting post. I've been looking for examples of code using OSGI and GWT together.<BR/>I would also be very interested to see a project able to separate the client-side code into different bundles. The Java/Javascript compilation part makes it very difficult to write a GWT application enabling users to write custom plugins.Pepshttps://www.blogger.com/profile/14443255021929661903noreply@blogger.com