Simon Groenewolt <[EMAIL PROTECTED]> wrote:
> Today I stumbled upon a confusing situation involving an application 
> (Forum) that has a jar that contains it's own taglibcontent.xml file. 

That makes no sense. There should be only one jar with taglibcontent.xml:
mmbase-taglib.jar.

> This file was found (by the classloader) before the taglibcontent.xml in 
> mmbase-taglib.jar was found and caused the new 'links' escaper not to be 
> found anymore.
> 
> I now have a conflicting situation: the mmbase-taglib.jar contains some 
> needed settins, and the mmbase-mmbob.jar (the jar holding the Forum 
> application) _also_ contains some needed settings, but there is no way 
> to use both, and no way to know which one will be found first (unless 
> you know the way the appserver's classloader works).
> 
> Probably a system where applications can define their own extensions for 
> the taglibcontent.xml file is needed.

You can place the taglibcontent.xml under WEB-INF/classes to enforce letting
it be found first by the class-loader.

I repeat, it does not make sense the have 2 jars with taglibcontent.xml.

 
> I think that if you want to signal possible versioning conflicts with 
> multiple taglibcontent.xml's in the current situation it's probably best 
> to seal the org.mmbase.bridge.jsp.taglib.resources package, this will at 
> least give you an error while starting mmbase instead of an error 
> somewhere in a page after you add a jar.

Perhaps yes, how do we do that?


For the moment there is no way to 'extend' taglibcontent.xml, you can only
replace it by putting your own version in WEB-INF/classes.

I suppose things were added to your taglibcontent.xml and I would propose
that these things are offered to the community for inclusion in the 'the'
taglibcontent.xml, for the next version of mmbase-taglib.jar.

If such things prove to be too specific for certain applications then I'd
propose to implement support for extra taglibcontent xml's somewhere under
WEB-INF/config (preferably taking into consideration that eventually mmbase
could be a 'war', so those xml's must also be able to be a resource rather
then a file).


Michiel

-- 
Michiel Meeuwissen       |
Mediapark C101 Hilversum | 
+31 (0)35 6772979        |  I hate Internet
nl_NL eo_XX en_US        |
mihxil'                  |
 [] ()                   |

Reply via email to