gpt4 book ai didi

grails - Tomcat上的Grails 2.4.3应用部署错误

转载 作者:行者123 更新时间:2023-12-02 15:27:32 24 4
gpt4 key购买 nike

尝试将Grails 2.4.3应用程序部署到Tomcat 7.55

不断收到此错误:

LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)
at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: jline.console.completer.CompletionHandler
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 18 more

这是BuildConfig:

我在本地计算机上运行它没有问题。甚至与“大战”。我将尝试删除依赖项以查看是否有问题。虽然不确定jLine来自哪里。通过搜索,我发现Jasper Reports使用了jLine(我曾经安装过,但现在不再使用了)。我还没有找到其他使用它的库。 Tomcat中有什么可以使用的吗?
    grails.project.dependency.resolver = "maven" 

grails.project.dependency.resolution = {
// inherit Grails' default dependencies
inherits("global") {
// uncomment to disable ehcache
// excludes 'ehcache'
}
log "error" // 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()
mavenCentral()
mavenLocal()
mavenRepo "http://repo.spring.io/milestone/"

}
dependencies {
runtime 'org.drools:drools-core:5.6.0.Final'
runtime 'org.drools:drools-compiler:5.6.0.Final'
test "org.grails:grails-datastore-test-support:1.0-grails-2.4"
}

plugins {
runtime ":jquery:1.11.1"
runtime ":hibernate4:4.3.5.5"
runtime ":database-migration:1.4.0"
compile ":cache-headers:1.1.7"
compile ":spring-security-core:2.0-RC4"
compile ":rendering:1.0.0"
compile ":quartz2:2.1.6.2"
compile ":joda-time:1.5"
compile ":asset-pipeline:1.9.6"
compile ":browser-detection:0.4.3"
compile ":cache:1.1.7"
compile ":grails-melody:1.52.0"

compile ":scaffolding:2.1.2"


build ":tomcat:7.0.55"

}
}

最佳答案

原来这是由application.properties文件引起的。我正在从Tomcat的lib目录中加载application.properties,但对于已部署的war文件,其格式未正确设置。

关于grails - Tomcat上的Grails 2.4.3应用部署错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25434523/

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