1 Reply Latest reply on Apr 11, 2008 3:59 AM by alesj

    classloader class isolation and .spring archive.

      Hi all,
      I have a .spring archive of an application which uses CollectionFactory class from spring-2.0.7.jar. This class has a new method added to the it called createIdentityMapIfPossible() in this version of the jar. The spring deployer I am using has an older version on this class without this method.
      Now when I start JBoss the spring deployer is loaded first and then my .spring archive ( as it uses this deployer). Because the deployer has an older version of this class I get errors as my code cant find the createIdentityMapIfPossible() method.
      The way around this to isolate my application from the other classes by configuring my class path. Now as per the article http://wiki.jboss.org/wiki/ClassLoadingConfiguration
      I can achieve this for EAR,WAR and SARs but what about .spring archives???

      Any thoughts are appreciated.

      -Rish.