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 <ilker.cikrikc...@aspone.co.uk> 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.
>
>

Reply via email to