Has anyone here tried and tested the Sample Application code that comes for
this book "Struts 2 In Action" ?
I am having hard time to fix it. Currently I am facing the issues in
applicationContext.xml file.

This is the header for XML file that comes with sample application code 

"
<?xml version="1.0" encoding="UTF-8"?>
<!--  This is the Spring configuration file.  This file declares all of the
Spring beans that
                        will be used by the Struts 2 Portfolio, starting with 
Chapter Nine.
-->
                      <beans
xmlns="http://www.springframework.org/schema/beans";
                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
                      xmlns:tx="http://www.springframework.org/schema/tx";
                      xsi:schemaLocation="
                      http://www.springframework.org/schema/beans
http://www.springframework.org/schema   
                      /beans/spring-beans-2.0.xsd
GETTING ERROR AT THIS LINE----    http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-2.0.xsd";>
"

I am getting the error :
org.springframework.beans.factory.BeanDefinitionStoreException: Line 5 in
XML document from ServletContext resource [/WEB-INF/applicationContext.xml]
is invalid; nested exception is org.xml.sax.SAXParseException: Document root
element "beans",
org.xml.sax.SAXParseException: Document root element "beans", must match
DOCTYPE root "null".
        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
Source)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.rootElementSpecified(Unknown
Source)
        at
org.apache.xerces.impl.dtd.XMLDTDValidator.handleStartElement(Unknown
Source)
        at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown
Source)
        at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)


Any insights on this issue?


-- 
View this message in context: 
http://www.nabble.com/Struts-2-In-Action-Sample-Application-tp21798278p21798278.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to