Seems like Java6 is missing and SystemTray class was added in Java6.
Yes, that is probably the issue. I think we need to make the requirement for Java 6 explicit on dhis2.com, though, as I had completely forgotten about it.
Also encountered problems trying to run it on WHO’s internal Windows XP Synergy platform, unfortunately - things are probably too locked down:
2009-07-01 16:56:20.557:
jetty-6.1.x
2009-07-01 16:56:26.698::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@c01e99{/,/D:/Ashley/dhi
s2-lite/webapps/dhis}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:171)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1236)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.hisp.dhis.WebAppServer.start(WebAppServer.java:90)
at org.hisp.dhis.TrayApp.(TrayApp.java:128)
at org.hisp.dhis.TrayApp.main(TrayApp.java:242)
2009-07-01 16:56:26.995::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@cf829d{/birt,/D:/Ashley
/dhis2-lite/webapps/birt}
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at java.util.jar.JarFile.(Unknown Source)
at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:171)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1236)
at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:466)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:152)
at org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:156)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.hisp.dhis.WebAppServer.start(WebAppServer.java:90)
at org.hisp.dhis.TrayApp.(TrayApp.java:128)
at org.hisp.dhis.TrayApp.main(TrayApp.java:242)
2009-07-01 16:56:27.588:
Started SelectChannelConnector@0.0.0.0:8080
- INFO 16:56:27,588 Lifecycle: server started (TrayApp.java [main])
knut
···
On Wed, Jul 1, 2009 at 5:10 PM, Saptarshi Purkayastha sunbiz@gmail.com wrote:
Other than that, dhis2-lite package already deals with platform not support system tray and it will exit gracefully.
Please install the new Java6 for OSX and it should work fine.
Regards,
Saptarshi PURKAYASTHA
Director R & D, HISP India
Health Information Systems Programme
My Tech Blog: http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE
2009/7/1 Knut Staring knutst@gmail.com
Problems with the systray. Could we skip the systray on Macs?
7/1/09 4:24:57 PM [0x0-0x136136].com.apple.JarLauncher[6490] * INFO
16:24:57,439 Environment variable DHIS2_HOME: null (TrayApp.java
[main])
7/1/09 4:24:57 PM [0x0-0x136136].com.apple.JarLauncher[6490] * INFO
16:24:57,441 System property user.dir:
/Users/ashleysheffel/Downloads/dhis2-lite (TrayApp.java [main])
7/1/09 4:24:57 PM [0x0-0x136136].com.apple.JarLauncher[6490] Exception
in thread “main” java.lang.NoClassDefFoundError: java/awt/SystemTray
7/1/09 4:24:57 PM [0x0-0x136136].com.apple.JarLauncher[6490] at
org.hisp.dhis.TrayApp.main(TrayApp.java:235)
–
Cheers,
Knut Staring
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp
–
Cheers,
Knut Staring