Bug 52450 - Add setter for entityResolver in jasper's ParserUtils
Summary: Add setter for entityResolver in jasper's ParserUtils
Status: RESOLVED FIXED
Alias: None
Product: Tomcat 7
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 7.0.23
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 10:35 UTC by Alexander Kurtakov
Modified: 2012-01-11 11:05 UTC (History)
0 users



Attachments
Patch (704 bytes, patch)
2012-01-11 10:35 UTC, Alexander Kurtakov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kurtakov 2012-01-11 10:35:45 UTC
Created attachment 28138 [details]
Patch

In some cases (e.g. OSGi web modules) jasper.jar and dtds will be in different classloaders making the need for setting up custom entity resolver so dtds can be retrieved. A simple patch is attached.
This is already added in Glassfish's jasper fork and Jetty project is making use of it. Applying the patch will allow using Tomcat's Jasper in Jetty instead of Glassfish's one. See http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/jetty-osgi/jetty-osgi-boot-jsp/src/main/java/org/eclipse/jetty/osgi/boot/jasper/WebappRegistrationCustomizerImpl.java?id=306947b1420beed76c772e546eb3120b3bf4b112#n181 for details about the change and why it was needed.
Comment 1 Mladen Turk 2012-01-11 11:05:18 UTC
Patch applied. Thanks!