Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Script1.groovy: Static type checking extension 'typecheckhttpconfig.groovy' was not found on the classpath. #144
Getting below exception when using this library as part of an application but works fine in a Groovy script. The application is typical Groovy and Spring stack, packaged into WAR and deployed to Tomcat. The war/WEB-INF/lib does contain http-builder-ng-core-0.16.1.jar.
The following statement is triggering the problem:
I initially had this statement in the constructor of an @component bean but moving this to within the method whether I need HttpBuilder is still causing the same problem.
Can you upgrade your Tomcat version? This seems to be an issue on older versions. If not, please let me know what version you are using and provide a full stand-alone example.
This issue has been raised a few times now... if nothing else, I guess we need to document the work-around (upgrading, which has worked with the other instances).
You're correct, upgrading to Tomcat 8.0.44 from 7.0.34 fixed the issue.
The other workaround I tried that also worked was to extract the files typecheckhttpconfig.groovy and 59f7b2e5d5a78b25c6b21eb3b6b4f9ff77d11671.groovy and placed them onto my application's war root classpath. Upgrading is obviously the better solution.
Thanks for your help.