I am a bit confused. If you are trying to run a web application what is Maven 
doing in the picture? That would indicate you are having some trouble during 
your build, not when you are running your web application.

Ralph

> On Jul 3, 2015, at 7:38 AM, Jose Luis Valencia <jvalen...@rocoto.com.pe> 
> wrote:
> 
> ​I am working with Java components that use JUL in a web application and I
> am not able to get JUL logs routed to log4j 2, I added the required maven
> dependency for log4j-jul and set
> -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager ​in the
> command line but maven gives an NoSuchClassexception because
> org.apache.logging.log4j.jul.LogManager is not yet loaded and by
> System.setProperty() in a spring CustomWebApplicationInitializer but
> https://logging.apache.org/log4j/log4j-2.2/log4j-jul/index.html says it
> must be called before any call of to LogManager or Logger. ¿Where I should
> set the system property in a web application?
> 
> Thank you!
> 
> *JOSÉ L. VALENCIA G.*​



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-user-h...@logging.apache.org

Reply via email to