[jboss-user] [Microcontainer] - Re: Class loading conflict

alesj do-not-reply at jboss.com
Thu Aug 13 07:59:54 EDT 2009


You need to "mimic" this isolation code

  |   String domain = getJMXName(deployment, unit) + ",extension=LoaderRepository";
  |       classLoadingMetaData = new ClassLoadingMetaData();
  |       classLoadingMetaData.setName(unit.getName());
  |       classLoadingMetaData.setDomain(domain);
  |       classLoadingMetaData.setExportAll(ExportAll.NON_EMPTY);
  |       classLoadingMetaData.setImportAll(true);
  |       classLoadingMetaData.setVersion(Version.DEFAULT_VERSION);
  |       classLoadingMetaData.setJ2seClassLoadingCompliance(false);
  | 
  | 
taken from http://anonsvn.jboss.org/repos/jbossas/projects/webbeans-ri-int/trunk/deployer/src/main/java/org/jboss/webbeans/integration/deployer/metadata/WebBeansClassloadingDeployer.java
in your jboss-classloading.xml.

Where you should put this file into esb.deployer and your deployment,
so that both are isolated and don't see over-lapping classes.

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

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



More information about the jboss-user mailing list