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 "Matt Sicker (JIRA)" <ji...@apache.org> on 2014/03/06 05:12:44 UTC

[jira] [Comment Edited] (LOG4J2-546) Commons logging integration does not work in servlet 3.0

    [ https://issues.apache.org/jira/browse/LOG4J2-546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13921985#comment-13921985 ] 

Matt Sicker edited comment on LOG4J2-546 at 3/6/14 4:12 AM:
------------------------------------------------------------

Edit: For more useful information, I tested that war in Wildfly 8.0.0.Final on OSX using Java 8, and it did not work.


was (Author: jvz):
For more useful information, I tested that war in Wildfly 8.0.0.Final on OSX using Java 8, and it worked as expected there, too. Interesting. Could this be a Windows issue? Or Java version issue even?

> Commons logging integration does not work in servlet 3.0
> --------------------------------------------------------
>
>                 Key: LOG4J2-546
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-546
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: JCL Bridge
>    Affects Versions: 2.0-rc1
>         Environment: WildFly 8.0 RC1
> Windows 8 64 bit
> Java 7 
>            Reporter: Leos Literak
>            Assignee: Ralph Goers
>         Attachments: CommonsLog.war
>
>
> I created trivial servlet 3.0 based web application that uses apache commons logging. But it does not log, file is created, but it is empty. I added LOG4J2 logger as well and it works. 
> I have following jars in WEB-INF/lib:
> commons-logging-1.1.3.jar json-smart-1.1.1.jar log4j-api-2.0-rc1.jar log4j-core-2.0-rc1.jar log4j-jcl-2.0-rc1.jar
> I can see following info in WF logs:
> 22:48:01,336 INFO [io.undertow.servlet] (MSC service thread 1-11) Log4jServletContainerInitializer starting up Log4j in Servlet 3.0+ environment.
> 22:48:01,688 INFO [io.undertow.servlet] (MSC service thread 1-11) No Log4j context configuration provided. This is very unusual.
> 22:48:01,702 INFO [io.undertow.servlet] (MSC service thread 1-11) Log4jServletContextListener ensuring that Log4j starts up properly.
> Complete application with sources is attached. You need to adjust log location for your environment.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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