PQ79097: NULL RETURNED WHEN ACCESSING THE RESOURCE FILE (.PROPERTIES FILE) VIA SYMBOLIC LINK IN 5.0.X

 A fix is available

4.0.7: WebSphere Application Server Version 4.0 Fix Pack 7



APAR status
Closed as program error.

Error description
Null returned when accessing the resource file
(deploy.properties file)
via symbolic link by means of Class.getResource() in 5.0 but
works fine
 in 4.0.3 FYI, symbolic link is under the classpath but not the
real file
in both the versions
Truss was taken when working and when not working.
and kept under wasdoc1\08\08500.004.000\June16
Local fix
Cu needs to keep the real file dir structure also in the
classpath
in addition to keeping the symbolic link dir structure
Problem summary
****************************************************************
* 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 symbolic
links in Unix, provided the link is created in the appropriate
directory.
Temporary fix
Fix provided to customer, waiting for feedback..
Comments
APAR information
APAR number PQ79097
Reported component name WAS BASE 5.0
Reported component ID 5630A2200
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-10-01
Closed date 2003-10-01
Last modified date 2003-10-01

APAR is sysrouted FROM one or more of the following:
PQ75815

APAR is sysrouted TO one or more of the following:

Modules/Macros
classldr          

SRLS

Fix information
Fixed component name WAS BASE 5.0
Fixed component ID 5630A2200

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ79097
IBM Group: Software Group
Modified date: Oct 1, 2003