summaryrefslogtreecommitdiff
path: root/javax/naming
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2003-07-13 23:34:19 +0000
committerMark Wielaard <mark@klomp.org>2003-07-13 23:34:19 +0000
commit525deb01d5d9a9671c7f6c68d197470920744621 (patch)
treeb18ccd02f4e15fb4900140c80bb24dc63dd50bf5 /javax/naming
parent1583bb5731c3aad1a93fcbebf264096ad39dd0aa (diff)
downloadclasspath-525deb01d5d9a9671c7f6c68d197470920744621.tar.gz
2003-07-13 Jeroen Frijters <jeroen@sumatra.nl>
* java/beans/PropertyEditorManager.java (findEditor): use the thread context class loader to try and find the class * javax/naming/spi/NamingManager.java (getInitialContext): use the thread context class loader
Diffstat (limited to 'javax/naming')
-rw-r--r--javax/naming/spi/NamingManager.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/javax/naming/spi/NamingManager.java b/javax/naming/spi/NamingManager.java
index 6d02f9d2c..8b215cee5 100644
--- a/javax/naming/spi/NamingManager.java
+++ b/javax/naming/spi/NamingManager.java
@@ -83,13 +83,17 @@ public class NamingManager
try
{
- icf = (InitialContextFactory) Class.forName (java_naming_factory_initial).newInstance ();
+ icf = (InitialContextFactory)Class.forName
+ (java_naming_factory_initial, true,
+ Thread.currentThread().getContextClassLoader())
+ .newInstance ();
}
catch (Exception exception)
{
NoInitialContextException e
- = new NoInitialContextException ("Can't load InitialContextFactory class: "
- + java_naming_factory_initial);
+ = new NoInitialContextException
+ ("Can't load InitialContextFactory class: "
+ + java_naming_factory_initial);
e.setRootCause(exception);
throw e;
}