Bug #206

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

Added by Karsten Huneycutt - about 9 years ago.

Status:New Start date:
Priority:Normal Due date:
Assignee:Paula Gearon % Done:

0%

Category:Mulgara
Target version:General development
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.

Also available in: Atom PDF