Jul 27th, 2009, 04:11 PM
How to use spring-osgi-compendium
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"?>
<!-- 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.