You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2002/06/26 18:11:02 UTC
DO NOT REPLY [Bug 10255] New: -
FOP Cannot be embeded in Tomcat 4.0.4
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=10255>.
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=10255
FOP Cannot be embeded in Tomcat 4.0.4
Summary: FOP Cannot be embeded in Tomcat 4.0.4
Product: Fop
Version: all
Platform: All
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: general
AssignedTo: fop-dev@xml.apache.org
ReportedBy: vicentesalvador@netscape.net
FOP needs to get the Classloader of org.apache.fop.fo.ElementMapping.class to
start, but in TC4.0.4 we cannot access to classloader. This is an issue that
blocks the use of embeded FOP in TC 4.0.4
This is due a security change on TC, so the best solution is to patch FOP and
don't say "This is a TC issue"
// add mappings from available services
Enumeration providers =
Service.providers(org.apache.fop.fo.ElementMapping.class);
if (providers != null) {
while (providers.hasMoreElements()) {
String str = (String)providers.nextElement();
try {
addElementMapping(str);
} catch (IllegalArgumentException e) {}
}
}
class Service {
static Hashtable providerMap = new Hashtable();
public static synchronized Enumeration providers(Class cls) {
ClassLoader cl = cls.getClassLoader(); ----- wil return null on tomcat
4.04!!!!
String serviceFile = "META-INF/services/" + cls.getName();
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org