Bug 52450 - Add setter for entityResolver in jasper's ParserUtils
Add setter for entityResolver in jasper's ParserUtils
Status: RESOLVED FIXED
Product: Tomcat 7
Classification: Unclassified
Component: Jasper
7.0.23
PC Linux
: P2 normal (vote)
: ---
Assigned To: Tomcat Developers Mailing List
:
Depends on:
Blocks:
  Show dependency tree
 
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!