# War Deployment - Log4j error

**URL:** <https://forum.servoy.com/t/war-deployment-log4j-error/20246>\
**Category:** Questions\
**Created:** [June 5, 2020, 10:35am UTC](https://forum.servoy.com/t/war-deployment-log4j-error/20246 "2020-06-05T10:35:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gordon\_McLean](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Gordon\_McLean](https://forum.servoy.com/u/Gordon_McLean)\
**Post date:** [June 5, 2020, 10:35am UTC](https://forum.servoy.com/t/war-deployment-log4j-error/20246/1 "2020-06-05T10:35:03Z")

</div>

Hi  
I am getting the following error when deploying a war can anyone explain why or how to fix it please

```auto
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.UnsupportedClassVersionError: com/servoy/j2db/log4j/LoggingServletContainerInitializer : Unsupported major.minor version 52.0 (unable to load class com.servoy.j2db.log4j.LoggingServletContainerInitializer)

```

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [June 5, 2020, 12:13pm UTC](https://forum.servoy.com/t/war-deployment-log4j-error/20246/2 "2020-06-05T12:13:09Z")

</div>

What java are you using to run it?  
it looks like you are running it against java 7 which is not supported anymore

---

<div class="post-metadata">

**Author:** ![Gordon\_McLean](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@Gordon\_McLean](https://forum.servoy.com/u/Gordon_McLean)\
**Post date:** [June 5, 2020, 1:03pm UTC](https://forum.servoy.com/t/war-deployment-log4j-error/20246/3 "2020-06-05T13:03:50Z")

</div>

Thanks we were trying to get this working in Docker and found that the version we had was using 7 JRE 8 fixed the problem

Cheers  
Gordon
