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]>

Reply via email to