Glassfish server installation and Configuration

we will run the server as user glassfish. So first (as root) we create user glassfish:

/usr/sbin/adduser -d /usr/glassfish4 -m --shell /bin/bash glassfish


cd /usr unzip ~/

chown -R glassfish.glassfish /usr/glassfish4

get jdk from: here

Now change the configuration file for glassfish to point to the correct jdk:

emacs /usr/glassfish4/glassfish/config/asenv.conf

add the line (replace the xxxx with the correct java version


Start up scripts:

edit /etc/rc.d/init.d/glassfish

make sure the glassfish path is set correctly: GLASSFISHPATH=/usr/glassfish4/bin

now before starting set the glassfish server set the admin password


change-admin-password --user admin

that will prompt you for the new admin password

now start the server and allow for remote administration:

/etc/rc.d/init.d/glassfish start

/usr/glassfish4/bin/asadmin --port 4848 enable-secure-admin

this will ask you for the admin account and password you now can administer the server remotely using the following url in case of the g4devel machine:

use the Gui to create the G4Expert account and then to deploy the web application.

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r2 - 2016-04-07 - HansWenzel
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Geant4 All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback