Hi all,
I am facing issue into the loading the applicationcontext.xm file.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
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.0.xsd">
<bean id="test" class="test.Test" init-method="init">
<property name="resource"><value>classpath:test2.txt</value></property>
<property name="fichier"><value>classpath:test.txt</value></property>
</bean>
</beans>
when i am loading this file container is throwing this error.
INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
Exception in
thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Line 6 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
can anyone give suggestion reagrding this error.
Thanks
Anoop