# Bonita 2022-1:  LOG4j2 not working on Apache Tomcat 9

**URL:** <https://community.ofelia.com/t/bonita-2022-1-log4j2-not-working-on-apache-tomcat-9/11325>\
**Category:** Q&A\
**Created:** [24 August 2022 13:26 UTC](https://community.ofelia.com/t/bonita-2022-1-log4j2-not-working-on-apache-tomcat-9/11325 "2022-08-24T13:26:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordicato](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/jordicato/32/837_2.png) [@jordicato](https://community.ofelia.com/u/jordicato)\
**Post date:** [24 August 2022 13:26 UTC](https://community.ofelia.com/t/bonita-2022-1-log4j2-not-working-on-apache-tomcat-9/11325/1 "2022-08-24T13:26:19Z")

</div>

```
Hello, I can't configure the logs with LOG4J2 in Bonita 2022-1 with an Apache Tomcat 9.
If I run start-bonita.bat it works perfectly. If it is run as Service it doesn't work. Any ideas ?
```

```
Does anyone know how to configure it?

Thank you
```

---

<div class="post-metadata">

**Author:** ![jordicato](https://dub1.discourse-cdn.com/flex013/user_avatar/community.ofelia.com/jordicato/32/837_2.png) [@jordicato](https://community.ofelia.com/u/jordicato)\
**Post date:** [30 August 2022 14:25 UTC](https://community.ofelia.com/t/bonita-2022-1-log4j2-not-working-on-apache-tomcat-9/11325/2 "2022-08-30T14:25:46Z")

</div>

Hi all,,

I have found the solution. I detail it.

&nbsp;

In the Windows Service configuration, you have to add the 6 existing jar files in the ./server/lib/ext folder to the classpath and it works perfectly.

&nbsp;

Best regards.
