4 Replies Latest reply on Aug 13, 2007 5:58 AM by gauravc123

    Regarding using JDBC SQL Handler in JBOSS Portal

    gauravc123

      I am trying to use jdbcappender.jar to insert the log4j messages into a database table using JDBCSqlHandler by creating my own SqlHandler Class as MySqlHandler

      The properties i have mentioned in the log4j.xml are as follows:












      where I have bundled the class MySQLHandler as a jar file and placed in server/lib folder.

      On starting the server I get an error during log4j initialization as follows in two lines successively and the MYSqlhandler is not working .

      log4j:ERROR JDBCAppender::setSqlhandler(), sqlhandler must be derived of JDBCSqlHandler !
      log4j:ERROR JDBCAppender::setSqlhandler(), sqlhandler must be derived of JDBCSqlHandler !

      Please help me ASAP , on this as I tried seraching a lot on the forum and google but couldn't get any help ....

      Thanks in Advance ....