Anatoly Akkerman wrote:

> I've been seeing the following problem and have been wondering how to
> solve it or whether the grand unification will solve it. 
> 
> I am writing an EJB application that processes XML descriptors using
> Castor. Now, Castor is loaded by the SL and is available to the
> application but when an EJB invokes Castor, it has to be able to
> instantiate certain classes from the application. It seems in 3.0alpha
> this is not possible. The only way I can get rid of this problem is by
> removing castor from lib/ext and deploying it as an application
> library. This is, obviously not a good solution. 
> 
> In general, is there a way to deal with such issues?

This is really a known bug of Castor. It, like a ton of other flawed 
libraries, does not use 
Thread.currentThread().getContextClassLoader().loadClass() to get 
classes. Instead it uses Class.forName(), which doesn't work properly. 
If this is changed in Castor, your code will work just fine.

/Rickard

-- 
Rickard �berg


_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to