PDA

View Full Version : [ubuntu] Web application in Tomcat6 with GUI



kageki
September 23rd, 2009, 10:16 AM
Not sure if this is the right section to post this but since I`m running my web application on Ubuntu Desktop, I`ll post it here.

I have a Java web application packaged into a .war file running in Tomcat6 on Windows XP. The special thing about this web application is that it displays a JFrame. On Windows XP, the JFrame displays and the web application also runs fine.

I recently tried running the same web application on Ubuntu Desktop but got a HeadlessException. I did some searching on the internet and found out that it has to do with the headless property. So I set Djava.awt.headless=false. I then got another exception java.langNoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment

Can really seem to understand why I am not allowed to display a JFrame. Can someone kindly shed some light on this matter please.

betolima
September 29th, 2009, 08:27 AM
Hi kageki,

Could you tell how are you trying to display this JFrame ? Maybe posting the code ?

[]s
Beto