resource plugin error when upgrading from grails 2.3.8 2.4

前端 未结 3 630
鱼传尺愫
鱼传尺愫 2021-01-13 04:57

Im following the docs trying to upgrade my project from 2.3.8 to 2.4, but I am encountering these error(s)

localhost-startStop-1] ERROR resource.ResourceProc         


        
相关标签:
3条回答
  • 2021-01-13 04:57

    As it says in documentation no longer you need to use resource plugin:

    As of Grails 2.4 the resources plugin has been replaced with the asset-pipeline
    

    now you could use asset plugin instead. use this link and you can easily upgrade your resources from 2.3.8 to 2.4.

    0 讨论(0)
  • 2021-01-13 05:05

    Your web.xml may still contain references to the sitemesh filter:

    http://grails.org/doc/2.4.3/guide/upgradingFrom23.html

    The Sitemesh servlet filter has been removed and the GSP layout feature is now handled by GrailsLayoutView.

    Rename the src/templates folder to src/templates-old, then run grails install-templates. If you previously customised your web.xml, you will need to edit the generated web.xml to make these changes again.

    0 讨论(0)
  • 2021-01-13 05:11

    This is an issue in the jQuery-ui plugin in JqueryUiPluginResources.groovy in the following two lines:

    def appCtx = org.codehaus.groovy.grails.commons.ApplicationHolder.application.mainContext
    
    def plugin = appCtx.pluginManager.getGrailsPlugin('jquery-ui')
    

    The fix for this is present in the following commit: https://github.com/gpc/grails-jquery-ui/pull/13

    0 讨论(0)
提交回复
热议问题