RE: Category root set to OFF (Log4j, Terdata JDBC)

2003-08-21 Thread Sullivan, Sean C - MWT
I figured out the cause of my problem. My application uses the NCR Teradata JDBC driver. terajdbc4.jar - version 3.0.0.1 http://www.teradata.com/ By default, this driver will shut off Log4j's root logger. I don't know why NCR decided to implement the driver in this manner. I found a PDF on

problem logging into Microsoft SQL

2003-08-21 Thread Fedor Smirnoff
Hey guys, I am not sure if anyone using MS SQL server :) but I get an SQL error when there is a ' (single quote) symbol in the log message, I cant format it in my code because the message comes from Tomcat. Error looks like: log4j:ERROR Failed to excute sql java.sql.SQLException: [Microsoft][SQ

Re: log4j dependencies on Java 1.3/1.4?

2003-08-21 Thread Ceki Gülcü
Hello Jim, Log4j version 1.2.8 is compatible JDK 1.1 and later. At 12:35 PM 8/21/2003 -0500, Jim Garrison wrote: I want to use log4j in a java stored procedure on Oracle 8.1.7. The java environment provided by Oracle in this release is at the 1.2 level. Will log4j work in this environment, or do

using JNDI Datasource

2003-08-21 Thread Fedor Smirnoff
Is there a way to use JNDI Datasource instead for JDBC logging? Thanks, Fedor __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com - To un

RE: "Category root set to OFF", Log4j, Teradata JDBC type 4 driver

2003-08-21 Thread Sullivan, Sean C - MWT
It would be nice if NCR's Teradata JDBC driver complied with Ceki's advice: {{ http://www.geocrawler.com/archives/3/8359/2002/7/50/9157442/ DATE: 07/27/2002 00:56:18 SUBJECT: RE: Eleminate multiple intialization The following text, intended for library developers that use log4j, is from the

Log4j, org.apache.log4j.LogManager, resetConfiguration method

2003-08-21 Thread Sullivan, Sean C - MWT
Can somebody explain the purpose of the resetConfiguration method? The javadocs don't provide any information. -Sean class: org.apache.log4j.LogManager method: public static void resetConfiguration() http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/LogManager.html -Sean --

Re: log4j dependencies on Java 1.3/1.4?

2003-08-21 Thread Ceki Gülcü
Hello Jim, Log4j version 1.2.8 is compatible JDK 1.1 and later. At 12:35 PM 8/21/2003 -0500, Jim Garrison wrote: I want to use log4j in a java stored procedure on Oracle 8.1.7. The java environment provided by Oracle in this release is at the 1.2 level. Will log4j work in this environment, or do

"Category root set to OFF", Log4j, Teradata JDBC type 4 driver

2003-08-21 Thread Sullivan, Sean C - MWT
This is my workaround. I call this method after the Teradata JDBC driver is loaded. static void resetLoggingConfiguration() { try { LogManager.resetConfiguration(); String strConfig = System.getProperty("log4j.configuration"); URL configFile = new java.net.URL(strConfig); DOMConfigurator.co

RE: log4j dependencies on Java 1.3/1.4?

2003-08-21 Thread Shapira, Yoav
Howdy, Log4j will work... Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Jim Garrison [mailto:[EMAIL PROTECTED] >Sent: Thursday, August 21, 2003 1:36 PM >To: [EMAIL PROTECTED] >Subject: log4j dependencies on Java 1.3/1.4? > >I want to use log4j in a java stored proce

log4j dependencies on Java 1.3/1.4?

2003-08-21 Thread Jim Garrison
I want to use log4j in a java stored procedure on Oracle 8.1.7. The java environment provided by Oracle in this release is at the 1.2 level. Will log4j work in this environment, or does it depend on features introduced in 1.3 or 1.4? Thanks Jim Garrison [EMAIL PROTECTED] --

RE: Log4j, org.apache.log4j.LogManager, resetConfiguration method

2003-08-21 Thread Sullivan, Sean C - MWT
The method is documented in org/apache/log4j/log4j/Hierarchy.java /** Reset all values contained in this hierarchy instance to their default. This removes all appenders from all categories, sets the level of all non-root categories to null, sets their additivity fl

RE: LOG4J and DB

2003-08-21 Thread Lutz Michael
Search for information on the "JDBCAppender" from Google. Javadoc is found http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/jdbc/JDBCAppender. html. An example of configuring a JDBC Appender in a properties file is found http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=3