File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Websphere 3.5, Log4j 1.2.7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "Websphere 3.5, Log4j 1.2.7" Watch "Websphere 3.5, Log4j 1.2.7" New topic
Author

Websphere 3.5, Log4j 1.2.7

Sean Sullivan
Ranch Hand

Joined: Sep 09, 2001
Posts: 427
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

Joined: Sep 09, 2001
Posts: 427
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

Joined: Oct 26, 2002
Posts: 19
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Websphere 3.5, Log4j 1.2.7
 
Similar Threads
Jdk 1.4 with WAS 3.5
Unable to access classes in a jar file
NotSerializableException when i use rmiregistry
Help! Wsdl2Java Can't parse a Coldfusion WSDL?
Log4j, MalformedURLException: no protocol: log4j.dtd