Even if I use the top content form your applicationContext.xml in chapter 4,
I get the same error..so wondering what else could eb the issue.

Here is what I used this time :
1 <?xml version="1.0" encoding="UTF-8"?>
2 <beans xmlns="http://www.springframework.org/schema/beans";
3        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
4        xmlns:tx="http://www.springframework.org/schema/tx";
5        xsi:schemaLocation="http://www.springframework.org/schema/beans 
6    http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
7    http://www.springframework.org/schema/tx 
8    http://www.springframework.org/schema/tx/spring-tx-2.0.xsd";>
 
and the error still says... 

org.springframework.beans.factory.BeanDefinitionStoreException: Line 8 in
XML document from ServletContext resource [/WEB-INF/applicationContext.xml]
is invalid; nested exception is org.xml.sax.SAXParseException: Document root
element "beans", must match DOCTYPE root "null".
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)



Wes Wannemacher wrote:
> 
> On Tuesday 03 February 2009 14:54:55 SanJ.SANJAY wrote:
>> Has anyone faced this issue with Sample application??
>>
>> SanJ.SANJAY wrote:
>> > 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.
>> >
> 
> I have the following in my applicationContext.xml on the top - 
> 
> <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
>     http://www.springframework.org/schema/tx
>     http://www.springframework.org/schema/tx/spring-tx-2.0.xsd";>
> 
> It is available as an example app for my work-in-progress... You can
> browse 
> the code here - 
> 
> http://code.google.com/p/struts2inpractice/source/browse/#svn/trunk/ch04ex01
> 
> (it is the ch04ex01 example app).
> 
> I don't get any parse errors. I vaguely remember issues parsing XML in
> tomcat 
> because some versions come with an XML parser in the common lib directory
> (I 
> think the windows version comes with it) and other versions do not. I
> could be 
> wrong here, my memory is getting sketchy in my old age, and I'm not
> convinced 
> this is your problem.
> 
> -Wes
> 
> -- 
> 
> Wes Wannemacher
> Author - Struts 2 In Practice 
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Struts-2-In-Action-Sample-Application-tp21798278p21817842.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