One useful piece of info about using mail.jar as a Nutch plugin:

If mail.jar is installed as a plugin, then the META-INF/mailcap file may not be found from mail.jar.

javax.activation.MailcapCommandMap searches mailcap from a number of places, but it will call SecuritySupport.getContextClassLoader() to load mailcap from 'resources'. This returns Thread.currentThread().getContextClassLoader() to get the classloader, which is not the PluginClassLoader, so does not find it.

Antony




Antony Bowesman wrote:
Argh, sorry for the noise! After lots of digging, I found that my plugin classes were also in my app jar file, so it was loaded by the parent class loader, not the plugin class loader.

Regards
Antony




Reply via email to