i've recently upgraded to jboss-4.0.1sp1, java5, and EJB3.
the one thing that i cannot get working is dynamic class loading.
my code looks a little something like this:
Class cls = Thread.currentThread().getContextClassLoader().loadClass(name)
the problem manifests itself that i can only load classes from the same java package, or a parent java package. any attempt to load a class from a sibling java package result in a
ClassNotFoundException that is to say, given the package hierarchy below, from ClassA, i can load ClassY and ClassX. attempts to load ClassZ result in the
ClassNotFoundException
alpha
+-bravo
+-ClassX
+-charlie
+-ClassA
+-ClassY
+-delta
+-ClassZ
the above code worked under JBoss4.0.0.
what am i doing wrong ?
thanking you