Hi David, Yes, you are right. I missed that point. Now I'm trying to install multi-bundle distro to karaf but I also have some problems about that.
I found dependencies from: http://cxf.apache.org/dosgi-releases.html and run these commands osgi:install -s mvn:org.apache.cxf/cxf-bundle-minimal/2.2.5 osgi:install -s mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-discovery-local/1.1 osgi:install -s mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-dsw-cxf/1.1 but cxf-bundle-minimal isn't installed because of: Unresolved constraint in bundle org.apache.cxf.bundle-minimal:package; (package=javax.wsdl.extensions.http) I think I'm running wrong commands. I guess I should install CXF-DOSGi with features:install command but I couldn't find the necessary url that includes it. How can I install it? Thanks Ilker David Bosschaert wrote: > > Hi Ilker, > > Have a look at the CXF-DOSGi Spring-DM demo documentation: > http://cxf.apache.org/dosgi-spring-dm-demo-page.html > I see that you're using the single bundle distro, but when using > Spring you should really use the multi-bundle distro as CXF-DOSGi > itself also uses spring internally, but it doesn't expose the spring > packages. Using the multi bundle distro you will use the original > spring bundles and it should all work fine... It's also what's used in > the page above... > > Hope this helps, > > David > > On 14 April 2010 16:51, olamalam <[email protected]> wrote: >> >> Hi to all, >> >> I'm trying to run Spring DM demo. >> I've installed necessary bundles for dosgi and created a bundle >> (springdmdemo) with Pax and installed on karaf 1.4 : >> [79] [Active] [] [ ] [60] Distributed OSGi Distribution Software >> Single-Bundle Distribution (1.1) >> [80] [Active] [] [ ] [60] osgi.cmpn (4.2.0.200908310645) >> [81] [Active] [] [Started] [60] [springdmdemo] (0.1) >> >> Even if springdmdemo bundle seems active I get this error just after >> installing it: >> *ERROR* Cannot use Factory configuration for org.apache.felix.fileinstall >> requested by bundle >> mvn:org.apache.cxf.dosgi/cxf-dosgi-ri-singlebundle-distribution/1.1 but >> belongs to mvn:org.apache.felix/org.apache.felix.fileinstall/2.0.8 >> ... >> Exception in thread "SpringOsgiExtenderThread-2" >> java.lang.IllegalStateException: BeanFactory not initialized or already >> closed - call 'refresh' before accessing beans via the ApplicationContext >> >> And I couldn't get any response when I hit: >> http://localhost:9000/com/aspone/trh/springdmdemo/ExampleService?wsdl >> >> My spring xml file is: >> ... >> <osgi:service interface="com.aspone.trh.springdmdemo.ExampleService"> >> <osgi:service-properties> >> <entry key="osgi.remote.interfaces" value="*" /> >> </osgi:service-properties> >> <bean >> class="com.aspone.trh.springdmdemo.internal.ExampleServiceImpl" /> >> </osgi:service> >> ... >> >> Does anyone have any idea about what I'm doing wrong? >> >> Thanks in advance >> Ilker >> -- >> View this message in context: >> http://old.nabble.com/CXF-DOSGI-problem-while-running-Spring-DM-demo-tp28244542p28244542.html >> Sent from the cxf-user mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://old.nabble.com/CXF-DOSGI-problem-while-running-Spring-DM-demo-tp28244542p28253051.html Sent from the cxf-user mailing list archive at Nabble.com.
