RE: [JBoss-user] JBoss classpaths and ClassLoader.getSystemClassLoader()

2003-10-15 Thread Sebastian Hauer
: Subject:[JBoss-user] JBoss classpaths and ClassLoader.getSystemClassLoader() (running jboss 3.2.1 on linux 2.4.7 kernel) There is the following bit of code in the J2SE 1.4 class java.util.prefs.Preferences.. private static final PreferencesFactory factory; static { String

Re: [JBoss-user] JBoss classpaths and ClassLoader.getSystemClassLoader()

2003-10-15 Thread Brian Wallis
On Wed, 15 Oct 2003 09:57 pm, Sebastian Hauer wrote: You can't use the system classloader for this. Try the current threads context classloader (Thread.currentThread().getContextClassLoader()). That's what I was afraid of. The code in question is in the standard JDK 1.4 library in the

Re: [JBoss-user] JBoss classpaths and ClassLoader.getSystemClassLoader()

2003-10-15 Thread Scott M Stark
The earlier versions of JAAS also would only load classes from the system class loader, and if they can relax that I don't see why a preferences factory should be any different. You could use the same trick we did in 2.4, create a proxy preferences factory and simply uses the thread context class

Re: [JBoss-user] JBoss classpaths and ClassLoader.getSystemClassLoader()

2003-10-15 Thread Adrian Brock
On Wed, 2003-10-15 at 14:29, Brian Wallis wrote: On Wed, 15 Oct 2003 09:57 pm, Sebastian Hauer wrote: You can't use the system classloader for this. Try the current threads context classloader (Thread.currentThread().getContextClassLoader()). That's what I was afraid of. The code in

Re: [JBoss-user] JBoss classpaths and ClassLoader.getSystemClassLoader()

2003-10-15 Thread Scott M Stark
There should be no difference as far as documented behavior goes, but the first apparently caches classes based on equality of class loaders and can break redeployments. -- Scott Stark Chief Technology Officer JBoss Group, LLC Brian Wallis wrote:

[JBoss-user] JBoss classpaths and ClassLoader.getSystemClassLoader()

2003-10-14 Thread Brian Wallis
(running jboss 3.2.1 on linux 2.4.7 kernel) There is the following bit of code in the J2SE 1.4 class java.util.prefs.Preferences.. private static final PreferencesFactory factory; static { String factoryName = (String) AccessController.doPrivileged(new PrivilegedAction() {