Hi,
I am using JDBC appender to log to DB2 database. I am getting an error " failed to
execute sql. no suitable driver ". I have the driver jar file included in my java
classpath.
The following is my config file.
#log4j config file
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.jdbc.JDBCAppender
log4j.appender.R.URL=jdbc:db2://localhost/LOG4JDemo
log4j.appender.R.user=default
log4j.appender.R.password=default
log4j.appender.R.sql=INSERT INTO JDBCTEST (Message) VALUES ('%d - %c - %p - %m')
log4j.appender.R.layout=org.apache.log4j.PatternLayout
#end of config file
Is there a way to add the classpath in the config file? Any help on finding the source
of the error would help.
Thanks,
Sangeeta
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]