Paresh Varke created LOG4J2-1320:
------------------------------------
Summary: 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 is giving url path starting from '/content' ?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]