“严重:错误侦听器启动”使用spring-security-ldap Plugin 1.0.6部署Grails应用程序 [英] "Severe: Error Listener Start" Deploying Grails app with spring-security-ldap Plugin 1.0.6

查看:173
本文介绍了“严重:错误侦听器启动”使用spring-security-ldap Plugin 1.0.6部署Grails应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Grails应用程序,可以在开发过程中正常运行,但是当我创建一个war文件(grails dev create war /target.helloworld.war)时,例如.war不能正确部署。



通过消除过程,我将问题缩小到了spring-security-ldap插件。



我测试了这个三种环境:

Tomcat 7 MacOSx JDK7
Tomcat 6 Ubuntu 12.04 JDK7
Tomcat 7 Ubuntu 12.04 JDK7



我在所有环境中使用相同的JDK版本进行编译。



我得到的错误:

INFO:部署Web应用程序存档helloworld.war
2012年11月11日下午12时54分15秒org.apache.catalina.core.StandardContext start
SEVERE:错误listenerStart
Nov 11, 2012 12:54:15 PM org.apache.catalina.core.StandardContext start
SEVERE:由于之前的错误导致Context [/ helloworld]启动失败
Nov 11,2012 12:54:15 PM org。 apache.catalina.loader.WebappClassLo ader clearReferencesThreads
SEVERE:Web应用程序[/ helloworld]似乎已经启动了一个名为[MongoCleaner1671814044]的线程,但未能阻止它。这很可能会造成内存泄漏。



我也遵循了将FINE日志记录添加到classes文件夹的说明,但是这似乎并没有帮助我。

我参考了以下主题: http://grails.1312388.n4.nabble.com/Deployment-problems-td4628710.html



有没有经验这和解决它与spring-security-ldap 1.0.6?



感谢提前?

解决方案在 WEB-INF / classes (unwar)中放入一个名为 logging.properties 你的应用程序)文件夹,并把它放在它里面:

  handlers = org.apache.juli.FileHandler,java.util.logging。 ConsoleHandler 

org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = / var / log
org.apache.juli.FileHandler。前缀= myapp-to MCAT。

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

然后重新启动Tomcat。



您的应用程序仍会失败,但在文件 /var/log/myapp-tomcat.log 您会发现比无用的SEVERE:Error listenerStart更详细的错误跟踪



可能缺少类文件或数据库配置错误。


I have a Grails application that builds and run fine in development, however when I create a war file (grails dev create war /target.helloworld.war) for example, that .war does not deploy properly.

Through process of elimination I have narrowed the problem down to the spring-security-ldap plugin.

I have tested this in three environments:

Tomcat 7 MacOSx JDK7 Tomcat 6 Ubuntu 12.04 JDK7 Tomcat 7 Ubuntu 12.04 JDK7

I am compiling with the same JDK version in all environments.

The error I get:

INFO: Deploying web application archive helloworld.war Nov 11, 2012 12:54:15 PM org.apache.catalina.core.StandardContext start SEVERE: Error listenerStart Nov 11, 2012 12:54:15 PM org.apache.catalina.core.StandardContext start SEVERE: Context [/helloworld] startup failed due to previous errors Nov 11, 2012 12:54:15 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads SEVERE: The web application [/helloworld] appears to have started a thread named [MongoCleaner1671814044] but has failed to stop it. This is very likely to create a memory leak.

I have also followed the instruction for adding FINE logging to the classes folder, however that does not seem to help me here either.

For reference I have followed this thread: http://grails.1312388.n4.nabble.com/Deployment-problems-td4628710.html

Has anyone experience this and solved it with spring-security-ldap 1.0.6?

Thanks in advance?

解决方案

Put a file named logging.properties in the WEB-INF/classes (unwar your app) folder and put this inside it:

handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler

org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = /var/log
org.apache.juli.FileHandler.prefix = myapp-tomcat.

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

Then restart Tomcat.

Your app will still fail but inside the file /var/log/myapp-tomcat.log you will find a more detailed error trace than an useless "SEVERE: Error listenerStart"

There is probably a missing class file or a database configuration error.

这篇关于“严重:错误侦听器启动”使用spring-security-ldap Plugin 1.0.6部署Grails应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆