I am trying to run Spring MVC tutorial at: http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html
My problem is similar to this Spring configuration error
However, none of these solutions seem relevant.
I get the following stack trace:
org.springframework.beans.factory.BeanDefinitionStoreException: line 6 in the XML document from the resource [/WEB-INF/springapp-servlet.xml] ServletContext is invalid; The nested exception is org.xml.sax.SAXParseException: the root element of the beans document must match the root DOCTYPE of null. org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions (XmlBeanDefinitionReader.java:133) org.springframework.context.support.AbstractXmlApplicationContext.loadPerfect.loadPreventBonan.Formpload.beppon AbstractXmlApplicationContext.java:65) org.springframework.context.support.AbstractApplicationContext.refresh (AbstractApplicationContext.java:226) org.springframework.web.context.support.XmlWebApplicationContext.refresh (XmlWebApplicationContext.java:131) org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext (FrameworkServlet.java:281) org.springframework.web.servlet.FrameWla springframework.web.servlet.FrameworkServlet.initServletBean (FrameworkServlet.java:199) org.springframework.web.servlet.HttpServletBean.init (HttpServletBean.java:102) javax.servlet.GenericServlet.2it.itit.itervit2. apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:293) org.apache.coyote.http11.Http11NioProcessor.pava Hp 883) org.apache.coyote.http11.Http11NioProtocol $ Http11ConnectionHandler.process (Http11NioProtocol.java:722) org.apache.tomcat.util.net.NioEndpoint $ SocketProcessor.run (NioEndpoint.java:2214) java.util.concurrent.ThreadPoolExecutor $ Worker.runTask (Unknown source) java.util.cur .ThreadPoolExecutor $ Worker.run (Unknown source) java.lang.Thread.run (Unknown source)
springapp-servlet.xml.
<?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.5.xsd">
<bean name="/hello.htm" class="springapp.web.HelloController"/>
</beans>