Resolved: Grails Error – Failed To Install Hibernate when trying to run create Controller

This post is about the error that I encountered when I tried to install and run grails and about how I resolved it.

I had downloaded the latest version of grails from their website and installed it on my windows based workstation. Everything seemed to have worked perfect except when I tried to run the create-controller command, I encountered an error that said

Error Failed to install plugin [hibernate-2.1.0]. Plugin has missing JAR depenencies.


After doing a little bit research, and playing aorund with the tool, I had to do the following steps to resolve this problem.

  1. Downloaded the following jars (You probably can download other versions of these jar files as well)
    • antlr-2.7.6.jar
    • liquibase-core-2.0.5.jar
  2. Added them to /lib folder.
  3. Run the command again.

Just a note, I really didn’t like adding them jar files to the/lib folder, rather I wanted to add it to the grails lib folder itself   But I had to give up as there was extra work creating the dependency files (it looks like grails used Apache Ivy for the dependency management of the jar files), not just dropping the jar files to the folder.

List of Valid Grails Commands

Grails Framework comes with a lot of powerful terminal commands. Here is a list that I populated for the Grails version 2.3.7

  1. grails add-proxy
  2. grails alias
  3. grails bootstrap
  4. grails bug-report
  5. grails clean
  6. grails clean-all
  7. grails clear-proxy
  8. grails compile
  9. grails console
  10. grails create-app
  11. grails create-controller
  12. grails create-domain-class
  13. grails create-filters
  14. grails create-hibernate-cfg-xml
  15. grails create-integration-test
  16. grails create-multi-project-build
  17. grails create-plugin
  18. grails create-pom
  19. grails create-scaffold-controller
  20. grails create-script
  21. grails create-service
  22. grails create-tag-lib
  23. grails create-unit-test
  24. grails create-web-xml-config
  25. grails dbm-changelog-sync
  26. grails dbm-changelog-sync-sql
  27. grails dbm-changelog-to-groovy
  28. grails dbm-clear-checksums
  29. grails dbm-create-changelog
  30. grails dbm-db-doc
  31. grails dbm-diff
  32. grails dbm-drop-all
  33. grails dbm-future-rollback-sql
  34. grails dbm-generate-changelog
  35. grails dbm-generate-gorm-changelog
  36. grails dbm-gorm-diff
  37. grails dbm-list-locks
  38. grails dbm-list-tags
  39. grails dbm-mark-next-changeset-ran
  40. grails dbm-previous-changeset-sql
  41. grails dbm-register-changelog
  42. grails dbm-release-locks
  43. grails dbm-rollback
  44. grails dbm-rollback-count
  45. grails dbm-rollback-count-sql
  46. grails dbm-rollback-sql
  47. grails dbm-rollback-to-date
  48. grails dbm-rollback-to-date-sql
  49. grails dbm-status
  50. grails dbm-tag
  51. grails dbm-update
  52. grails dbm-update-count
  53. grails dbm-update-count-sql
  54. grails dbm-update-sql
  55. grails dbm-validate
  56. grails dependency-report
  57. grails doc
  58. grails generate-all
  59. grails generate-async-controller
  60. grails generate-controller
  61. grails generate-restful-controller
  62. grails generate-views
  63. grails help
  64. grails init
  65. grails install-app-templates
  66. grails install-dependency
  67. grails install-jq-uery
  68. grails install-plugin
  69. grails install-templates
  70. grails integrate-with
  71. grails interactive
  72. grails list-plugin-updates
  73. grails list-plugins
  74. grails migrate-docs
  75. grails package
  76. grails package-plugin
  77. grails plugin-info
  78. grails refresh-dependencies
  79. grails remove-proxy
  80. grails run-app
  81. grails run-script
  82. grails run-war
  83. grails schema-export
  84. grails set-proxy
  85. grails set-version
  86. grails shell
  87. grails stats
  88. grails stop-app
  89. grails test-app
  90. grails tomcat
  91. grails uninstall-plugin
  92. grails upgrade
  93. grails url-mappings-report
  94. grails war
  95. grails wrapper