Grails app throws errors on start but not from command line Follow
When I launch my Grails app from the command line, everything runs as I expect. When I launch from IDEA, I get the following (note that I have also ran the Grails clean, then compile command to verify that I did not get any errors). Can you explain what is happening or what I need to do to correct the problem?
Information:Compilation completed with 11 errors and 1 warning
Information:11 errors
Information:1 warning
D:\cygwin\home\Bill\lawFirmBrief\plugins\quartz-0.4.1-SNAPSHOT\src\java\org\codehaus\groovy\grails\plugins\quartz\DefaultGrailsTaskClass.java
Error:Error:line (20)package org.codehaus.groovy.grails.plugins.quartz.config does not exist
Error:Error:line (52)cannot find symbol class TriggersConfigBuilder
Error:Error:line (52)cannot find symbol class TriggersConfigBuilder
C:\Documents and Settings\Bill\.IntelliJIdea8x\system\compiler\lawfirmbrief.lawFirmBrief11f83fd6\.generated\Groovy_to_java_source_code_generator\lawFirmBrief.baec48c6\production\DomainClassExtension.java
Error:Error:line (36)cannot find symbol class DomainClassExtensionPoints
Error:Error:line (38)cannot find symbol class DomainClassExtensionPoints
C:\Documents and Settings\Bill\.IntelliJIdea8x\system\compiler\lawfirmbrief.lawFirmBrief11f83fd6\.generated\Groovy_to_java_source_code_generator\lawFirmBrief.baec48c6\production\com\changent\lawFirmBrief\Respondents.java
Error:Error:line (36)cannot find symbol class ClientContact
Error:Error:line (40)cannot find symbol class ClientContact
Error:Error:line (44)cannot find symbol class Matter
Error:Error:line (48)cannot find symbol class Matter
Error:Error:line (144)cannot find symbol class ClientContact
Error:Error:line (146)cannot find symbol class Matter
D:\cygwin\home\Bill\lawFirmBrief\plugins\acegi-0.5.1\src\java\org\codehaus\groovy\grails\plugins\springsecurity\ldap\GrailsLdapUser.java
Warning:Warning:line (76)[deprecation] getAttributes() in org.springframework.security.userdetails.ldap.LdapUserDetails has been deprecated
Please sign in to leave a comment.
Seems that Grails plugin dependencies aren't detected correctly. Which
IDEA version are you using? Please try 8.1.1. After that, please invoke
'Run Grails target' action from within IDEA and type 'clean' there. Then
retry the compilation.
I am running 8.1.1. I'll do what you suggest, but now I have a new problem that is preventing IDEA from starting at all. I'll start another thread for that issue.
I have the same sort of issue now, please help...
When I run my grails app from command line it works like a charm, but when I click 'make project' from intelliJ it comes up with the following errors.
Note that I already did clean from both commandline and in intelliJ itself like is suggested in the previous response.
When I do a 'open type' action and type the name of one of the not resolved classes, intelliJ can find them no problem.
Im using intelliJ 9.0.2, does anyone know what Im missing? The problem seems to be with the plugins....
Information:11 warnings
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugins\selenium\GrailsSelenium.java
Error:Error:line (3)cannot find symbol class DefaultSelenium
Error:Error:line (8)cannot find symbol class CommandProcessor
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\UnitSpec.java
Error:Error:line (3)cannot find symbol class Specification
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\functional\htmlunit\form\FormWrapper.java
Error:Error:line (4)cannot find symbol class HtmlForm
Error:Error:line (24)cannot find symbol class HtmlSelect
Error:Error:line (28)cannot find symbol class HtmlRadioButtonInput
Error:Error:line (32)cannot find symbol class HtmlFileInput
Error:Error:line (36)cannot find symbol class HtmlCheckBoxInput
Error:Error:line (40)cannot find symbol class HtmlInput
Error:Error:line (48)cannot find symbol class HtmlTextArea
Error:Error:line (64)cannot find symbol class HtmlSelect
Error:Error:line (68)cannot find symbol class HtmlInput
Error:Error:line (72)cannot find symbol class HtmlTextArea
Error:Error:line (80)cannot find symbol class HtmlSelect
Error:Error:line (84)cannot find symbol class HtmlRadioButtonInput
Error:Error:line (88)cannot find symbol class HtmlFileInput
Error:Error:line (88)cannot find symbol class HtmlFileInput
Error:Error:line (92)cannot find symbol class HtmlCheckBoxInput
Error:Error:line (96)cannot find symbol class HtmlTextArea
Error:Error:line (100)cannot find symbol class HtmlInput
Error:Error:line (120)cannot find symbol class HtmlForm
Error:Error:line (144)cannot find symbol class HtmlForm
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\functional\htmlunit\form\RadioGroup.java
Error:Error:line (4)cannot find symbol class List
Error:Error:line (4)cannot find symbol class HtmlRadioButtonInput
Error:Error:line (20)cannot find symbol class List
Error:Error:line (20)cannot find symbol class HtmlRadioButtonInput
Error:Error:line (46)cannot find symbol class List
Error:Error:line (46)cannot find symbol class HtmlRadioButtonInput
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\test\GrailsSpecTestTypeResult.java
Error:Error:line (4)cannot find symbol class Result
Error:Error:line (36)cannot find symbol class Result
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugins\selenium\GrailsSeleniumTestCase.java
Error:Error:line (36)cannot find symbol class SeleneseTestBase
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\IntegrationSpec.java
Error:Error:line (3)cannot find symbol class Specification
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\springcache\web\GrailsFragmentCachingFilter.java
Error:Error:line (3)cannot find symbol class PageFragmentCachingFilter
Error:Error:line (12)cannot find symbol class PageInfo
Error:Error:line (16)cannot find symbol class PageInfo
Error:Error:line (20)cannot find symbol class PageInfo
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\functional\htmlunit\configurer\WebRequestSettingsConfigurer.java
Error:Error:line (4)cannot find symbol class WebRequestSettings
Error:Error:line (24)cannot find symbol class WebRequestSettings
Error:Error:line (48)cannot find symbol class WebRequestSettings
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\functional\WebSession.java
Error:Error:line (8)cannot find symbol class WebClient
Error:Error:line (16)cannot find symbol class Page
Error:Error:line (20)cannot find symbol class Page
Error:Error:line (24)cannot find symbol class Page
Error:Error:line (28)cannot find symbol class Page
Error:Error:line (32)cannot find symbol class Page
Error:Error:line (36)cannot find symbol class Page
Error:Error:line (40)cannot find symbol class Page
Error:Error:line (44)cannot find symbol class Page
Error:Error:line (48)cannot find symbol class HttpMethod
Error:Error:line (48)cannot find symbol class Page
Error:Error:line (52)cannot find symbol class HttpMethod
Error:Error:line (52)cannot find symbol class Page
Error:Error:line (56)cannot find symbol class WebWindow
Error:Error:line (60)cannot find symbol class Page
Error:Error:line (64)cannot find symbol class WebResponse
Error:Error:line (68)cannot find symbol class WebRequestSettings
Error:Error:line (104)cannot find symbol class Page
Error:Error:line (136)cannot find symbol class HtmlForm
Error:Error:line (140)cannot find symbol class HtmlForm
Error:Error:line (160)cannot find symbol class Page
Error:Error:line (168)cannot find symbol class WebClient
Error:Error:line (172)cannot find symbol class Page
Error:Error:line (184)cannot find symbol class Page
Error:Error:line (196)cannot find symbol class WebClient
Error:Error:line (224)cannot find symbol class WebClient
Error:Error:line (5)cannot find symbol class WebClient
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\test\listener\PerSpecRunListener.java
Error:Error:line (16)cannot find symbol class Description
Error:Error:line (20)cannot find symbol class Failure
Error:Error:line (24)cannot find symbol class Description
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\grails\plugin\spock\test\listener\OverallRunListener.java
Error:Error:line (3)cannot find symbol class RunListener
Error:Error:line (8)cannot find symbol class Description
Error:Error:line (12)cannot find symbol class Description
Error:Error:line (16)cannot find symbol class Failure
Error:Error:line (20)cannot find symbol class Failure
Error:Error:line (24)cannot find symbol class Description
Error:Error:line (28)cannot find symbol class Result
Error:Error:line (32)cannot find symbol class Description
C:\Users\Athaphian\.IntelliJIdea90\system\compiler\website3.website393b71a0c\.generated\groovyStubs\website393b71a0c\website3-grailsPlugins\production\junit\framework\JUnit4TestCaseFacadeFactory.java
Error:Error:line (4)cannot find symbol class Description
Error:Error:line (4)cannot find symbol class JUnit4TestCaseFacade
Please try 9.0.3 EAP from
http://confluence.jetbrains.net/display/IDEADEV/Maia+EAP. The problem
should have been fixed there.
Hey thanks, this indeed solved the problem !
Building the projects seems a bit slower in this version though..
http://www.jetbrains.net/devnet/docs/DOC-192