[
https://issues.jboss.org/browse/GTNPORTAL-2449?page=com.atlassian.jira.pl...
]
Marko Strukelj commented on GTNPORTAL-2449:
-------------------------------------------
The behaviour might be different between windows and unix but let's have a concrete
example ...
Let's have two directories: /opt/jboss-as-7.1.0.Final and /opt/jboss-as-7.1.1.Final
Normally I do:
cd /opt/jboss-as-7.1.0.Final/bin
./standalone.sh
...
14:48:26,563 INFO [org.jboss.as] (MSC service thread 1-3) JBAS015874: JBoss AS
7.1.0.Final "Thunder" started in 2129ms - Started 138 of 209 services (70
services are passive or on-demand)
CTRL+C
echo $JBOSS_HOME
(displays empty line - meaning that even though JBOSS_HOME was set and exported in
standalone.sh its visibility was limited to the executed command)
cd /opt/jboss-as-7.1.1.Final/bin
./standalone.sh
...
14:50:09,031 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS
7.1.1.Final "Brontes" started in 1859ms - Started 133 of 208 services (74
services are passive or on-demand)
CTRL+C
Now let's explicitly set JBOSS_HOME in the shell:
export JBOSS_HOME=/opt/jboss-as-7.1.1.Final
echo $JBOSS_HOME
/opt/jboss-as-7.1.1.Final
(displays the new value)
Now let's go back to jboss-7.1.0.Final and start that one again
cd /opt/jboss-as-7.1.0.Final/bin
./standalone.sh
...
14:58:01,250 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS
7.1.1.Final "Brontes" started in 1859ms - Started 133 of 208 services (74
services are passive or on-demand)
Oooops. I intended to start 7.1.0.Final and ended up starting 7.1.1.Final.
Can not start server when run script outside "bin"
directory on JBoss 7
-----------------------------------------------------------------------
Key: GTNPORTAL-2449
URL:
https://issues.jboss.org/browse/GTNPORTAL-2449
Project: GateIn Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Hai Nguyen
Attachments: GTNPORTAL-2449.patch
In file bin/standalone.conf, I see the property "exo.conf.dir" which declared
by $PWD/../standalone/configuration/gatein. So we can not start server if we stay where
outside "bin" directory
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira