User instance, managed by JBoss Tools
-
Create a new user instance:
jboss-as-cp -l $HOME/applications/jboss-as-user-instance
-
New > Server
-
Server name: JBoss AS 7.1 Runtime (managed instance)
-
Server runtime environment: Add… (if necessary)
-
Name: JBoss AS 7.1 Runtime (system), Home directory: /usr/share/jboss-as, Configuration file: standalone-web.xml
-
Click Finish (three times)
-
Double click on “JBoss AS 7.1 Server (managed instance)” in Server tab
-
Click the Open launch configuration link
-
[ ] Always update arguments related to the runtime.
-
Modify VM arguments:
-
Remove:
“-Dorg.jboss.boot.log.file=/usr/share/jboss-as/standalone/log/boot.log” “-Dlogging.configuration=file:/usr/share/jboss-as/standalone/configuration/logging.properties” “-Djboss.home.dir=/usr/share/jboss-as”
-
Append:
“-Dorg.jboss.boot.log.file=${env_var:HOME}/applications/jboss-as-user-instance/log/boot.log” “-Dlogging.configuration=file:${env_var:HOME}/applications/jboss-as-user-instance/configuration/logging.properties” “-Djboss.home.dir=/usr/share/jboss-as” “-Djboss.server.base.dir=${env_var:HOME}/applications/jboss-as-user-instance”
-
-
Click OK
-
Select the Deployment tab
-
(*) Use workspace metadata
-
Save
-
Drag application to “JBoss AS 7.1 Server (managed instance)” in Server tab
-
Click the play button in the toolbar of the Server tab