Monday, 2 September 2013

Failed to import bean definitions from URL location [classpath:hr_demo-security-context.xml]

Failed to import bean definitions from URL location
[classpath:hr_demo-security-context.xml]

I'm using tomcat 7 and when i'm running the server the following errors
appear on the console:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from URL location
[classpath:hr_demo-security-context.xml]
Here is the code for hr_demo-security-context.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:lang="http://www.springframework.org/schema/lang"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">
</beans:beans>
If anyone can help me,please share the solution. Thanks!

No comments:

Post a Comment