jbossas/jboss-as — pull request #1001 by jaikiran (2011-12-26 15:10:22+00:00)
Title: Use JBOSS_MODULEPATH instead of MODULEPATH environment variable in JBoss AS scripts

More than one users on Fedora have reported that they have run into problems starting a out-of-box JBoss AS7 http://community.jboss.org/thread/175689?tstart=60. It appears that Fedora has some other application which uses (and has set) MODULEPATH environment variable. We use this environment variable in our startup scripts for pointing to the root of modules repository. The already set value (by a different application) in Fedora leads to an incorrect root for modules repository for JBoss AS.

The commit in this branch changes the usage of MODULEPATH to JBOSS_MODULEPATH (this new name also adds a bit of implicit context to that environment variable). This should prevent issues on Fedora.

P.S: Please check with David and Jason, if this change is OK, before merging this upstream.