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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:41:32+00:00 2026-05-28T02:41:32+00:00

On my fresh new grails project, I installed shiro ( grails install-plugin shiro )

  • 0

On my fresh new grails project, I installed shiro
(grails install-plugin shiro)
and the quick setup grails shiro-quick-start. This generated new files as described in the shiro documentation.

However, in one of those files, controllers/(default package)AuthController.groovy there are eight problem marked by eclipse (SpringSource Tools Suite). Five of those problems address the five imports respectively:

 Groovy:unable to resolve class org.apache.shiro.authc.AuthenticationException
 …

Specifying the correct package and moving the file to that package doesn’t solve the problem. The three other problem markers are:

 Groovy:Catch statement parameter type is not a subclass of Throwable.

(x3)
I suppose this problem might be related to the failed imports and might thus vanish once the previous problem is resolved.

Now, I could set up shiro myself without the quick start, but tbh I’d prefer to stick with the quick start and expand on that, as described in the guide.

(obvious) Question 1: Does anybody have an idea as to why Eclipse gives me those error messages? Did I miss a step in the installation process?

(not so important) Question 2: I tried to apply the fix to the (default package) issue, only to find that there is already a reference to the package path at the relevant part of _ShiroInternal.groovy. Why does it still install to default directory? Might this be related to my problem?

Additional oddity: There is another file, realm/ShiroDbRealm.groovy, that includes imports of org.apache.shiro resources. There is no package declaration and there are no error markers in Eclipse. Once I add the correct package declaration of my project and move the file to that package, imports cannot be resolved anymore. This might be a clue to what is happening here.

  • 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-28T02:41:33+00:00Added an answer on May 28, 2026 at 2:41 am

    You have to add the shiro library jars to the eclipse project build path.
    The librarys (in my case) are by default installed to the grails project plugin directory in my home folder.

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

Sidebar

Related Questions

I needed to start fresh with a new MVC 2 Project This is what
Installed a fresh Delphi xe2. Open a new project (vcl forms application). opened the
if you run this snippet of code(put it in form1) in a fresh new
Consider a fresh install of Visual Studio 2010 Beta 2. In this case, the
I had a Joomla 1.0 site. I created a fresh new install of 1.5
When designing database tables for a fresh new project, is it good practice to
I've got a fresh install of the new build of cakephp (1.3) and the
I have a fresh 64 bit SS 2008 R2 install on a new server
I'm starting on a fresh new project--should I look at my spec and decide
I created a fresh project using rails new Project -d=postgresql. If I then run

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.