onebeartoe.org

 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 https://glassfish.java.net/download.html
    
    
    Particularly, I chose to download the 'Java EE 7 Web Profile' version
    
        http://download.java.net/glassfish/4.1.1/release/glassfish-4.1.1-web.zip
    
        one handy way to copy this to a Linux filesystem is with this command:
            wget http://download.java.net/glassfish/4.1.1/release/glassfish-4.1.1-web.zip
    
        make a directory for glassfish
    
        unzip glassfish-4.1.1-web.zip
    
    
    
        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
    
            http://rasperrypi:4848
    
            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/librxtxSerial-2.2pre1.so rxtxSerial.so
    
                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
            overclock
                900MHertz Medium


        advanced options
            Memory Split
                32


Resources

Glassfish installation by the Hecklers:

http://www.thehecklers.org/2013/10/27/glassfish4-raspberrypi/


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






back    |    top