You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Johannes Geppert <jo...@apache.org> on 2015/06/15 08:56:45 UTC

Re: Log4j2 doesn't work with Google AppEngine

If we don't get it running with log4j2 on appengine then another option is
maybe to not use log4j2 core in the appengine application.
The users could use slf4j together with a log4j2 -> slf4j bridge.

http://logging.apache.org/log4j/log4j-2.1/log4j-to-slf4j/index.html


Johannes



#################################################
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep


2015-05-29 12:34 GMT+02:00 Lukasz Lenart <lu...@apache.org>:

> Nope, it didn't help
>
> 2015-05-29 12:25 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
> > 2015-05-29 11:34 GMT+02:00 Johannes Geppert <jo...@gmail.com>:
> >> According to Stackoverflow [1] you need to disable <property
> >> name="log4j2.disable.jmx" value="true" /> in appengine-web.xml.
> >> Also it should be already solved in log4j2 beta.
> >>
> >> [1]
> >>
> http://stackoverflow.com/questions/16979283/problems-with-using-log4j-2-in-gae
> >
> > I will try but it's a different exception. StatusLogger is trying to
> > access SystemClassLoader which is prohibited.
> >
> >
> > Regards
> > --
> > Łukasz
> > + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Log4j2 doesn't work with Google AppEngine

Posted by Lukasz Lenart <lu...@apache.org>.
2015-06-15 9:30 GMT+02:00 Johannes Geppert <jo...@apache.org>:
> Great news! :-)
>
> Do you know what exactly the problem and solution was?

Changes in code ;-)

https://github.com/apache/logging-log4j2/commit/1ab494651e3ebcaa292fd1ac395054043f69837a
https://github.com/apache/logging-log4j2/commit/4fba3c46052ba79bbfb20b9ab25041fafcdc4213
https://github.com/apache/logging-log4j2/commit/d55f00fbff5dcb69138734e2734723f5d693bf5b


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

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


Re: Log4j2 doesn't work with Google AppEngine

Posted by Johannes Geppert <jo...@apache.org>.
Great news! :-)

Do you know what exactly the problem and solution was?

#################################################
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep


2015-06-15 9:03 GMT+02:00 Lukasz Lenart <lu...@apache.org>:

> Not an issue anymore, I was able to resolve all the problems with
> Gary's help and now Log4j2 works without any problems on Google
> AppEngine - they must just release 2.4 version as all changes are in
> the master branch ;-)
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2015-06-15 8:56 GMT+02:00 Johannes Geppert <jo...@apache.org>:
> > If we don't get it running with log4j2 on appengine then another option
> is
> > maybe to not use log4j2 core in the appengine application.
> > The users could use slf4j together with a log4j2 -> slf4j bridge.
> >
> > http://logging.apache.org/log4j/log4j-2.1/log4j-to-slf4j/index.html
> >
> >
> > Johannes
> >
> >
> >
> > #################################################
> > web: http://www.jgeppert.com
> > twitter: http://twitter.com/jogep
> >
> >
> > 2015-05-29 12:34 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
> >
> >> Nope, it didn't help
> >>
> >> 2015-05-29 12:25 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
> >> > 2015-05-29 11:34 GMT+02:00 Johannes Geppert <jo...@gmail.com>:
> >> >> According to Stackoverflow [1] you need to disable <property
> >> >> name="log4j2.disable.jmx" value="true" /> in appengine-web.xml.
> >> >> Also it should be already solved in log4j2 beta.
> >> >>
> >> >> [1]
> >> >>
> >>
> http://stackoverflow.com/questions/16979283/problems-with-using-log4j-2-in-gae
> >> >
> >> > I will try but it's a different exception. StatusLogger is trying to
> >> > access SystemClassLoader which is prohibited.
> >> >
> >> >
> >> > Regards
> >> > --
> >> > Łukasz
> >> > + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: dev-help@struts.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>

Re: Log4j2 doesn't work with Google AppEngine

Posted by Lukasz Lenart <lu...@apache.org>.
Not an issue anymore, I was able to resolve all the problems with
Gary's help and now Log4j2 works without any problems on Google
AppEngine - they must just release 2.4 version as all changes are in
the master branch ;-)


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2015-06-15 8:56 GMT+02:00 Johannes Geppert <jo...@apache.org>:
> If we don't get it running with log4j2 on appengine then another option is
> maybe to not use log4j2 core in the appengine application.
> The users could use slf4j together with a log4j2 -> slf4j bridge.
>
> http://logging.apache.org/log4j/log4j-2.1/log4j-to-slf4j/index.html
>
>
> Johannes
>
>
>
> #################################################
> web: http://www.jgeppert.com
> twitter: http://twitter.com/jogep
>
>
> 2015-05-29 12:34 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
>
>> Nope, it didn't help
>>
>> 2015-05-29 12:25 GMT+02:00 Lukasz Lenart <lu...@apache.org>:
>> > 2015-05-29 11:34 GMT+02:00 Johannes Geppert <jo...@gmail.com>:
>> >> According to Stackoverflow [1] you need to disable <property
>> >> name="log4j2.disable.jmx" value="true" /> in appengine-web.xml.
>> >> Also it should be already solved in log4j2 beta.
>> >>
>> >> [1]
>> >>
>> http://stackoverflow.com/questions/16979283/problems-with-using-log4j-2-in-gae
>> >
>> > I will try but it's a different exception. StatusLogger is trying to
>> > access SystemClassLoader which is prohibited.
>> >
>> >
>> > Regards
>> > --
>> > Łukasz
>> > + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
>> For additional commands, e-mail: dev-help@struts.apache.org
>>
>>

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