PQ75815: 5.0.0, 5.0.1, 5.0.2: getResource returns NULL
 Downloadable files
 
Abstract
getResource returns NULL when accessing symbolic links. If the explicit filename is used getResource works correctly.
 
Download Description

USERS AFFECTED: WebSphere Application Server 5.0 Users.

PROBLEM DESCRIPTION: A null is returned when accessing a resource file via a symbolic link.

RECOMMENDATION:
A null is returned when accessing a resource file (.properties file) that is using a symbolic link. Below is a sample snippet of code used to load the properties file:

URL myurl = Config.class.getResource(FILE_DEPLOY) ;

When the file is real (not a symbolic link) it loads properly. When the file is a symbolic link it does not load. The variable myurl is null.

PROBLEM CONCLUSION:
The getResource method has been modified to access symboliclinks in Unix, provided the link is created in the appropriate directory.
 
Prerequisites
UpDateInstaller
 
URL LANGUAGE SIZE(Bytes)
UpDateInstaller US English 6000000
 
 
Installation instructions
Please review the readme.txt for detailed installation instructions
 
URL LANGUAGE SIZE(Bytes)
Readme US English 1791
 
Download package
What is DD?
DOWNLOAD RELEASE DATE LANGUAGE SIZE(Bytes) Download Options
PQ75815 7/3/2003 US English 9881 FTP DD
 
Technical support
800-IBM-SERV (U.S. calls only)
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
Problems (APARs) fixed
PQ75815
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Servlet Engine/Web Container
Operating system(s): Windows
Software version: 5.0.2
Software edition:
Reference #: 4005168
IBM Group: Software Group
Modified date: Aug 23, 2003