If anyone trying to get an old Java EE Application Server onto Java 8 just for extended support (while of course upgrading the app server, because even Java 8's time is running out), I may have an answer for you.
Your mileage may vary, but by adding ecj-4.5.1.jar to the classpath of my server, this error goes away. I found this artifact in Maven Central here.
In my particular case, this was getting JBoss 5 running on Java 8, and this error appeared when opening the jmx-console, which is heavily used by us.
If like us and you're trying to run old JSP applications, you may also find that you need to update your jaxb-impl.jar to version 2.2.5. This can also be found here.
I'll mention it again that this is a short term fix and you need to prioritize getting off old versions of application servers; this only buys you a little bit of time. Make migration to modern Java technologies a priority.