• Post Reply Bookmark Topic Watch Topic
  • New Topic

X11 connection rejected because of wrong authentication.  RSS feed

 
Rudy Rusli
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm having problem with my JSP page that resides on a linux server.
The JSP will create graph dynamically based on user selection.

Many times, I got this exception message:
"X11 connection rejected because of wrong authentication."

I have been searching around and found this:
http://www.cisl.ucar.edu/nets/intro/staff/siemsen/hints/x11auth.html

Is it the only reason (the disk being full) that might cause this problem?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Often, Java apps need to run with the headless option set to true in order to perform graphics operations on machines where XWindows is either not running or where the user under which the Java program is running is not permitted to access the X11 session.

The following Google search should get you going in the right direction:
http://www.google.com/search?hl=en&q=headless+java&btnG=Google+Search
 
Rudy Rusli
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, this is really helpful.

I set this: -Djava.awt.headless=true
in my catalina.sh.

Hopefully my JSP should be okay now.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!