Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Websphere 3.5, Log4j 1.2.7

 
Sean Sullivan
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is anybody using Log4j 1.2.7 in Websphere 3.5?
I installed the log4j JAR file and a copy of
log4j.xml
The problem is that Log4j is having trouble loading log4j.dtd
This is surprising because log4j.dtd is contained inside the log4j JAR file. I have not modified the DTD or the JAR.
Any advice?
 
Sean Sullivan
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been trying to utilize Log4j 1.2.7 in Websphere 3.5
Log4j attempts to load a file called log4j.dtd using the getResource() method in java.lang.Class
The getResource() method is always returning null.
I searched IBM's online support and there appears to be a bug related to getResource()
---
PQ53045: JARFILECLASSPROVIDER DOES NOT IMPLEMENT GETRESOURCE
Abstract
JARFILECLASSPROVIDER DOES NOT IMPLEMENT GETRESOURCE



Error description
JarFileClassProvider does not implement getResource

Problem summary
****************************************************************
* USERS AFFECTED: All WebSphere Application Server users of *
* getResource *
****************************************************************
* PROBLEM DESCRIPTION: Users of getResource were getting a *
* null value returned. *
****************************************************************
* RECOMMENDATION: *
****************************************************************
The JarFileClassProvider was missing code such that users of
getResource were getting a null returned.
Problem conclusion
This problem was corrected by a change to:
com/ibm/servlet/classloader/JarFileClassProvider.java
The defect number is 112372
Temporary fix
pq53045.jar
http://www.ibm.com/
 
Tony Mandatori
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using log4j1.2.1 with WAS 4.0.
I just put it in the WEB-INF lib of the application's war file
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic