欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

严重:one or more listeners failed. Full details will be found in the appropriate container log file 有大用 有大大用 有大大大用

18-Dec-2021 11:05:24.665 INFO [http-nio-8983-exec-21] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

18-Dec-2021 11:05:24.683 SEVERE [http-nio-8983-exec-21] org.apache.catalina.core.StandardContext.startInternal One or more Filters failed to start. Full details will be found in the appropriate container log file

18-Dec-2021 11:05:24.683 SEVERE [http-nio-8983-exec-21] org.apache.catalina.core.StandardContext.startInternal Context [/solr] startup failed due to previous errors



one or more listeners failed. Full details will be found in the appropriate container log file   这句话的意思是:一个或多个侦听器无法启动。完整的详细信息将在相应的容器日志文件中找到

linux上面只有这一句话,没有详细报错详细,这时,我们在WEB-INF/classes (/usr/local/tomcat/webapps/solr/WEB-INF/classes)目录下添加【logging.properties】 (这个目录 应该是 )

文件内容为:  下面两行代码应该是对的,第二行表示错误由 日志处理,由日志显示 即表示  /usr/local/tomcat/logs/catalina.out 可以看见详细的报错

org.apache.catalina.core.ContainerBase.[Catalina].level=INFO 

org.apache.catalina.core.ContainerBase.[Catalina].handlers=java.util.logging.ConsoleHandler                         

添加以上信息后,重新运行程序,控制台显示错误提示详细信息

这时,详细信息就显示出来了。

 java.long.UnsatisfiedLinkError:Unable to load library 'enc' :libenc.so        错误为libenc.so库没有加载到,这时根据详细信息就可以解决具体问题啦。 

来自  https://www.cnblogs.com/ttqi/p/10401722.html




【报错】项目启动,仅仅报错 One or more listeners failed to start. Full details will be found in the appropriate container log file

今天spring4.3.13 项目,整合ActiveMQ的时候,项目启动在自动部署到tomcat下的时候,不能正常的部署,仅仅报错如下:

复制代码
Connected to server
[2017-12-08 03:57:12,428] Artifact springDemo:war exploded: Artifact is being deployed, please wait...
08-Dec-2017 15:57:13.525 信息 [RMI TCP Connection(3)-127.0.0.1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
08-Dec-2017 15:57:13.553 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
08-Dec-2017 15:57:13.554 严重 [RMI TCP Connection(3)-127.0.0.1] org.apache.catalina.core.StandardContext.startInternal Context [] startup failed due to previous errors
[2017-12-08 03:57:13,565] Artifact springDemo:war exploded: Error during artifact deployment. See server log for details.
复制代码

而且,此时tomcat下日志目录下并没有报错的日志文件

可恶的是,我自己配置的日志配置文件

 

 

解决方案:

只要是能看到详细的报错日志,要解决问题就迎刃而解了,可是得有日志文件出来呀

所以,在classpath:下新建一个logging.properties文件【classpath就是你项目的/目录下】

复制代码
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler    

############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################

org.apache.juli.FileHandler.level = FINE    
org.apache.juli.FileHandler.directory = ../logs    
org.apache.juli.FileHandler.prefix = error-debug.    

java.util.logging.ConsoleHandler.level = FINE    
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter    
复制代码

 

 

然后重新启动项目

在你tomcat的logs,目录下查看日志文件

或直接在console下查看错误:

 

 

去解决问题就好了!!!!!!

 

分类: 报错

来自  https://www.cnblogs.com/sxdcgaq8080/p/8005886.html


普通分类: