• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Websphere AppServer 4 can't access X11 server on UNIX AIX

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dears,
I developed web application on websphere 4 that generate dynamically gif
based on user request, I keep recieiving the following exception:
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as
the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:58)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:59)
My web application uses awt to generate gif, My host of the application
server is UNIX AIX.
AIX system admin assured that the X11 server is installed on the machine,
but I think there is some configuration that must be made on the application
server or the UNIX AIX.

Sorry, I don't have expereirnce on UNIX, but I know some knowledge about
Oracle 9iAS that I must set the environment varieble property <PROP<br /> name="DISPLAY" value="machine name or ip">
Is there something on Websphere AppServer that can do this?
Thankx for yr help.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please follow these steps and let us know whether it works or not :
1. Stop WebSphere Node properly, check no java process is running by ps -aef | grep java
2. Open a new shell, set DISPLAY=<ip_addr_of_local_machine>:0.0 then export DISPLAY, check by echo $DISPLAY whether it is set properly.
3. Start the admin server by startupServer.sh, check the tracefile when it is started properly.
4. Open adminconsole, on the same machine and leave it, this helps in initializing some x11 libraries on solaris8
Now check the problem functionality.
 
Arvind Shukla
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javaranch does not show 'greater than' and 'less than' so value of DISPLAY did not go as I wanted, please set your DISPLAY variable properly DISPLAY=ip_addr_of_your_machine:0.0 then export it.
 
Ashraf Fouad
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankx to all contributors, I tried lots in this option but unfortuantly it
didn't get me anywhere, same error.
So As there is deadline for the project I had to get a solution so I used a
library that replace the native calls to system native graphics APIs
http://www.eteks.com/pja/en
and configured the WAS 4.0.5 JVM to this library, and I posted my
contribution in the following URL:
http://www.eteks.com/pja/en/forum/viewSubject.jsp?subjectId=236
Again thankx very much to the great help I had and high response
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic