Do you have any characters - even whitespace - before the beginning of the
xml in the xml file?





"James Mitchell" <[EMAIL PROTECTED]> on 05/16/2002 08:54:16 PM

Please respond to "Struts Users Mailing List"
      <[EMAIL PROTECTED]>

To:   "Struts Users Mailing List" <[EMAIL PROTECTED]>,
      <[EMAIL PROTECTED]>
cc:    (bcc: Kevin Bedell/Systems/USHO/SunLife)
Subject:  RE: Digester/SAX parse error problem


I got that one time when I was passing the wrong static final constant
config filename to a home grown OR mapping tool.
I was passing the app resources filename when it was expecting an xml file.

Not sure if that helps........oh well!

JM

> -----Original Message-----
> From: Wojtek Rappak [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 16, 2002 11:29 AM
> To: [EMAIL PROTECTED]
> Subject: Digester/SAX parse error problem
>
>
> Hi,
>
> I tried to use the struts-example application as a simple
> template and made
> a few simple changes to the struts-config.xml and web.xml files.  These
> parse OK in my XML editors.  However, when I deploy the
> application I get a
> 'content not allowed in prolog' SAX parse exception:
>
> ==>[catalina log fragment]
> starting service Tomcat-Standalone
> Apache Tomcat/4.0.3
> PARSE error at line 1 column 1
> org.xml.sax.SAXParseException: Content is not allowed in prolog.
> <*************************?
> register('-//Apache Software Foundation//DTD Struts Configuration
> 1.0//EN',
> 'jar
> :file:C:/Program Files/Apache Tomcat
> 4.0/webapps/Reg2/WEB-INF/lib/struts.jar!/or
> g/apache/struts/resources/struts-config_1_0.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
> 'jar:file:C:/
> Program Files/Apache Tomcat
> 4.0/webapps/Reg2/WEB-INF/lib/struts.jar!/org/apache/
> struts/resources/web-app_2_2.dtd'
> register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
> 'jar:file:C:/
> Program Files/Apache Tomcat
> 4.0/webapps/Reg2/WEB-INF/lib/struts.jar!/org/apache/
> struts/resources/web-app_2_3.dtd'
> resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
> 1.0//EN',
>  'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
>  Resolving to alternate DTD 'jar:file:C:/Program Files/Apache Tomcat
> 4.0/webapps
> /Reg2/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-c
> onfig_1_0.
> dtd'
>
> New org.apache.struts.action.ActionFormBean
> (etc...)
> <====
>
> My struts-config.xml prolog looks healthy enough.  In any event,
> the prolog
> section is exactly like the one in struts-example which does not
> throw this
> exception.
>
> I kept looking at the Digestor source code to try to understand what is
> happening - with no luck.  Has anyone seen this before?
>
>
> Wojtek Rappak
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <
mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
mailto:[EMAIL PROTECTED]>







---------------------------------------------------------------------------
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---------------------------------------------------------------------------


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to