We're having abit of trouble with jarfile-versions, since certain parts of our application need one version of a jar and other parts another version.
Our system uses version 2 of foo.jar but the classes used to communicate with an external billing-system are not compatible with version 2 and have to use version 1 of foo.jar.
Is it possible to specify that the classes in billing.jar should use a certain version of foo.jar and the rest of the system another.
Everyhing is packaged and deployed in one .ear-file.
Would appriciate any tip or hint on how to solve this problem!
I think you'd have to break it into two ears and use a different class loader for each app. Check the JBoss docs for class loader or unified class loader.