Category Archives: Software

Upgrade from Grails 2.2.2 to 2.4.1

Here’s what was necessary for me to upgrade handful of Grails projects to 2.4.1: Change the grails.version in application.properties grails clean is your friend when changing dependencies change hibernate, tomcat and resources plugin versions to latest kick out the spock … Continue reading

Posted in Software | 12 Comments

Setting up a Ubuntu VM with Vagrant and Ansible on Windows

As Ansible has no out-of-the-box support for running on Windows, there’s some tweaking to do. Please note that these instructions just run Ansible against a vagrant managed VM, no Vagrant Ansible provisioning is involved. You’ll install cygwin (+ some packages … Continue reading

Posted in Software | Leave a comment

Grails – “Error An error occurred loading the grails-app/conf/BuildConfig.groovy file: null”

If you get this error, check if there’s another (wrong) groovy version on your classpath. For me this happened in IntelliJ because I had @Grab’ed a third party library that depended on an older groovy version, and IntelliJ adds @Grab’ed … Continue reading

Posted in Software | Leave a comment

Workaround for Batik’s NoClassDefFoundError/ClassNotFoundException: TruncatedFileException

Batik’s JPEGRegistryEntry that is repsonsible for handling inline JPEGs in SVGs contains a reference to TruncatedFileException, which is specific to the Sun/Oracle JDK (as well as other classes used in the same code). If you’re running e.g. on OpenJDK, you’ll … Continue reading

Posted in Software | Leave a comment

RuntimeException: No suitable ClassLoader found for grab – Grab with main method in IntelliJ

When running a Groovy class with a main method from IntelliJ (12.1.5) that also uses grape @Grab, you get a Exception in thread “main” java.lang.ExceptionInInitializerError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:188) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:113) Caused by: java.lang.RuntimeException: No suitable ClassLoader found for … Continue reading

Posted in Software | Leave a comment