Gents and Ladies, 



Using Karaf 2.0.0, I'm attempting to use an spring.xml file with the following 
beans definition: 

<?xml version="1.0" encoding="UTF-8" ?> <beans xmlns= 
http://www.springframework.org/schema/beans xmlns:context= 
http://www.springframework.org/schema/context xmlns:p= 
http://www.springframework.org/schema/p xmlns:xsi= 
http://www.w3.org/2001/XMLSchema-instance xsi:schemaLocation=" 
http://www.springframework.org/schema/beans 
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd 
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-2.5.xsd "> 
</beans> 

Because the beans element isn't resolving, the actual bean definitions really 
don't matter, so I've left them out. 

The meat of the Karaf error I get is: 



Caused by: 
org.springframework.beans.factory.xml.XmlBeanDefinistionStoreException: Line 10 
in the XML document from class path 
resource[myApp/mypackage/applicationContext.xml] is invalide; nested exception 
is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of 
element 'beans'. 



Line 10 is the last line of the 'beans' definition.  Can anyone help figure out 
why this is not resolving?  I'm stumped. 



v/r, 



Mike Van 


Reply via email to