[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: Bean as a value to a deployment level classloader

adrian@jboss.org do-not-reply at jboss.com
Wed Apr 4 10:49:02 EDT 2007


The other failing classloader test is due to the "mock" VFSClassLoader
getting used to load kernel classes causing a type inconsistency.

This is probably also due to the core kernel classes and the test classes
living in the same codesource with the current eclipse configuration.

I've hacked this classloader so it only loads classes that begin with "org.jboss.test"

  |    public Class<?> loadClass(String name, boolean flag)
  |       throws ClassNotFoundException
  |    {
  |       
  | +      if (name.startsWith("org.jboss.test") == false)
  | +         return getClass().getClassLoader().loadClass(name);
  | 

Which resolves this issue.

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

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



More information about the jboss-dev-forums mailing list