[jboss-jira] [JBoss JIRA] (WFLY-2523) cygwin jboss-cli.sh
Darko Palic (JIRA)
jira-events at lists.jboss.org
Sun Nov 17 14:28:05 EST 2013
Darko Palic created WFLY-2523:
---------------------------------
Summary: cygwin jboss-cli.sh
Key: WFLY-2523
URL: https://issues.jboss.org/browse/WFLY-2523
Project: WildFly
Issue Type: Patch
Security Level: Public (Everyone can see)
Components: CLI
Affects Versions: 8.0.0.Beta1
Environment: windows 7 x64 / cygwin
Reporter: Darko Palic
Assignee: Alexey Loubyansky
On cygwin is the implementation of the path variables not correct in the script jboss-cli.sh. Right now under cygwin the paths get mixed in POSIX and Windows style. The module path (-mp param) is in POSIX style and the rest of the command is in windows style. So the startup of the org.jboss.as.cli ends up with
{code}
org.jboss.modules.ModuleNotFoundException: org.jboss.as.cli:main
at org.jboss.modules.ModuleLoader.loadModule(ModuleLoader.java:240)
at org.jboss.modules.Main.main(Main.java:385)
{code}
Right now wildfly 8 beta1 has following implementation:
{code:title=jboss-cli.sh|borderStyle=solid}
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
fi
{code}
and it should be:
{code:title=jboss-cli.sh|borderStyle=solid}
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
JBOSS_HOME=`cygpath --path --windows "$JBOSS_HOME"`
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
JBOSS_MODULEPATH=`cygpath --path --windows "$JBOSS_MODULEPATH"`
fi
{code}
PS: I searched for similar cli issues, but couldn't find the above solution for it.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list