gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 23:42:01 25 4
gpt4 key购买 nike

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内部版本号: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"
// }
}
}

最佳答案

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

这个问题基本说明是另外一个问题。真正的答案是这不是导致最终 war 应用程序启动问题的原因,在他的情况下是数据库配置,在我的情况下是 rabbitmq 配置。

verbose debug logging 显示错误,无法启动是另一个错误的错误,可以有效忽略此消息。

关于tomcat - support.PluginAwareResourceBundleMessageSource 无法解析插件的任何资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18919174/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com