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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T07:50:15+00:00 2026-06-06T07:50:15+00:00

On a grails progect I want to build a binary plugin with hook implementable

  • 0

On a grails progect I want to build a binary plugin with “hook” implementable on each specific project

Binary plugin structure

MyService (service)
  MyHookClassInterface   myHookClass
  MyHookServiceInterface myHookService

MyHookClassInterface  (interface)
MyHookServiceInterface  (interface)

Main project structure

ProjectHookClass impements MyHookClassInterface (groovy class)
ProjectHookService impements MyHookServiceInterface (service)

resources.groovy
beans = {
  myHookClassInterface(ProjectHookClass)
  myHookServiceInterface(ProjectHookService)
}

The solution works like a charm using source plugin but doesn’t inject MyService dependences in binary mode.
I also started the grails console and ctx.getBean(‘myHookClassInterface’) returns:


org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'myHookClassInterface' is defined
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:529)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1095)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:277)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:269)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1093)
    at org.springframework.beans.factory.BeanFactory$getBean.call(Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    at ConsoleScript0.run(ConsoleScript0:1)

thx

Fabio

  • 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-06T07:50:16+00:00Added an answer on June 6, 2026 at 7:50 am

    solved: the issue was related to the presence of resources.groovy on the binary plugin. In this case grails startup process is not able to merge plugin and project resources.groovy. If you can it’s enough do delete the plugin’s resources.groovy.

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

Sidebar

Related Questions

What if you don't want to start a separate project for grails but instead
I am currently working on grails project. I have created eight different plugins. Each
I have installed cloud foundry plugin on my grails project and I have successfully
I have a grails project and I use the gwt plugin 0.6.1. GWT version
I'm working on a Grails project and I want to write some data from
I want to use a snapshot version of the grails quartz plugin. The issue
I'm investigating a personal Grails project and want to put together a domain model
On my fresh new grails project, I installed shiro ( grails install-plugin shiro )
I'm using Grails 1.3.7. In a Grails project, I want to add a function
It is possible to use Adobe Flash as view in Grails project? I want

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.