I will try to do it bw today and tomorrow.
From what I see in code in pluginmanager:
private static PluginRegistry<PluginType<?>> decode(final ResourceLoader
loader) {
final Enumeration<URL> resources;
try {
resources = loader.getResources(PluginProcessor.PLUGIN_CACHE_FILE);
if (resources == null) {
return null;
}
} catch (final IOException ioe) {
LOGGER.warn("Unable to preload plugins", ioe);
return null;
}
final PluginRegistry<PluginType<?>> map = new
PluginRegistry<PluginType<?>>();
while (resources.hasMoreElements()) {
It cannot load PluginProcessor.PLUGIN_CACHE_FILE
resources.hasMoreElements() == false
Probably a classloading issue since PluginProcessor.PLUGIN_CACHE_FILE exists on
the jar file
-----Mensaje original-----
De: Remko Popma [mailto:[email protected]]
Enviado el: jueves, 17 de julio de 2014 15:03
Para: Log4J Users List
Asunto: Re: Converter Plugin not loaded
Would it be possible to provide a small sample project that demonstrates the
problem?
You may want to create a Jira ticket to attach files to (the mailing list
software does not like attachments).
Remko
On Thu, Jul 17, 2014 at 10:00 PM, Yair Ogen (yaogen) <[email protected]>
wrote:
> Just recently joined the mailing list - can you please share?
>
> Yair
>
> -----Original Message-----
> From: Jaime Sastre [mailto:[email protected]]
> Sent: Thursday, July 17, 2014 15:59
> To: Log4J Users List
> Subject: RE: Converter Plugin not loaded
>
> I think it is related to my issue (previous email)
>
> -----Mensaje original-----
> De: Yair Ogen (yaogen) [mailto:[email protected]] Enviado el: jueves,
> 17 de julio de 2014 14:43
> Para: [email protected]
> Asunto: Converter Plugin not loaded
>
> I am trying to extend log4j2.
>
> I created my own configuration factory that is loaded just fine. In
> there I give it a default pattern with some new converters.
>
> I created a converter with the needed annotations. However, seems that
> the plugin manager is not picking these up. Only plugins that exists
> in "" are actually loaded.
>
> What am I missing?
>
> Yair
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>