log4j:ERROR Could not read configuration file [log4j.properties]

遇到这个错误,程序能够正常运行,log4j.properties也在classpath中,后来在网上查了资料,把下面这个语句去掉就好啦。

PropertyConfigurator.configure("log4j.properties");

引用:

				
时间: 2024-11-13 09:59:22

log4j:ERROR Could not read configuration file [log4j.properties]的相关文章

log4j报错ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. log4j版本:log4j-core-2.7.jar   log4j-api-2.7.jar log4j2只支持xml和json两种格式的配置,所以配置log4j.properties时,是没有作用的. log4j 2.0与以往的1.x有一个明显的不同,其配置

Struts2 ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging

在做struts2时导包完成发现Struts2 ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging log4j2的配置文件没找到去struts2-blank下.WEB-INF\classes下找到log4j的配置文件log4j2.xml:把他放入src中

Error: Cannot open main configuration file '//start' for reading! 解决办法

当执行service nagios start启动nagios时,报错:Error: Cannot open main configuration file '//start' for reading! 此问题是修改了nagios安装源文件导致的报错.如报此问题,请执行如下命令,便可解决: /usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d /usr/bin/install -c -m 755 -o root -g roo

测试错误ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.问题的解决

ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. 错误:状态记录器没有找到log4j2配置文件,将使用默认配置:只将错误记录到控制台. 原因:log4j2的jar包是hibernate5框架自带的log4j2,在ssh中即使自己导入了第三方日志包,系统依然会调用log4j2,缺省默认配置文件 log4j2.x

PHP 5.6启动失败failed to open configuration file '/usr/local/php/etc/php-fpm.conf'

PHP编译安装完毕,启动失败,提示 1 [23-Jun-2014 12:27:02] ERROR: failed to open configuration file '/usr/local/php/etc/php-fpm.conf': No such file or directory (2) 2 [23-Jun-2014 12:27:02] ERROR: failed to load configuration file '/usr/local/php/etc/php-fpm.conf' 3

log4j:ERROR setFile(null,true) call failed

1.错误描述 log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:221) at java.io.FileOutputStream.<init>(FileOutputStream

log4j:ERROR A &quot;org.jboss.logging.appender.FileAppender&quot; object is not assignable to a &quot;org.apache.lo .

log4j:ERROR A "org.jboss.logging.appender.FileAppender" object is not assignable to a "org.apache.lo 标签: log4jobjectjbossjarfile工作 2012-01-15 16:53 2302人阅读 评论(0) 收藏 举报 "org.jboss.logging.appender.FileAppender" object is not assign

android studio创建模拟器报错解决 emulator: ERROR: This AVD&#39;s configuration is missing a kernel file!!

android studio创建模拟器报错 emulator: ERROR: This AVD's configuration is missing a kernel file!! 的解决办法 原因有二:1 没有,解决办法通过sdk mangager 下载 2 找不到,解决办法看系统环境变量path(此种情况多数发生在android Studio和EclipseADT同时存在的情况下) 原因是在刚刚安装完毕的androidstudio的sdk目录下没有system-image目录,也许有但没有相

log4j:ERROR A &quot;org.apache.log4j.DailyRollingFileAppender&quot; object is not assignable to a &quot;org.apache.log4j.Appender&quot; variable.

多个classloader加载log4j时需要设置当前Thread的classloader为你自己的classloader Thread.currentThread().setContextClassLoader(classLoader); //for log4j 摘自:org.apache.log4j.helpers.Loader /** * If running under JDK 1.2 load the specified class using the * <code>Thread&