DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8565>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=8565 MyEntityResolver doesn't allow including user-defined entities Summary: MyEntityResolver doesn't allow including user-defined entities Product: Tomcat 4 Version: Nightly Build Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I'm trying to actually use JspC to pregenerate servlets from JSP, compile the servlets, and including the generated servlet mappings as a public entity in my "web.xml" file. Unfortunately, my build process fails with the following error ("webinc" is my public entity id): 2002-04-25 12:52:39 - Exception initializing TldLocationsCache: XML parsing error on file /WEB-INF/web.xml: Invalid PUBLIC ID: webinc This is happening because the MyEntityResolver.resolveEntity() function (either in "ParserUtils.java" or "JspUtil.java") is throwing an exception if the public id is NOT one of the public entities of either the webapp 2.2 or 2.3 dtds, or the taglib 1.1 or 1.2 dtds. This essentially prevents the use of user-defined entities. The proper workaround for this (I believe, and Attila Szegedi concurs) is for the function to just return null, instead of throwing an exception. This will propagate back to the default EntityResolver (I think) and do the lookup for the user-defined entity. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>