JavaPOSWorkingGroup / javapos-config-loader

JavaPOS Configuration Loader (aka JCL) for loading JavaPOS configurations and providing JavaPOS configuration data to applications
Other
0 stars 6 forks source link

Class XmlHelper is not compatible with webstart environment #1

Closed kuniss closed 2 days ago

kuniss commented 8 years ago

[Migrated from sourceforge issue tracker, added by Anonymous: https://sourceforge.net/p/jposloader/bugs/57/]

The class XmlHelper is not compatible with the webstart environment. There is referred a JRE system classloader instead of current classoader assigned to the class. The proposed correction does not affect non-webstart applications. See the code snippet below:

public void checkAndCreateTempDtd() {
is = ClassLoader.getSystemClassLoader().getResourceAsStream( dtdJarFullFileName );
}

should be:

is = getClass().getClassLoader().getResourceAsStream( dtdJarFullFileName );

The change needs to be done at src/main/java/jpos/util/XmlHelper.java.

kuniss commented 2 months ago

This can be tested with release candidate RC2.

Help for testing is very appreciated as I do not have an environment for this.

kuniss commented 2 days ago

This issue has been fixed in release 4.0.0.