Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Other Application Frameworks and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark ""Document root element "beans", must match DOCTYPE root" problem" Watch ""Document root element "beans", must match DOCTYPE root" problem" New topic
Author

"Document root element "beans", must match DOCTYPE root" problem

Yves Laurent
Greenhorn

Joined: Aug 27, 2008
Posts: 2
Hi,

I just don't understand this error. Appreciate your help.

Thanks in advance.

index.jsp:
<%@ page session="true" %> <%-- make sure we have a session --%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<BODY>
<DIV align="left">TM - A Spring Web Flow Nightmare</DIV>
<HR>
<DIV align="left">
<P>
<A href="a_c.htm?_flowId=edit-flow">a_c</A>
</P>
<P>
This sample application illustrates core features of the web flow system.
</P>
</DIV>
<HR>
<DIV align="right"></DIV>
</BODY>
</HTML>

Web.xml:



tm-servlet-config.xml:


tm-webflow-config.xml



edit-flow.xml:


active_campaigns.jsp:
Yves Laurent
Greenhorn

Joined: Aug 27, 2008
Posts: 2
error message:
root cause
org.springframework.beans.factory.BeanDefinitionStoreException: Line 6 in XML document from ServletContext resource [/WEB-INF/tm-servlet-config.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Document root element "beans", must match DOCTYPE root "null".
 
 
subject: "Document root element "beans", must match DOCTYPE root" problem