Friday, February 5, 2016

ADF Essentials 12.2.1 NoClassDefFoundError: org/antlr/runtime/RecognitionException

Hello all, just wanted to share the following regarding to ADF Essentials 12.2.1.

I configured Glassfish to support ADF applications and was able to deploy a demo application. However, when loading the just deployed application I got:

java.lang.NoClassDefFoundError: org/antlr/runtime/RecognitionException

FindJar.com says that class is inside antlr-runtime*.jar So I searched inside Glassfish looking for that file but, of course, it wasn't there. Did a quick search in maven and downloaded the file to:

{GLASSFISH_HOME}/glassfish/domains/domain1/lib

Restarted Glassfish and it's working now. However, why is this library not documented as needed in ADF Essentials documentation or Glassfish Configuration? I posted this question on oracle forums.

Hope it helps.