You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2004/06/06 13:01:17 UTC

DO NOT REPLY [Bug 29410] New: - confusing digester error while parsing element

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29410>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29410

confusing digester error while parsing <data-sources> element

           Summary: confusing digester error while parsing <data-sources>
                    element
           Product: Tomcat 5
           Version: 5.0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Webapps:Documentation
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: uplawski@web.de


The following error is logged upon parsing a struts-config.xml: 
--------------- 
12:13:31 ERROR Digester(1439) - Parse Error at line 46 column 17: The content 
of element type "struts-config" must match 
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)". 
org.xml.sax.SAXParseException: The content of element type "struts-config" must 
match 
"(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)". 
--------------- 
 
The error is caused by a correctly configured <data-sources /> section. The 
error is avoided by moving the <data-sources /> section to the top of the 
struts_config.xml (first child of <struts-config>). 
 
Please include these facts _also in the HOWTO-documentation_ (and in the books, 
where applicable). Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org