This guide shows how to install the JEE application server Glassfish, on Debian/Rasbpian operating systems.

 This guide shows how to install the JEE application server Glassfish.

  1. Obtain Glassfish Distribution
    The download site I used is
    Particularly, I chose to download the 'Java EE 7 Web Profile' version
        one handy way to copy this to a Linux filesystem is with this command:
        make a directory for glassfish
        change the default password
            cd /opt/glassfish/glassfish4/bin/
            ./asadmin change-admin-password --user admin
                press enter for the default password
                enter the new password twice
        start default domain
            ./asadmin start-domain
        enable remote administraion
            ./asadmin enable-secure-admin
                enter admin for username (specified avove)
                enter admin password (from above)
        restart domain
        In order for changes to take effect
            ./asadmin stop-domain
            ./asadmin start-domain
        uplaod a WAR in the Glassfishadmin console
            use the admin credentials used in the steps above
    rxtxSerial errors
        are you seeing:
            An error has occurred
                Error occurred during deployment: Exception while loading the app : java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.apache.catalina.LifecycleException: java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path. Please see server.log for more details.
            then issue these command:
                sudo apt-get install librxtx-java
                cd /usr/lib/
                sudo ln -s /usr/lib/jni/
                in the Glassfish Web admin console, add '/usr/lib/jni' to Configurations -> server-config -> JVM Settings -> Path Settings (tab) -> Native Library Path Prefix

Performance Issues

If the Raspberry Pi runs Glassfish and the Web application with lag issues, then try the following to increase performance.

        sudo raspi-config
                900MHertz Medium

        advanced options
            Memory Split


Glassfish installation by the Hecklers:

Date Created: 2016-06-13 23:54:01 -0500 (Mon, 13 Jun 2016)

back    |    top