Tomcat插件类JAR grails-plugin-tomcat-7.0.47.jar在运行grails项目时未找到eroor

时间:2013-12-09 13:40:15

标签: tomcat grails plugins jar

我在从IntelliJ Idea运行我的应用程序时使用grails-2.3.3和java-7我收到此错误....

| Error Tomcat plugin classes JAR grails-plugin-tomcat-7.0.47.jar not found
| Running Grails application
Error: Could not find or load main class org.grails.plugins.tomcat.fork.ForkedTomcatServer
| Error Forked Grails VM exited with error

我的buildconfig.groovy文件中的代码就是这样......

dependencies {
    // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes e.g.
    runtime 'mysql:mysql-connector-java:5.1.24'

}

plugins {
    // plugins for the build system only
     build ":tomcat:7.0.47"

    // plugins for the compile step
    compile ":scaffolding:2.0.1"
    compile ':cache:1.1.1'
    compile ":spring-security-core:2.0-RC2"
    compile ":spring-security-ldap:2.0-RC2"
    // compile ":activiti:5.12.1"
    // compile ':db-reverse-engineer:0.5'

    // plugins needed at runtime but not for compilation
    runtime ":hibernate:3.6.10.4" // or ":hibernate4:4.1.11.4"
    runtime ":database-migration:1.3.8"
    runtime ":jquery:1.10.2"
    runtime ":resources:1.2.1"

    // Uncomment these (or add new ones) to enable additional resources capabilities
    //runtime ":zipped-resources:1.0.1"
    //runtime ":cached-resources:1.1"
    //runtime ":yui-minify-resources:0.1.5"
}
}

我使用的是ubuntu机器,而且intelJidea版本是12。 有没有人知道这个问题是什么我是grails的新手,并试图搜索出这个问题,但却找不到任何帮助。

0 个答案:

没有答案