You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Paresh Varke (JIRA)" <ji...@apache.org> on 2016/03/17 12:01:33 UTC

[jira] [Updated] (LOG4J2-1320) Custom plugins are not loaded

     [ https://issues.apache.org/jira/browse/LOG4J2-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paresh Varke updated LOG4J2-1320:
---------------------------------
    Description: 
Hi,
I am using log4j2 version 2.5 with jboss eap 6.2. When i start application server with verbose="true" in log4j2.xml file. I am getting following error:
Could not search jar file '/content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2' for classes matching criteria: annotated with @Plugin file not found java.io.FileNotFoundException: /content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2 (No such file or directory).


By debugging i found in method findInPackage of class ResolverUtil, class loader prepares enum of url (urls = loader.getResources(packageName)).
And it gives "/content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2" as value of urlPath (which is non existing path) instead of giving me absolute path.

Why it gives url path starting from '/content' ?



  was:
Hi,
I am using log4j2 version 2.5 with jboss eap 6.2. When i start application server with verbose="true" in log4j2.xml file. I am getting following error:
Could not search jar file '/content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2' for classes matching criteria: annotated with @Plugin file not found java.io.FileNotFoundException: /content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2 (No such file or directory).


By debugging i found in method findInPackage of class ResolverUtil, class loader prepares enum of url (urls = loader.getResources(packageName)).
And it gives "/content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2" as value of urlPath (which is non existing path) instead of giving me absolute path.

Why it is giving url path starting from '/content' ?




> Custom plugins are not loaded
> -----------------------------
>
>                 Key: LOG4J2-1320
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1320
>             Project: Log4j 2
>          Issue Type: Bug
>    Affects Versions: 2.5
>            Reporter: Paresh Varke
>
> Hi,
> I am using log4j2 version 2.5 with jboss eap 6.2. When i start application server with verbose="true" in log4j2.xml file. I am getting following error:
> Could not search jar file '/content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2' for classes matching criteria: annotated with @Plugin file not found java.io.FileNotFoundException: /content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2 (No such file or directory).
> By debugging i found in method findInPackage of class ResolverUtil, class loader prepares enum of url (urls = loader.getResources(packageName)).
> And it gives "/content/myapp.ear/service-app.war/WEB-INF/classes/com/logging/appender/log4j2" as value of urlPath (which is non existing path) instead of giving me absolute path.
> Why it gives url path starting from '/content' ?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org