I am trying to get Spring DM 2.0.0 working with Equinox 3.5.1
My spring config file is a minimal one as in the examples:
<?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:osgi="http://www.springframework.org/schema/osgi"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...ring-beans.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
<bean id="documentUtilities"
class="org.epo.dg3.casap.client.editor.document.im pl.DocumentUtilitiesImpl">
</bean>
</beans>
However when the spring extender starts, I get the error:
"org.xml.sax.SAXParseException: schema_
reference.4: Failed to read schema document 'http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd', because 1) could
not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>."
I don't understand where the reference to "blueprint" is coming from?
Can anyone help?
The full output from equinox is:
osgi> 02-Feb-2010 17:03:51 org.springframework.osgi.extender.internal.boot.Ch ainActivator <init>
INFO: Blueprint API detected; enabling Blueprint Container functionality
02-Feb-2010 17:03:51 org.springframework.osgi.extender.internal.activat or.ContextLoaderListener start
INFO: Starting [org.springframework.osgi.extender] bundle v.[2.0.0.M1]
02-Feb-2010 17:03:51 org.springframework.osgi.extender.internal.support .ExtenderConfiguration <init>
INFO: No custom extender configuration detected; using defaults...
02-Feb-2010 17:03:52 org.springframework.scheduling.timer.TimerTaskExec utor afterPropertiesSet
INFO: Initializing Timer
02-Feb-2010 17:03:52 org.springframework.osgi.extender.support.DefaultO sgiApplicationContextCreator createApplicationCon
text
INFO: Discovered configurations {osgibundle:/META-INF/spring/*.xml} in bundle [EPO Editor Document (org.epo.dg3.casap.cl
ient.editor.document)]
02-Feb-2010 17:03:52 org.springframework.context.support.AbstractApplic ationContext prepareRefresh
INFO: Refreshing OsgiBundleXmlApplicationContext(bundle=org.epo.dg3 .casap.client.editor.document, config=osgibundle:/MET
A-INF/spring/*.xml): startup date [Tue Feb 02 17:03:52 CET 2010]; root of context hierarchy
02-Feb-2010 17:03:52 org.springframework.osgi.context.support.AbstractO sgiBundleApplicationContext unpublishContextAsOsg
iService
INFO: Application Context service already unpublished
02-Feb-2010 17:03:52 org.springframework.osgi.extender.internal.bluepri nt.event.EventAdminDispatcher <clinit>
INFO: EventAdmin package not found; no Blueprint lifecycle events will be published
02-Feb-2010 17:03:52 org.springframework.osgi.extender.internal.activat or.ContextLoaderListener start
INFO: Starting [org.springframework.osgi.extender] bundle v.[2.0.0.M1]
02-Feb-2010 17:03:52 org.springframework.osgi.extender.internal.support .ExtenderConfiguration <init>
INFO: No custom extender configuration detected; using defaults...
02-Feb-2010 17:03:52 org.springframework.scheduling.timer.TimerTaskExec utor afterPropertiesSet
INFO: Initializing Timer
02-Feb-2010 17:03:52 org.springframework.beans.factory.xml.XmlBeanDefin itionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [bundleentry://12.fwk5383406/META-INF/spring/document-context.xml]
02-Feb-2010 17:03:54 org.springframework.osgi.extender.internal.support .DefaultOsgiBundleApplicationContextListener onOs
giApplicationEvent
SEVERE: Application context refresh failed (OsgiBundleXmlApplicationContext(bundle=org.epo.dg 3.casap.client.editor.docum
ent, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.xml.XmlBeanDefin itionStoreException: Line 5 in XML document from URL [bundleentry://12
.fwk5383406/META-INF/spring/document-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: schema_
reference.4: Failed to read schema document 'http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd', because 1) could
not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.j
ava:378)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.jav
a:316)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.jav
a:284)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefini
tionReader.java:143)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefini
tionReader.java:178)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefini
tionReader.java:149)
at org.springframework.osgi.context.support.OsgiBundl eXmlApplicationContext.loadBeanDefinitions(OsgiBun dleXmlApp
licationContext.java:172)
at org.springframework.osgi.context.support.OsgiBundl eXmlApplicationContext.loadBeanDefinitions(OsgiBun dleXmlApp
licationContext.java:142)
at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefresha
bleApplicationContext.java:127)
at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationCont
ext.java:429)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.access$800(Abs tractDele
gatedExecutionApplicationContext.java:62)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext$3.run(Abstract Delegated
ExecutionApplicationContext.java:244)
at org.springframework.osgi.util.internal.PrivilegedU tils.executeWithCustomTCCL(PrivilegedUtils.java:87 )
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.startRefresh(A bstractDe
legatedExecutionApplicationContext.java:222)
at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.st
ageOne(DependencyWaiterApplicationContextExecutor. java:225)
at org.springframework.osgi.extender.internal.depende ncies.startup.DependencyWaiterApplicationContextEx ecutor.re
fresh(DependencyWaiterApplicationContextExecutor.j ava:178)
at org.springframework.osgi.context.support.AbstractD elegatedExecutionApplicationContext.refresh(Abstra ctDelegat
edExecutionApplicationContext.java:159)
at org.springframework.osgi.extender.internal.activat or.LifecycleManager$1.run(LifecycleManager.java:22 3)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.osgi.org/xmlns/
blueprint/v1.0.0/blueprint.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root
element of the document is not <xsd:schema>.
at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.createSAXParseException(Unknown Source)
at com.sun.org.apache.xerces.internal.util.ErrorHandl erWrapper.error(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLErrorRe porter.reportError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.travers ers.XSDHandler.reportSchemaError(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.travers ers.XSDHandler.getSchemaDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.travers ers.XSDHandler.parseSchema(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maLoader.loadSchema(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maLoader.processJAXPSchemaSource(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maLoader.loadSchema(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.findSchemaGrammar(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.handleStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.xs.XMLSche maValidator.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl$NSContentDriver.scanRootElementHook (Unknown
Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl$FragmentContentDriver.next(Un known Sou
rce)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl$PrologDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocum entScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumen tFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Co nfiguration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLPars er.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.DOMPars er.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBu ilderImpl.parse(Unknown Source)
at



