Project

General

Profile

Actions

Bug #206

open

MulgaraUserConfig uses system classloader for conf/mulgara-x-config.xml

Added by Karsten Huneycutt - about 15 years ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Mulgara
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:

Description

The MulgaraUserConfig class uses the system class loader to find conf/mulgara-x-config.xml. In some cases, the system class loader is not necessarily the class loader that was used to load the mulgara jar, so it is unable to find the config file that is in the mulgara jar.

The simple fix is to change

URL sysUrl = [[ClassLoader]].getSystemResource(CONFIG_PATH);

to

URL sysUrl = this.getClass().getClassLoader().getResource(CONFIG_PATH);

in src/jar/server/java/org/mulgara/server/MulgaraUserConfig.java, line 89.

No data to display

Actions

Also available in: Atom PDF