PQ79097: NULL RETURNED WHEN ACCESSING THE RESOURCE FILE (.PROPERTIES FILE) VIA SYMBOLIC LINK IN 5.0.X | |||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() 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\June16Local fix Cu needs to keep the real file dir structure also in the classpath in addition to keeping the symbolic link dir structureProblem 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 is sysrouted FROM one or more of the following: PQ75815 APAR is sysrouted TO one or more of the following: Modules/Macros
SRLS
|
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
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.