18 May 20:34
Re: InternationalizedException doesn't look for resources in extension ClassLoader
Kirk True wrote: > Hi all, > > Summary: > > org.apache.uima.InternationalizedException's getLocalizedMessage > doesn't account for the use of an "extension" class path when loading > message resources. For applications that use extension class paths, the > resource is therefore not found. [...] Yes, that's a known issue. There is one trick you can use: don't use InternationalizedException directly, but inherit from it. Bundle this exception class with your pear. Since message localization is done in the exception class, the correct class loader will then be used and your message bundle will be found. It's a bit of a hack, but it works--Thilo
--Thilo
RSS Feed