Announcement Announcement Module

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
how to use equinox blueprint services in spring osgi dynamic modules. Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • how to use equinox blueprint services in spring osgi dynamic modules.

    I have imported the blueprint service in spring configuration file as

    <beans xmlns=""

    <!-- Export the simpleService bean (defined in a separate
    config file in this case) as an OSGi service -->
    <!-- definitions using elements of the osgi namespace can be included
    in this file. There is no requirement to keep these definitions
    in a separate file if you do not want to. The rationale for
    keeping these definitions separate is to facilitate integration
    testing of the bundle outside of an OSGi container -->
    <osgi:reference id="simpleServiceOsgi"
    interface="com.test.simpleserv.MyService" /><!--

    <bp:reference id="echoServRef" interface="com.test.simpleserv.Echo"></bp:reference>
    and my blueprint config file was :

    <service id="echoService" interface="com.ebay.test.simpleserv.Echo" ref="echo"/>
    <bean id="echo" class="com.ebay.test.simpleserv.internal.EchoImpl" >
    <property name="message" value="Echo: "/>
    <!-- <property name="pkgAdmin" ref="pkgAdmin"/>-->

    but when iam trying to use it when running the test iam getting below excpetion

    ests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 2.297 sec <<< FAILURE!
    testSimpleSpringServiceExported(com..test.simplese rvTest.SimpleServiceBundleTest) Time elapsed: 2.031 sec <<< ERROR!
    org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 26 in XML document from OSGi resource[classpath:com//test/simpleservTest/spring/context.xml||bnd.sym=org.springframework. osgi.samples.simpleservice.test] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'bp:blueprint'.
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR
    at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR
    at BeanDefinitionReader.loadBeanDefinitions(AbstractB
    at BeanDefinitionReader.loadBeanDefinitions(AbstractB
    at BeanDefinitionReader.loadBeanDefinitions(AbstractB

    anythign wrong that iam doing ..? How to use blueprint services in spring osgi based view ?