This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
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".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "Document root element "beans", must match DOCTYPE root" problem
 
It's not a secret anymore!