gpt4 book ai didi

grails - Tomcat上下文已停止Grails GGTS Cloudfoundry插件

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

我正在使用cloud Foundry插件。我已经在Config.groovy中设置了凭据。
您能告诉我更多有关我得到的错误的信息吗?

Application Deployed URL: 'sqr-gb-ks.cloudfoundry.com'
>
Would you like to create and bind a mysql service?[y,n] > Invalid input. Must be one of [y,n] y
Service 'mysql-8a02c10' provisioned.
>
Would you like to create and bind a postgresql service?[y,n] > Invalid input. Must be one of [y,n] y
Service 'postgresql-d6ab9c9' provisioned.
| Creating application sqr-gb-ks at sqr-gb-ks.cloudfoundry.com with 1024MB and services [mysql-8a02c10, postgresql-d6ab9c9]: OK
| Uploading Application:
| Checking for available resources: OK
| Processing resources: OK
| Packing application: OK
| Uploading (50K): OK
| Trying to start Application: 'sqr-gb-ks'.....
| Error ERROR - Application 'sqr-gb-ks' failed to start, logs information below.
==== logs/stderr.log ====

Oct 22, 2012 4:57:47 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-25918
Oct 22, 2012 4:57:47 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 403 ms
Oct 22, 2012 4:57:47 PM org.apache.catalina.realm.JAASRealm setContainer
INFO: Set JAAS app name Catalina
Oct 22, 2012 4:57:47 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Oct 22, 2012 4:57:47 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
Oct 22, 2012 4:57:47 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory ROOT
Oct 22, 2012 4:58:10 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Oct 22, 2012 4:58:10 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [] startup failed due to previous errors
Oct 22, 2012 4:58:10 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
Oct 22, 2012 4:58:10 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [] appears to have started a thread named [net.sf.ehcache.CacheManager@403525a2] but has failed to stop it. This is very likely to create a memory leak.

==== logs/stdout.log ====

[ Envjs/1.6 (Rhino; U; Linux amd64 2.6.38-15-virtual; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ]
[ Envjs/1.6 (Rhino; U; Linux amd64 2.6.38-15-virtual; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ]
[ Envjs/1.6 (Rhino; U; Linux amd64 2.6.38-15-virtual; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ]
[ Envjs/1.6 (Rhino; U; Linux amd64 2.6.38-15-virtual; en-US; rv:1.7.0.rc2) Resig/20070309 PilotFish/1.2.13 ]
Stopping Tomcat because the context stopped.

最佳答案

如果它是Grails应用程序,则应该使用http://grails.org/plugin/cloud-foundry插件而不是STS,因为它了解用于JDBC,MongoDB,Redis等的Spring bean,并将在部署时自动为您重新配置它们。在此处查看文档:http://grails-plugins.github.com/grails-cloud-foundry/docs/manual/index.html

另外-您真的想要MySQL和PostgreSQL数据库吗?您可能应该选择一个:)

通过查看stacktrace.log和服务器上tomcat / logs目录中的“localhost”日志,可以看到实际的问题-这是真正的stacktrace和错误消息所在的位置,而不是部署时看到的stdout。

关于grails - Tomcat上下文已停止Grails GGTS Cloudfoundry插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13018415/

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