Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7176021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:25:22+00:00 2026-05-28T16:25:22+00:00

I am new to using Grails plugins and this is most likely a novice

  • 0

I am new to using Grails plugins and this is most likely a novice mistake, but I cannot find documentation that helps me, so here we go.

I have added the following file to grails-app/conf : appResources.groovy

//appResources.groovy
modules = {
     css{
         resource url:"/css/main.css"
     }
}

and in my layout file main.gsp I use <r:layoutResources /> in the head and right before </body>. So far so good no errors.

Now in my view gsp I have this (in part):

//myView.gsp
<head>
    <title>title</title>
    <meta name="layout" content="main" />
    <r:require      module="css"       />
</head>

When go to view the page I now get the following error:

Exception Message: No module found with name [css]
Caused by: Error executing tag <g:applyLayout>: Error executing tag <r:layoutResources>: ...

I’ve done my reading, and I think I need to do something in Config.groovy to get grails to read appResources.groovy but I have no idea what to write. Thanks everyone!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:25:23+00:00Added an answer on May 28, 2026 at 4:25 pm

    The standard filename is ApplicationResources.groovy. It will be picked up automatically.

    Be sure to set grails.resources.work.dir in Config.groovy to a stable location in order to prevent missing resource issues in production deployment.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am fairly new at using the ASP.NET MVC framework and was hoping that
I'm new to Grails (but not to Groovy or web development). I'm trying to
Using Grails and CXF, I have published a small web service that looks like
Using Grails 2.0.0 I am created service, that creates instances of Player class and
I'm using Grails and I have a local-plugin (that I wrote) that I'm using
I am a newbie just started exploring Grails so that I can recommend this
i m new to Grails and using some Shiro security. I have made a
I'm using Grails 1.3.7. I have some code that uses the built-in base64Encode function
I'm using Grails 1.3.2 in NetBeans. I have a very simple unit test that
I am new to grails, coming from Django. Using test driven development, I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.