我正在使用intellij idea 12.1.4 开发一个grails 项目。我需要调试我的应用程序,但调试不起作用。
我只是选择我的正常运行配置,它在正常模式下完美运行,然后按下调试按钮。
之后,grails 应用程序确实启动了,但没有进入 spring 安全加载部分,也没有完全启动。
/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:51583,suspend=y,server=n -Dgrails.home=/Users/patrick/Workspace/SDKsFrameworks/grails-2.2.3 -Dbase.dir=/Users/patrick/Workspace/bonExperten -Dtools.jar=/Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/lib/tools.jar -Dgroovy.starter.conf=/Users/patrick/Workspace/SDKsFrameworks/grails-2.2.3/conf/groovy-starter.conf -Xmx768M -Xms768M -XX:MaxPermSize=256m -XX:PermSize=256m -javaagent:/Users/patrick/Workspace/SDKsFrameworks/grails-2.2.3/lib/org.springsource.springloaded/springloaded-core/jars/springloaded-core-1.1.3.jar -noverify -Dspringloaded=profile=grails -Dfile.encoding=UTF-8 -classpath "/Users/patrick/Workspace/SDKsFrameworks/grails-2.2.3/lib/org.codehaus.groovy/groovy-all/jars/groovy-all-2.0.8.jar:/Users/patrick/Workspace/SDKsFrameworks/grails-2.2.3/dist/grails-bootstrap-2.2.3.jar:/Applications/IntelliJ IDEA 12.app/lib/idea_rt.jar" org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf /Users/patrick/Workspace/SDKsFrameworks/grails-2.2.3/conf/groovy-starter.conf run-app
Connected to the target VM, address: '127.0.0.1:51583', transport: 'socket'
| Loading Grails 2.2.3
| Configuring classpath
| Configuring classpath.
| Environment set to development
| Environment set to development.
| Environment set to development..
| Environment set to development...
| Environment set to development....
| Environment set to development.....
| Packaging Grails application
| Packaging Grails application.
| Packaging Grails application..
| Packaging Grails application...
| Packaging Grails application....
| Packaging Grails application.....
| Running Grails application
Jun 25, 2013 1:23:31 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jun 25, 2013 1:23:31 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Jun 25, 2013 1:23:31 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.39
Jun 25, 2013 1:23:31 PM org.apache.catalina.startup.ContextConfig getDefaultWebXmlFragment
INFO: No global web.xml found
Jun 25, 2013 1:23:31 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Disconnected from the target VM, address: '127.0.0.1:51583', transport: 'socket'
Process finished with exit code 255
有人知道解决方案吗?