Announcement Announcement Module
Collapse
No announcement yet.
How to use spring-osgi-compendium Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to use spring-osgi-compendium

    Hi,

    I need some help with compendium services.
    My environment: springsource-dm-server-1.0.2.RELEASE.

    Tried to follow the the instructions from Spring DM 1.2.0, and got an error complaining about 'osgix:cm-properties'. Here is the top of my Spring config:


    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:context="http://www.springframework.org/schema/context"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:osgix="http://www.springframework.org/schema/osgi-compendium"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schem...ring-beans.xsd
    http://www.springframework.org/schema/context
    http://www.springframework.org/schem...ontext-2.5.xsd
    http://www.springframework.org/schema/util
    http://www.springframework.org/schem...g-util-2.5.xsd
    http://www.springframework.org/schema/osgi-compendium
    http://www.springframework.org/schema/osgi-compendium/spring-osgi-compendium.xsd">

    <!-- Configuration -->
    <osgix:cm-properties id="c8config" persistent-id="coral8.config"/>
    <osgix:cm-properties id="jmsconfig" persistent-id="dbus.config"/>

    ----------------------------------------------------------------------

    The error I am getting:

    org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 4 in XML document from URL [bundleentry://120/META-INF/spring/bundle-context.xml] 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 'osgix:cm-properties'.
    .................................................. ....................................

    I am somewhat confused about how the SpringDM stuff is initialized in SpringDM server. Is it automatic? I did not have problems with the other SpringDM features like services declaration and consumption. What am I missing with cm-properties?

    Seems like it does not really see the corresponding schema in http://www.springframework.org/schem...compendium.xsd . I see this schema is available in SpringDM distribution in spring-osgi-core-1.2.0.jar as org/springframework/osgi/config/spring-osgi-1.2.xsd .

    My server is running behind the firewall. So, if it actually wants to get the schema from springframework.org, then I need to set the http proxy. How this is done?

    Or, if I am supposed to use the thing from SpringDM distribution, should I load that bundle (and, I guess, some other dependent bundles) in the server? I actually tried it but it did not help.

    I saw similar posts on the forum, but those users had Spring IDE. I am just using Spring DM server by itself.

    I would greatly appreciate any help.

    Thanks,

    Leonid
Working...
X