Unable To Run Grails App From IDE (Command Line OK)

OS X 10.7.3
Grails 2.0.1
IntelliJ IDEA 11.0.2

I have a Grails 2.0.1 application that I am able to run from the command line, but not from the IDE. In the IDE, the server does start, but not before this exception is thrown:

| Error 2012-03-20 15:27:21,441 [pool-4-thread-1] ERROR client.ClientResourceLocator  -
Message: null
   Line | Method
->> 601 | <init>        in java.net.URL
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|   464 | <init>        in     ''
|   413 | <init> . . .  in     ''
|   108 | getProperties in com.atlassian.crowd.integration.service.soap.client.BaseResourceLocator
|    43 | <init> . . .  in com.atlassian.crowd.integration.service.soap.client.ClientPropertiesImpl
|   303 | innerRun      in java.util.concurrent.FutureTask$Sync
|   138 | run . . . . . in java.util.concurrent.FutureTask
|   886 | runTask       in java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run . . . . . in     ''
^   680 | run           in java.lang.Thread


That command that IDEA generates is this:

/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Dgrails.home=/usr/local/grails-2.0.1 -Dbase.dir=/Users/michaelmunhall/projects/WebAppSec -Dtools.jar=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/tools.jar -Dgroovy.starter.conf=/usr/local/grails-2.0.1/conf/groovy-starter.conf -DCROWD_PROPERTIES=./grails-app/conf/crowd.properites -DCROWD_EHCACHE=./grails-app/conf/crowd-ehcache.xml -Xmx512M -XX:MaxPermSize=192m -javaagent:/usr/local/grails-2.0.1/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.2.jar -noverify -Dspringloaded=profile=grails -Didea.launcher.port=7535 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 11.app/bin" -Dfile.encoding=UTF-8 -classpath "/usr/local/grails-2.0.1/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar:/usr/local/grails-2.0.1/dist/grails-bootstrap-2.0.1.jar:/Applications/IntelliJ IDEA 11.app/lib/idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /usr/local/grails-2.0.1/conf/groovy-starter.conf run-app

From the command line is this:


/Library/Java/Home/bin/java -server -Xmx768M -Xms768M -XX:PermSize=256m -XX:MaxPermSize=256m -Dfile.encoding=UTF-8 -javaagent:/usr/local/grails-2.0.1/lib/com.springsource.springloaded/springloaded-core/jars/springloaded-core-1.0.2.jar -noverify -Dspringloaded=profile=grails -classpath /usr/local/grails-2.0.1/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-1.8.6.jar:/usr/local/grails-2.0.1/dist/grails-bootstrap-2.0.1.jar:/System/Library/Java -Dgrails.home=/usr/local/grails-2.0.1 -Dtools.jar=/Library/Java/Home/lib/tools.jar org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /usr/local/grails-2.0.1/conf/groovy-starter.conf --classpath   -DCROWD_PROPERTIES=./grails-app/conf/crowd.properties -DCROWD_EHCACHE=./grails-app/conf/crowd-ehcache.xml run-app

Are the differences betweent the two commands the reason for the problem? Is there any way to determine what might be causing the problem in the IDE, and how to correct it?

2 comments
Comment actions Permalink

In IDEA generated command line you have -DCROWD_PROPERTIES=./grails-app/conf/crowd.properITes instead of "-DCROWD_PROPERTIES=./grails-app/conf/crowd.properTIes"  :)

0
Comment actions Permalink

Wow... that is embarrassing. I could have sworn I had copied those parameters from the IDE to the command line, but I obviously didn't. Thanks for for spending the time diffing that, Sergey.

0

Please sign in to leave a comment.