我开始使用log4j已经有一段时间了;非常酷的日志记录框架。我还做过其他类型的日志记录,如控制台和文件日志记录。因此,尝试使用mysql for Database logging的数据库适配器。因此,我创建了以下名为log4j.properties的属性文件-
# Define the root logger with appender file
log4j.rootLogger = DEBUG, DB
# Define the DB appender
log4j.appender.DB=org.apache.log4j.jdbc.JDBCAppender
# Set JDBC URL
l
我在Eclipse中部署动态web应用程序时遇到了问题。我的应用程序由JSP组成,使用Spring/Hibernate框架,并有一个MySQL数据库后端。当我部署应用程序时,我得到了错误:
HTTP Status 404 -
type Status report
message
description The requested resource () is not available.
Apache Tomcat/6.0.29
在控制台中,我在清理项目时得到以下语句:
log4j:由于使用NOPLoggerRepository重新加载类时出错,错误LogMananger.rep
BoneCP version=0.7.1
slf4j=1.7.5
每次我连接到mysql时。它会说
log4j:WARN No appenders could be found for logger (com.jolbox.bonecp.BoneCPConfig).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
但是我找不到任何使用boneCP的配置示例,给我举个
如何解决以下错误...我是不是遗漏了一些jar文件?
log4j:WARN No appenders could be found for logger (smslib).
log4j:WARN Please initialize the log4j system properly.
org.smslib.GatewayException: Comm library exception: java.lang.RuntimeException: javax.comm.PortInUseException: Port currently owned by Unknown Window
Consol消息:
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
org.hibernate.exception.GenericJDBCException: Could not open connection
Config文
我使用struts1.3.8,对于日志,使用log4j。它在Windows中写入日志,但不在Unix上写入日志。
经过分析,我了解到库中有通用的日志记录和log4j jars。我认为clash happened.when我删除了commons-logging并执行它抛出了ClassNotFoundException:org.apache.commons.logging.LogFactory
i'm using log4j.properties file for appenders and location of writing logs. I tried with commons-l
我正试图在我的VPS服务器上安装openfire。服务已经启动并运行。我被困在openfire服务器的数据库配置步骤中。我已经在mysql服务器上创建了openfire数据库,并导入了模式。但是,当我试图在基于web的安装程序中使用这些设置时,我会得到以下错误:
A connection to the database could not be made. View the error message by opening the "/logs/error.log" log file, then go back to fix the problem.
设置如下: JDBC驱动