• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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".

 
Greenhorn
Posts: 2
Eclipse IDE Angular Framework Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should add this before the <beans> element:

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" <br /> "http://www.springframework.org/dtd/spring-beans.dtd">
 
momo zyooz
Greenhorn
Posts: 2
Eclipse IDE Angular Framework Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i guess my last idea's wrong, but someone said that the solution's that the spring jar file was an old version (1.x or something like this) and if we change it to a new jar version it should work without DTD.
 
The harder I work, the luckier I get. -Sam Goldwyn So tiny. - this ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic