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.
What's the version of JBossAS you're using?
Try updating Spring deployer, I've released a bunch of compatible versions that work against Spring 2.0.8 and 2.5.