当我想使用“grails run-app
”启动我的grails应用时,我收到以下消息:
| Running Grails application
| Error 2014-02-25 10:28:12,493 [localhost-startStop-1] ERROR context.GrailsContextLoader - Error initializing the application: Property source name must contain at least one character
Message: Property source name must contain at least one character
Line | Method
->> 303 | innerRun in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
| 138 | run in java.util.concurrent.FutureTask
| 895 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker
| 918 | run in ''
^ 695 | run . . in java.lang.Thread
我在干净的系统(Mac OS X
)上使用Grails 2.3.4。
如果它有用,这是我的.bash_proifile
export JAVA_HOME=/Library/Java/Home
export PATH="$PATH:$JAVA_HOME/bin"
GRAILS_HOME=/Applications/grails-2.3.4;
export GRAILS_HOME
PATH=$GRAILS_HOME/bin:$PATH;
export PATH
该应用程序可在其他4台计算机上完美运行。
答案 0 :(得分:1)
此错误文本有时会产生误导。试着把
app.name=MyAppName
进入grails根目录中的application.properties
。