• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!