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

scott.stark@jboss.org do-not-reply at jboss.com
Mon Apr 30 12:06:44 EDT 2007


"dimitris at jboss.org" wrote : Regarding http://jira.jboss.com/jira/browse/JBAS-3047, I did some adjustments on top of Scott's changes, that I want them to be reviewed.
  | 
  | They way I understand it is:
  | 
  | a) To use the jboss web loader, either it has to be configured as the default setting for tomcat, OR a <loader-repository> entry in jboss-web.xml will activate it. In this case the parent/child first classloading behaviour is controlled by loader-repository java2ParentDelegation, and the java2ClassLoadingCompliance flag is ignored, e.g:
  | 
  |   | <class-loading java2ClassLoadingCompliance='false'>
  |   |   <loader-repository>dot.com:loader=unique-archive-name
  |   |       <loader-repository-config>java2ParentDelegaton=true
  |   |       </loader-repository-config>
  |   |    </loader-repository>
  |   | </class-loading>
  |   | 
  | 
  | b) if the web loader is used, then jboss-web.xml can override the tomcat configured default java2ClassLoadingCompliance setting, e.g:
  | 
  |   | <class-loading java2ClassLoadingCompliance='true'>
  |   | 
  | 
  | Is this correct?

Yes, currently, but you should be able to use either the config you show, or something like:

  | <class-loading java2ClassLoadingCompliance='true'>
  |     <loader-repository>dot.com:loader=unique-archive-name</loader-repository>
  | </class-loading>
  | 
to create a UCL that is not scoped. There is inconsistent handling of the UCL creation in the LoaderRepositoryFactory for this though. It defaults to a scoped ULR, and requires a ctor that does not exist in the unscoped ULR. The WebIntegrationUnitTestCase.testJava2ClassLoadingComplianceOverrideULR is failing because of this.


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

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



More information about the jboss-dev-forums mailing list