Setup
I have a maven project which creates a war file, I then deploy the war file to a glassfish server (3.1).
My Manifest is default one with just the basic info, but I've also tried maven-war-plugin to add classpath to the Manifest. From my understanding of that plugin it should only help me determine libs outside my web-inf/lib scope.
Problem
In my war file I have two dependencies which both contain the same class but two different version of that class, so I need to specify my Glassfish Archive class loader to load them in a certain order. Now I'm completely lost as how to do this, which leads me to my questions.
Questions
- Is it possible to use the Manifest file to force Glassfish to use a specific classpath?
- How does Glassfish determine in which order it loads the jar files in WEB-INF/lib?
- Is it possible to tell Glassfish how to specify the classpath in some other way?
- If not, is it possible to affect the order Glassfish loads the jar files in WEB-INF/lib?