GWT Plugin
  1. GWT Plugin
  2. GPGWT-90

Apparent conflict between GWT Plugin and Grails 2.x Resources Plugin

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.1
    • Fix Version/s: 0.8
    • Labels:

      Description

      When running an app using the GWT Plugin 0.6.1 and Grails 2.01, attempting to load GWT resources results in "resource not found" errors such as:

      Loading a file such as "/grailstest3/static/gwt/org.example.MyApp/F9F2456FACABA10057328763999B2F31.cache.html" it returns "The requested resource () is not available".

      If I go into the BuildConfig and comment out the runtime plugin for Resources 1.1.6, the application will function correctly. Unfortunely, I'm a Grails noob so I have no idea why this might be happening, but since I didn't see an issue for it I wanted to raise it. Thanks for the great work.

        Activity

        Hide
        Brian Kotek added a comment -

        In case it helps anyone else, I was able to get the plugin working with the new Resources plugin by adding this to my Config.groovy file:

        grails.resources.adhoc.excludes = ['**/gwt/**']

        Show
        Brian Kotek added a comment - In case it helps anyone else, I was able to get the plugin working with the new Resources plugin by adding this to my Config.groovy file: grails.resources.adhoc.excludes = ['**/gwt/**']
        Hide
        Victor Benarbia added a comment -

        With Grails 2.0+ until 2.0.4.

        In your config.groovy :
        // What URL patterns should be processed by the resources plugin
        grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*', '/gwt/*']
        grails.resources.debug = true
        grails.resources.modules = {}

        And, everything works beautyfully...

        Show
        Victor Benarbia added a comment - With Grails 2.0+ until 2.0.4. In your config.groovy : // What URL patterns should be processed by the resources plugin grails.resources.adhoc.patterns = ['/images/*', '/css/*', '/js/*', '/plugins/*', '/gwt/*'] grails.resources.debug = true grails.resources.modules = {} And, everything works beautyfully...
        Hide
        Rob Purcell added a comment -

        I've updated the plugin to use the new Grails 2 Resources approach, so support for gzip and caching should be possible too.

        Note that the 'grails.resources.debug = true' approach actually switches off the Resources plugin, which would be a shame (but is why the above approach seems to work).

        Show
        Rob Purcell added a comment - I've updated the plugin to use the new Grails 2 Resources approach, so support for gzip and caching should be possible too. Note that the 'grails.resources.debug = true' approach actually switches off the Resources plugin, which would be a shame (but is why the above approach seems to work).

          People

          • Assignee:
            Rob Purcell
            Reporter:
            Brian Kotek
          • Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: