Andreas Nerlich
« eclipse.ini & sts.ini -vm option
SSO with JBoss, Active Directory, Kerberos and SPNEGO »
skipping class whilst loading grails application (23 Jul 2010) - tagged as grails, dev
ready or not, i imagine a few of my next posts will be rather geek inclined. more specifically, grails inclined. i'll be mentioning a few things that have helped me over the last few weeks, or explain how i resolved a few hangups.

here's the first one :

commons.DefaultGrailsApplication The class [<ClassName>] was not found when attempting 
to load Grails application. Skipping.

the message shows up in the logs when starting the application with run-app. there are no other exceptions nor errors and the application seems to startup successfully. until you try to access the log mentioned class. in my case it was a controller and because it was skipped at startup i get a big old fat 404 when trying to access it.

the cause was that for some reason the package declaration within my controller went missing. strangely there were no compilation exceptions either. after re-adding my package declaration, all was fine. the same applies for incorrectly defined package declarations.

grails.org 
comments (1)