My project uses Grails framework and since we also train people in grails through our project, the project needs to be installed many times on different machines. While installing there are several issues which one encounters and if one is not familiar with the solution, the installation time may increase by at least a couple of hours. I thought I should add my two pence worth on this topic. I shall try to enumerate the common issues and their solutions here. We use grails 2.2.4, ggts-bundle 3.6.4 and JDK 1.8.31. It is better to remove java from the machine if it is not 1.8.31 and replace it with jdk1.8.31. Some java version gives compatibility issues with grails 2.2.4.
Problem 1:Grails requires a JDK. You may get an error message like this -
Solution 1:GGTS does not consult the JAVA_HOME environment variable. The issue can be resolved by using the -VM argument and manually giving the path for JVM. Just add
<path to jdk>/bin/java
at the beginning in the file ggts.ini . Make sure that there is no spaces before the -vm argument. The file should begin with -vm
Problem 2 : You may get the following error message while running the project -
|Error2017-06-1816:54:58,702[Thread-38] ERROR plugins.AbstractGrailsPluginManager-Plugin[i18n:2.0.1] could not reload changes to file [/home/project/grails-app/i18n/messages.properties]:Error starting Sun's native2ascii:
Message: Error starting Sun's native2ascii:
Solution 2 : 1 ) cd to jdk path
2 ) cp lib/tools.jar jre/lib/ext/tools.jar
Problem3 : You may get an error message like this while running the project -
To make it work to get hold of springloaded-1.2.5.RELEASE.jar Put this into grails-2.4.4/lib/org.springframework/springloaded/jars/folder. When you install ggts inside the ggts-bundle folder is grails-2.4.4. So put the file in the above location within the ggts-bundle folder. Re-launch GGTS.
Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.