Context []startup failed due to previous errors 问题解决

log4j.rootLogger=info,Console,R  

log4j.appender.Console=org.apache.log4j.ConsoleAppender  

log4j.appender.Console.layout=org.apache.log4j.PatternLayout  

#log4j.appender.Console.layout.ConversionPattern=%d [%t] %-5p %c - %m%n  

log4j.appender.Console.layout.ConversionPattern=%d{yy-MM-dd HH:mm:ss} %5p %c{1}:%L - %m%n  

log4j.appender.R=org.apache.log4j.DailyRollingFileAppender  

log4j.appender.R.File=${catalina.home}/logs/tomcat.log  

log4j.appender.R.layout=org.apache.log4j.PatternLayout  

log4j.appender.R.layout.ConversionPattern=%d{yyyy.MM.dd HH:mm:ss} %5p %c{1}(%L):? %m%n  

log4j.logger.org.apache=info,R  

log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost]=DEBUG, R  

log4j.logger.org.apache.catalina.core=info,R  

log4j.logger.org.apache.catalina.session=info,R  

该问题主要因为xml文件配置错误或加载配置资源失败,但是启动时响应的错误信息,需要配置log4j,打印出详细的错误信息。

没有相对的将上面的内容写到新文件,命名为log4j.properties,放到[Context]/WEB-INF/classes文件夹下;

将log4j的jar包放到[Context]/WEB-INF/lib文件夹下;(下载地址:https://pan.baidu.com/s/1RQyoQBiMI0uO7ROcOV77QA)

重新启动tomcat,自动生成配置文件tomcat.log在tomcat/log文件夹下,可以查到配置解析失败的原因和位置。

原文地址:https://www.cnblogs.com/xingyy/p/8692360.html

时间: 2024-10-10 16:48:49

Context []startup failed due to previous errors 问题解决的相关文章

【Tomcat】严重: Context [/grouponAdminWeb] startup failed due to previous errors

1 tomcat 6600启动报错[[email protected] webapps]#     sh /usr/local/apache-tomcat-6.0.37_6600/bin/startup.sh Using CATALINA_BASE:   /usr/local/apache-tomcat-6.0.37_6600Using CATALINA_HOME:   /usr/local/apache-tomcat-6.0.37_6600Using CATALINA_TMPDIR: /usr

tomcat bug之部署应用的时候经常会发上startup failed due to previous errors

在tomcat上部署应用的时候经常会发上startup failed due to previous errors错误.这个错误产生以后经常会让人摸不到头脑.以下是几点查找经验: 1.web.xml文件,这个文件中定义了很多web服务启动需要的类.xml文件,如果这些找不到就会发生startup failed due to previous errors错误. 2.如果使用spring的话,在applicationContext.xml中定义的类.xml文件找不到也会报这个错误. 3.如果使用i

TOMCAT 显示 Context [/zhgsServer] startup failed due to previous errors

查看细节的错误提示: 23-Feb-2017 09:50:41.179 信息 [localhost-startStop-1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpath 23-Feb-2017 09:50:41.210 信息 [localhost-startStop-1] org.apache.catalina.cor

Linux常见问题解答--如何修复“tar:Exiting with failure status due to previous errors”

问题: 当我用tar命令来创建一个压缩文件时,总在执行过程中失败,并且抛出一个错误说明"tar:由于前一个错误导致失败退出"("Exiting with failure status due to previous errors"). 什么导致这个错误的发生,要如何解决? 当你执行tar命令时,遇到了下面的错误,那么最有可能的原因是对于你想用tar命令压缩的某个文件中,你并不具备其读权限. tar:Exitingwith failure status due to

tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors

解压一个.tar.zip文件时报错 tar -zxvf bcl2fastq2-v2-20-0-linux-x86-64.zip tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors 解决办法: unzip bcl2fastq2-v2-20-0-tar.zip 生成 bcl2fastq2-v2.20

linux文件系统解压 tar: Exiting with failure status due to previous errors [Solved]

在执行 $ tar jxf rootfs.tar.bz2 -C ./rootfs/ 时遇到如下问题: tar: dev/console: Cannot mknod: Operation not permitted tar: dev/tty: Cannot mknod: Operation not permitted tar: dev/null: Cannot mknod: Operation not permitted tar: Exiting with failure status due t

org.apache.catalina.core.StandardContext.startInternal Context [/test] startup failed due to previou

解决方法: WEB-INF/classes目录下新建一个文件叫logging.properties,截图如下: 代码如下: 1 handlers=org.apache.juli.FileHandler,java.util.logging.ConsoleHandler 2 ############################################################ 3 #Handler specific properties. 4 # Describes specifi

启动tomcat服务器报错:ERROR ContextLoader:307 - Context initialization failed

错误详情 十月 01, 2018 7:46:36 下午 org.apache.tomcat.util.digester.SetPropertiesRule begin警告: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:bos19' did not find a matching property.十月 01, 201

windows下启动redis提示Invalid argument during startup: Failed to open the .conf file: redis.windows.connf CWD=C:\Users\Administrator

环境:Windows 7 64bit 旗舰版 redis 3.2.100 64bit 开始的时候,redis运行的好好的,不过每次启动都要要进入其路径,挺麻烦的,所以就想把它的路径设置到环境变量里,然后直接运行就出现错误:Invalid argument during startup:Failed to open the .conf file: redis.windows.connf CWD=C:\Users\Administrator 网上搜索了好久也找不到解决办法.后来想是不是因为环境变量的