DHIS2-lite on a Mac

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

Seems like Java6 is missing and SystemTray class was added in Java6. 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

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::INFO: 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::INFO: 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

Seems like Java6 is missing and SystemTray class was added in Java6. 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.

Yes this looks like maybe java 1.5 is running here. If there is a
real need we could certainly have a version without the systray. For
the moment it is just really eye candy but useful eye candy all the
same. The idea is till to extend its control/instrumentation
functionality.

Please let us know if indeed it is OK on Java6 for OSX. Does OSX run gnome?

Cheers
Bob

···

2009/7/1 Saptarshi Purkayastha <sunbiz@gmail.com>:

---
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

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:

This looks pretty weird. Can it be because the jvm is trying to
access a native method? In which case it might be a policy setting.
Saptarshi would probably know better. But I didn't think that zipfile
was implemented natively. Does anybody know? What java version is
this?

Sadly I don't have a copy of Windows XP Synergy platform to test with.

Cheers
Bob

···

2009/7/1 Knut Staring <knutst@gmail.com>:

On Wed, Jul 1, 2009 at 5:10 PM, Saptarshi Purkayastha <sunbiz@gmail.com> > wrote:

2009-07-01 16:56:20.557::INFO: 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.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(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.<init>(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.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(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.<init>(TrayApp.java:128)
at org.hisp.dhis.TrayApp.main(TrayApp.java:242)
2009-07-01 16:56:27.588::INFO: Started SelectChannelConnector@0.0.0.0:8080
* INFO 16:56:27,588 Lifecycle: server started (TrayApp.java [main])
knut

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

_______________________________________________
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

After many trials and tribulations linked to Java on OSX, we did
finally get Java6 to run, and I'm happy to report that DHISlite works
great on it (though it still takes too long to log in :wink:

Knut

···

On 7/1/09, Bob Jolliffe <bobjolliffe@gmail.com> wrote:

2009/7/1 Saptarshi Purkayastha <sunbiz@gmail.com>:

Seems like Java6 is missing and SystemTray class was added in Java6. 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.

Yes this looks like maybe java 1.5 is running here. If there is a
real need we could certainly have a version without the systray. For
the moment it is just really eye candy but useful eye candy all the
same. The idea is till to extend its control/instrumentation
functionality.

Please let us know if indeed it is OK on Java6 for OSX. Does OSX run gnome?