[jboss-dev-forums] [Design of JBoss/Tomcat Integration] - Re: java2ClassLoadingCompliance in AS5?

adrian@jboss.org do-not-reply at jboss.com
Tue Nov 25 12:35:53 EST 2008


"stan.silvert at jboss.com" wrote : Dimitris just re-enabled an old test that excercises the WAR_BUNDLES_JSF_IMPL community-only feature:
  | http://www.jboss.org/community/docs/DOC-10182
  | 
  | The test is now failing on AS5 because the JSF classes in jbossweb.sar/jsf-libs are loaded before the JSF classes in WEB-INF/lib.
  | 
  | The observed behavior is the same as if you set java2ClassLoadingCompliance=true on AS4.2.
  | 
  | So I'm first wondering if anyone knows if we have a reliable unit test for java2ClassLoadingCompliance?  Perhaps java2ClassLoadingCompliance simply isn't working in AS5.
  | 

Yes there are tests and they are working.
But they obviously don't have enough code coverage
(unless you include this test :-), see below.

anonymous wrote : 
  | If that's not it then we will need to dig deeper.  Any ideas?
  | Stan

You bring this up on the very day that Ales releases 2.0.0.GA of jboss-cl. ;-)

The issue is the parent policy we are using for the
java2ClassLoadingCompliance=false

  |    public ParentPolicy getDeterminedParentPolicy()
  |    {
  |       if (isJ2seClassLoadingCompliance())
  |          return ParentPolicy.BEFORE;
  |       else
  |          return ParentPolicy.AFTER_BUT_JAVA_BEFORE;
  |    }
  | 

The AFTER_BUT_JAVA_BEFORE actually means
java.* and javax.* is delegated to the parent before asking the web-app
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/spi/ParentPolicy.java?revision=78356&view=markup
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-cl/branches/Branch_2_0/classloader/src/main/java/org/jboss/classloader/plugins/filter/JavaOnlyClassFilter.java?revision=78356&view=markup

Wheras previously in jboss-4.2 it was just java.* that got delegated to the
parent before asking the web-app.

So this is a bug.
https://jira.jboss.org/jira/browse/JBCL-73

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

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



More information about the jboss-dev-forums mailing list