From: Aplaws D. L. <apl...@li...> - 2009-06-03 11:09:27
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7424607 By: pboy Brett, | You must be refering to packages other than ccm-core or ccm-cms. | I do not use the other packages so don't know about how they | include other XML templates. Yes indeed, mostly those packages which used to install into their own web context as ccm-userpreferences, or ccm-ldn-themes as an example. They contain include statements like "../../../../ROOT/static/.......", because they directly use resources from modules installed into ROOT (and vice versa) - very strange design. I startet to check all the xml files and to remove all absolute adressing. I studied your hints about SimpleURIResolver - and I'm wondering a little bit about the design decisions behind it. I think XML templates, which render a xml information to html, are very private to the module which maintains that information. It should never be used by any other module directly, and even more so by another web application (if there is a need to access that information, an jee service or a content type as proxy site or xmlfeed should be used). So I would expect a real "Simple" way would be to resolve any xsl template as a resource relative to it's own context. Things are even worse with the parameter waf.web.server, which must contain the correct url including the port, otherwise c.ad.templating.XSLTemplate can not find the resource (fails at line 100). I suppose, an application user should not be forced to take the system administrators cnfiguration philosophy into account. Why not fetch it from the we applications context? Even more worse with c.ad.caching.CacheServlet. It reads the host's name and port from a persistent database table (we have no maintenance tool as to my knowledge). So every time the system administrator modifies e.g. the port, we either produce a bunch of log errors or we have to manually edit the database. Do you have a solution / idea for these latter two issue as well? I'm eager to study your patch. Peter ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=368401 |