Bug 52450

Summary: Add setter for entityResolver in jasper's ParserUtils
Product: Tomcat 7 Reporter: Alexander Kurtakov <akurtakov>
Component: JasperAssignee: Tomcat Developers Mailing List <dev>
Severity: normal    
Priority: P2    
Version: 7.0.23   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: Patch

Description Alexander Kurtakov 2012-01-11 10:35:45 UTC
Created attachment 28138 [details]

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!