Run Java EE apps on the Raspberry Pi with Payara Micro

Payara Micro is a fantastic little Java server that requires no installation to get it running. All you need is Java installed on your Pi (which is default on Raspbian) and a simple command and you’re up and running. It’s then easy to run .WAR files and run whatever apps you like. It’s very neat, very small (less than 60MB) and you can find full instructions on using it on the Voxxed website.

4 comments for “Run Java EE apps on the Raspberry Pi with Payara Micro

  1. I was most impressed – especially the clustering aspect – with the description of Payara Micro so I wanted to try it.

    I have written to Payara about this.
    I got a “exception during agent attach” and probably as a consequence kept getting “will try later” :::

    015-05-21 17:43:18 (733 KB/s) – `payara-micro.jar’ saved [57591565/57591565]

    root@rpi229:/home/pi# java -jar payara-micro.jar
    Found populator: org.glassfish.kernel.embedded.EmbeddedDomainXml
    [2015-05-21T17:45:52.267+0200] [Payara 4.1] [WARNING] [NCLS-MON-00504] [javax.enterprise.system.tools.monitor] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223152267] [levelValue: 900] Encountered exception during agent attach

    [2015-05-21T17:46:05.145+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223165145] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProvider , will retry later

    [2015-05-21T17:46:05.324+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223165324] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.KeepAliveStatsProvider , will retry later

    [2015-05-21T17:46:05.652+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223165652] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.FileCacheStatsProvider , will retry later

    [2015-05-21T17:46:05.854+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223165854] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.ConnectionQueueStatsProvider , will retry later

    [2015-05-21T17:46:10.795+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223170795] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProvider , will retry later

    [2015-05-21T17:46:11.056+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223171056] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.KeepAliveStatsProvider , will retry later

    [2015-05-21T17:46:11.489+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223171489] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.FileCacheStatsProvider , will retry later

    [2015-05-21T17:46:11.700+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223171700] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.ConnectionQueueStatsProvider , will retry later

    [2015-05-21T17:46:12.710+0200] [Payara 4.1] [INFO] [NCLS-CORE-00087] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223172710] [levelValue: 800] Grizzly Framework 2.3.19 started in: 2,160ms – bound to [/0.0.0.0:8080]

    [2015-05-21T17:46:12.752+0200] [Payara 4.1] [INFO] [NCLS-CORE-00058] [javax.enterprise.system.core] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223172752] [levelValue: 800] Network listener https-listener on port 8443 disabled per domain.xml

    [2015-05-21T17:46:12.829+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223172829] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.ThreadPoolStatsProviderGlobal , will retry later

    [2015-05-21T17:46:12.936+0200] [Payara 4.1] [WARNING] [NCLS-MNTG-00201] [javax.enterprise.monitoring] [tid: _ThreadID=1 _ThreadName=main] [timeMillis: 1432223172936] [levelValue: 900] Flashlight listener registration failed for listener class: com.sun.enterprise.v3.services.impl.monitor.stats.KeepAliveStatsProviderGlobal , will retry later

  2. Hi those messages are normal. Was there any other errors. If so please raise a bug on our github project.

    • I thought [levelValue: 900] Encountered exception during agent attach and Flashlight listener registration failed for listener class: were errors !

      Not really happy with systems that give quasi-error messages since – like in my case – it offers a high degree of uncertainty on a very new programme.

      Shouldn’t java -jar payara-micro.jar be started in background since it does not terminate?

      The clustering saw both Raspberry Pi’s . I am looking forward to further activity on that.

      BD

      • Yeah it’s a first release the warnings will be removed in the future.

        Also if you do want to run it for real it is best to run it in the background.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.