[
http://jira.jboss.com/jira/browse/JBAS-5467?page=comments#action_12409757 ]
Brian Egge commented on JBAS-5467:
----------------------------------
This isn't for deployments, but rather when the micro-kernel loads the jars in the lib
directory. The deployment order once the micro-kernel is loaded is well defined and easy
to customize, however, the lib directory isn't. Obviously, one should be filling up
the JBoss lib directory with dependencies, but rather include those with the war/ear
file.
Regardless, if you look at the code, it returns a list of files. The order which they are
returned is system dependent. Sorting them will help ensure JBoss runs the same on
multiple platforms. Other functions like FileUtils.listDirectory would become more
stable.
Order files loaded by the SARDeployer
-------------------------------------
Key: JBAS-5467
URL:
http://jira.jboss.com/jira/browse/JBAS-5467
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: System service
Reporter: Brian Egge
Assigned To: Dimitris Andreadis
Priority: Optional
Attachments: sardeployer-sorting.diff
Original Estimate: 15 minutes
Remaining Estimate: 15 minutes
Java's File.listFiles returns files in a not always consistent order. This can be
seen by listing a large directory on different platforms, or even on the same platform.
Specifically, on Solaris we had copied the deploy directory, and found the behavior of our
app changed. This was due to two jar files having different versions of the same class.
Always loading files in the same order would reduce the chance of the order randomly
changing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira