[jboss-jira] [JBoss JIRA] Resolved: (AS7-1646) Allow for MODULEPATH to effect the -mp standalone.sh/standalone.bat argument

Stuart Douglas (JIRA) jira-events at lists.jboss.org
Thu Aug 25 03:29:18 EDT 2011


     [ https://issues.jboss.org/browse/AS7-1646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stuart Douglas resolved AS7-1646.
---------------------------------

    Fix Version/s: 7.1.0.Beta1
       Resolution: Done


> Allow for MODULEPATH to effect the -mp standalone.sh/standalone.bat argument
> ----------------------------------------------------------------------------
>
>                 Key: AS7-1646
>                 URL: https://issues.jboss.org/browse/AS7-1646
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: Modules
>    Affects Versions: 7.0.0.Final, 7.0.1.Final
>            Reporter: Scott Stark
>            Assignee: Scott Stark
>             Fix For: 7.1.0.Beta1
>
>
> If one tries to override the bootstrap module path by providing a MODULEPATH environment variable, it is never consulted since the -mp argument set by the standalone.sh script is simply used as the value for the org.jboss.modules.Main module.path system property, overriding any existing value, and precluding any use of the MODULEPATH environment variable. There should be a way to set the module path used via a setting in the standalone.conf/standalone.conf.bat. The simplest would be to look for MODULEPATH and if not set, default to the current $JBOSS_HOME/modules value passed in as the -mp argument value:
> --- a/build/src/main/resources/bin/standalone.sh
> +++ b/build/src/main/resources/bin/standalone.sh
> @@ -115,6 +115,10 @@ if $cygwin; then
>      JBOSS_ENDORSED_DIRS=`cygpath --path --windows "$JBOSS_ENDORSED_DIRS"`
>  fi
>  
> +if [ "x$MODULEPATH" = "x" ]; then
> +    MODULEPATH="$JBOSS_HOME/modules"
> +fi
> +
>  # Display our environment
>  echo "=========================================================================
>  echo ""
> @@ -136,7 +140,7 @@ while true; do
>           \"-Dorg.jboss.boot.log.file=$JBOSS_HOME/standalone/log/boot.log\" \
>           \"-Dlogging.configuration=file:$JBOSS_HOME/standalone/configuration/lo
>           -jar \"$JBOSS_HOME/jboss-modules.jar\" \
> -         -mp \"$JBOSS_HOME/modules\" \
> +         -mp \"$MODULEPATH\" \
>           -logmodule "org.jboss.logmanager" \
>           -jaxpmodule javax.xml.jaxp-provider \
>           org.jboss.as.standalone \
> @@ -149,7 +153,7 @@ while true; do
>           \"-Dorg.jboss.boot.log.file=$JBOSS_HOME/standalone/log/boot.log\" \
>           \"-Dlogging.configuration=file:$JBOSS_HOME/standalone/configuration/lo
>           -jar \"$JBOSS_HOME/jboss-modules.jar\" \
> -         -mp \"$JBOSS_HOME/modules\" \
> +         -mp \"$MODULEPATH\" \
>           -logmodule "org.jboss.logmanager" \
>           -jaxpmodule javax.xml.jaxp-provider \
>           org.jboss.as.standalone \

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list