Sunny Chan blogs Can you see the Logic in my Madness?

Java SE Embedded and Synology Diskstation

by Sunny Chan


Posted on Tuesday December 13, 2011 at 10:52pm in Anything


I have got a Synology DS209 at home, which is an ARM based NAS. Oracle has released Java SE Embedded 7 and it has got ARMv5 support, so naturally I would want to see whether my NAS is up to it:



disk> uname -a
Linux disk 2.6.32.12 #1955 Sat Nov 26 14:50:54 CST 2011 armv5tel GNU/Linux synology_88f6281_209
disk> java -version
java version "1.7.0_02"
Java(TM) SE Runtime Environment for Embedded (build 1.7.0_02-b13, headless)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode)


So "Hello World" is working. Let's try something more fun - like running jetty:


disk> java -jar start.jar
2011-12-14 03:33:21.810:INFO:oejs.Server:jetty-8.0.4.v20111024
2011-12-14 03:33:22.039:INFO:oejdp.ScanningAppProvider:Deployment monitor /volume1/homes/schan/jetty-distribution-8.0.4.v20111024/webapps at interval 1
2011-12-14 03:33:22.075:INFO:oejdp.ScanningAppProvider:Deployment monitor /volume1/homes/schan/jetty-distribution-8.0.4.v20111024/contexts at interval 1
2011-12-14 03:33:22.096:INFO:oejd.DeploymentManager:Deployable added: /volume1/homes/schan/jetty-distribution-8.0.4.v20111024/contexts/javadoc.xml
2011-12-14 03:33:22.413:INFO:oejd.DeploymentManager:Deployable added: /volume1/homes/schan/jetty-distribution-8.0.4.v20111024/contexts/test.xml
2011-12-14 03:33:22.845:INFO:oejw.WebInfConfiguration:Extract jar:file:/volume1/homes/schan/jetty-distribution-8.0.4.v20111024/webapps/test.war!/ to /tmp/jetty-0.0.0.0-8080-test.war-_-any-/webapp
2011-12-14 03:33:30.509:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8080-test.war-_-any-/webapp/},/volume1/homes/schan/jetty-distribution-8.0.4.v20111024/webapps/test.war
2011-12-14 03:33:30.510:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8080-test.war-_-any-/webapp/},/volume1/homes/schan/jetty-distribution-8.0.4.v20111024/webapps/test.war
2011-12-14 03:33:30.510:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8080-test.war-_-any-/webapp/},/volume1/homes/schan/jetty-distribution-8.0.4.v20111024/webapps/test.war
2011-12-14 03:33:30.518:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8080-test.war-_-any-/webapp/},/volume1/homes/schan/jetty-distribution-8.0.4.v20111024/webapps/test.war
2011-12-14 03:33:30.518:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8080-test.war-_-any-/webapp/},/volume1/homes/schan/jetty-distribution-8.0.4.v20111024/webapps/test.war
2011-12-14 03:33:31.338:INFO:oejhs.SslContextFactory:No keystore or trust store configured.  ACCEPTING UNTRUSTED CERTIFICATES!!!!!
2011-12-14 03:33:32.929:INFO:oejs.TransparentProxy:TransparentProxy @ /javadoc-proxy to http://download.eclipse.org/jetty/stable-8/apidocs
2011-12-14 03:33:33.047:INFO:oejs.AbstractConnector:Started [email protected]:8080 STARTING

I am very impressed - They also have the server VM for ARMv7 too - maybe it's time to get a new Diskstation!





No one has commented yet.

Leave a Comment

HTML Syntax: Allowed