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

标签 grails grails-plugin cloudfoundry

我正在使用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/

相关文章:

Grails 将值添加到参数内部

grails - Grails导出插件未下载

go - IBM Cloud Foundry Err:无法确定要安装的Go版本

grails - 如何在列表中推送号码

grails - Grails包含自定义脚本

grails - Grails单元测试-在对模拟使用需求时检查参数

grails - Grails:从外部库注册作业

Grails Spring Security 3服务springSecurityService为空

elasticsearch - filebeat配置以将日志文件发送到cloudfoundry中安装的ELK

grails - 创建/更新以及其他拒绝用户的SQL命令