support.PluginAwareResourceBundleMessageSource无法解析插件的任何资源

时间:2013-09-20 14:25:49

标签: tomcat grails plugins deployment war

war文件部署到tomcat失败了一堆关于未找到插件的消息,这些似乎是核心插件。这是我的第一次部署,所以很可能这是一个非常基本的问题。

我错过了一些标准依赖吗?

support.PluginAwareResourceBundleMessageSource Could not resolve any resources for plugin logging-2.1.1
java.io.FileNotFoundException: ServletContext resource [/WEB-INF/plugins/logging-2.1.1/grails-app/i18n/] cannot be resolved to URL because it does not exist
        at java.lang.Thread.run(Thread.java:662)
support.PluginAwareResourceBundleMessageSource Could not resolve any resources for plugin core-2.1.1
java.io.FileNotFoundException: ServletContext resource [/WEB-INF/plugins/core-2.1.1/grails-app/i18n/] cannot be resolved to URL because it does not exist
        at java.lang.Thread.run(Thread.java:662)
support.PluginAwareResourceBundleMessageSource Could not resolve any resources for plugin url-mappings-2.1.1
java.io.FileNotFoundException: ServletContext resource [/WEB-INF/plugins/url-mappings-2.1.1/grails-app/i18n/] cannot be resolved to URL because it does not exist
        at java.lang.Thread.run(Thread.java:662)

app.grails.version = 2.1.1

简单的应用程序运行精美的本地桌面 Eclipse SpringSource工具套件 版本:2.9.2.RELEASE Build Id:201205071000

BuildConfig.groovy

grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0)
grails.project.class.dir = "target/classes"
grails.project.test.class.dir = "target/test-classes"
grails.project.test.reports.dir = "target/test-reports"
grails.project.target.level = 1.6
grails.project.source.level = 1.6
//grails.project.war.file = "target/${appName}-${appVersion}.war"

grails.project.dependency.resolution = {
    // inherit Grails' default dependencies
    inherits("global") {
        // specify dependency exclusions here; for example, uncomment this to disable ehcache:
        // excludes 'ehcache'
    }
    log "debug" // log level of Ivy resolver, either 'error', 'warn', 'info', 'debug' or 'verbose'
    checksums true // Whether to verify checksums on resolve

    repositories {
        inherits true // Whether to inherit repository definitions from plugins

        grailsPlugins()
        grailsHome()
        grailsCentral()

        mavenLocal()
        mavenCentral()

        // SendGrid repo http://grails.org/plugin/sendgrid
        mavenRepo "http://repo.desirableobjects.co.uk/"

        mavenRepo "http://m2repo.spockframework.org/snapshots"
        // uncomment these (or add new ones) to enable remote dependency resolution from public Maven repositories
        //mavenRepo "http://snapshots.repository.codehaus.org"
        //mavenRepo "http://repository.codehaus.org"
        mavenRepo "http://download.java.net/maven/2/"
        //mavenRepo "http://repository.jboss.com/maven2/"
        //mavenRepo "http://download.java.net/maven/2/"
    }
    dependencies {
        // specify dependencies here under either 'build', 'compile', 'runtime', 'test' or 'provided' scopes eg.
        //
        // runtime 'mysql:mysql-connector-java:5.1.20'
        //test "org.spockframework:spock-grails-support:0.7-groovy-1.7"


    }

    plugins {
        runtime ":hibernate:$grailsVersion"
        runtime ":jquery:1.8.0"
        runtime ":resources:1.1.6"
        runtime ":mail:1.0.1"
        runtime ':sendgrid:0.2'

        // Uncomment these (or add new ones) to enable additional resources capabilities
        //runtime ":zipped-resources:1.0"
        //runtime ":cached-resources:1.0"
        //runtime ":yui-minify-resources:0.1.4"

        build ":tomcat:$grailsVersion"

        runtime ":database-migration:1.1"

        compile ':cache:1.0.0'
        compile ":marshallers:0.4"
        //compile ":restrpc:0.9.6"
        runtime ":webxml:1.4.1"
        compile ":rabbitmq:1.0.0"

        test ":spock:0.7" 
// add this for Grails 2.2 uses Groovy 2.0, when we upgrade
//              {
//              exclude "spock-grails-support"
//              }
    }
}

1 个答案:

答案 0 :(得分:0)

Tomcat fails to start app and times out -- last line in log is just the word "bad"

这个问题基本上表明这是另一个问题。真正的答案是,这并没有导致最终的战争应用程序启动问题,在他的情况下是数据库配置,在我的情况下是rabbitmq配置。

详细的调试日志显示错误,启动失败是另一个错误的错误,可以有效地忽略此消息。