• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Websphere 3.5, Log4j 1.2.7

 
Ranch Hand
Posts: 427
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Everyone is a villain in someone else's story. Especially this devious tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic