[jboss-user] [EJB 3.0] - Re: No ClassLoaders found using derived class

ALRubinger do-not-reply at jboss.com
Fri Sep 19 14:35:03 EDT 2008

We're getting compile-time and runtime requirements mixed here.

Yes, it's a valid tenant of OOP to accept any subclass of Object in your cache.

However, for the JVM to work with objects, it must first load the Class that defines it, meaning the .class definition must be available to the ClassLoader.  In the case of EJB3, each "Container" has its own ClassLoader (allocated at deployment/container construction), and this CL does not support loading bytes from a remote location (which would be required for this use case).

So long story short is that all class definitions must be available on the server for them to use used.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4177735#4177735

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4177735

More information about the jboss-user mailing list