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: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]