[jboss-jira] [JBoss JIRA] Closed: (JBLOGGING-7) searching for log4j even when jboss-logging-log4j.jar is not in classpath

Adrian Brock (JIRA) jira-events at lists.jboss.org
Tue Oct 14 09:27:21 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBLOGGING-7?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Brock closed JBLOGGING-7.
--------------------------------

    Resolution: Incomplete Description


Attach a reproducable testcase.

> searching for log4j even when jboss-logging-log4j.jar is not in classpath
> -------------------------------------------------------------------------
>
>                 Key: JBLOGGING-7
>                 URL: https://jira.jboss.org/jira/browse/JBLOGGING-7
>             Project: JBoss Logging
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>         Environment: JBoss AS trunk 5 CR2
>            Reporter: Aleksandar Kostadinov
>            Assignee: Dimitris Andreadis
>
> See http://lists.jboss.org/pipermail/jboss-development/2008-October/012662.html for the discussion. Generally I don't have jboss-logging-log4j.jar in my classpath but I see an error that org/apache/log4j/Priority is not found. Application doesn't terminate but such an error is highly undesirable.
> I check to be sure it is not in classpath by
> Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());
> Thread.currentThread().getContextClassLoader().loadClass("org.jboss.logging.log4j.Log4jLoggerPlugin");
> It throws
> java.lang.ClassNotFoundException: org.jboss.logging.log4j.Log4jLoggerPlugin
> I don't need any logging and need to have logging somehow disabled or silent in the most non-disruptive way. I mean I don't want to disable it with my code if the underlying application uses it but I don't want error messages in case the rest of the application doesn't know about jboss-logging at all.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list