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 8419111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:31:16+00:00 2026-06-10T02:31:16+00:00

I created a Grails plugin and created a domain class in it called Config

  • 0

I created a Grails plugin and created a domain class in it called Config:

package com.company.common

class Config {

    String defaultTimeZone
    String defaultLanguage
}

In another Grails project, I’m including the plugin and I have this line in Bootstrap.groovy:

import com.company.common.Config

Every time I try to run the project though, I get this error:

C:\Code\grails-app\conf\BootStrap.groovy: 4: unable to resolve class com.company.common.Config

It works if I have the Config domain class in the same Grails project. It also seems to work if I rename it to something like ProjectConfig in the plugin project.

Does anyone know why I can’t reference a domain class called Config in another project?

P.S. All the other domain classes in the plugin project can be accessed from the main Grails project, only the Config class gives me problems.

  • 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-06-10T02:31:18+00:00Added an answer on June 10, 2026 at 2:31 am

    Grails plugins have specific files that are removed when packaging the plugin (so you can use them for testing). You can find the list here Grails Plugins #Creating and Installing Plugins. For convenience, here is the list:

    grails-app/conf/BootStrap.groovy
    grails-app/conf/BuildConfig.groovy (although it is used to generate dependencies.groovy)
    grails-app/conf/Config.groovy
    grails-app/conf/DataSource.groovy (and any other *DataSource.groovy)
    grails-app/conf/UrlMappings.groovy
    grails-app/conf/spring/resources.groovy
    Everything within /web-app/WEB-INF
    Everything within /web-app/plugins/**
    Everything within /test/**
    SCM management files within **/.svn/** and **/CVS/**
    

    While this list does not include Config.groovy files in domain class folders, it might be caught by this. Would be worth checking if the Config.groovy file gets carried over to the packaged plugin, or if you can live with renaming the file, that would work as well.

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

Sidebar

Related Questions

I created a grails plugin in which some domain classes, controllers and views were
I'm working on a grails legacy project. A domain class called User exists. It
I created a simple grails 2.0.1 plugin with a domain User. Created scaffolding controllers
I've created a private plugin for domain objects that are shared between two grails
I'm using Grails with the SpringSecurity plugin. I ran s2-quickstart so the user-domain-class was
I am trying to use the Class.forName('com.mypack.MyDomain').newInstance() to create an instance of the grails
I'm using: Grails xfire plugin and I created the service mobile containing the following
import grails.plugin.spock.* class EventControllerSpec extends ControllerSpec { def Creating a breadcrumb from an event()
I have two domain classes: class Domain1 { String val11 String val12 Domain2 domain2
In a Grails 1.1 plugin, I'm trying to load a class from the main

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.