Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve Grails resource not found error for a plugin?

Tags:

grails

I have set up an extremely simple Grails project. I am learning the test framework. I ran:

grails test-app 

The unit test worked as expected. The integration test phase, however, reported an error:

  Starting integration test phase ... 
  2011-05-30 10:10:51,700 [main] ERROR resource.ResourceMeta  - Resource not found: /plugins/jquery-1.6.1.1/js/jquery/jquery-1.6.1.min.js 
  2011-05-30 10:10:51,719 [main] ERROR resource.ResourceMeta  - Resource not found: /plugins/jquery-1.6.1.1/js/jquery/jquery-1.6.1.js 

I verified that I have the jquery plugin installed, and that the missing files are indeed in ~/.grails/plugins. Is there some configuration setting that I have missed?

like image 890
Stephen Gross Avatar asked May 30 '11 23:05

Stephen Gross


1 Answers

What worked with me was replacing

<g:javascript library="jquery"/>

with

<g:javascript library="jquery" plugin="jquery"/>
like image 134
Cristan Avatar answered Oct 09 '22 00:10

Cristan