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:
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.