X11 DISPLAY troubles

Hi,
We've been developing a Web Application in Windows, using the Sun Java System Application Server Platform 9 installed on the same PC. Just now, we want to move the web application into a Red Hat Linux Server, also with the Sun Application Server, and run the application with a host PC wih Windows. The application starts OK, but launches an exception (cited below) when it has to open a 'File Dialog Box'. The exception is:
Servlet.service() for servlet Faces Servlet threw exception
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
Note that we doesn't have this problem running the application in local using Windows.
Actually, the Red Hat Linux has no graphical environment.
How to solve this problem? It's compulsory to have a graphical environment in the server?
Thanks a lot!!
Xavi.

Your app apparently has a GUI, but you're running the program without a GUI. Do you see the conflict there?
Linux (usually) uses X11 as its GUI toolkit. The error message you're seeing is saying that it's trying to use X11, but the way you're running the program, X11 hasn't been properly set up.
A good way to deal with this is:
1) install Cygwin, including the X11 utilities.
2) start the X11 server on your PC. The command for this is "startxwin.bat", in Cygwin, I believe.
3) connect to your linux box. Either:
3.1) use the xhost utility to configure your PC's X server to accept
connections from your linux box, and then set the DISPLAY variable
on your linux box
or
3.2) use X11 tunnelling (e.g., if you're using putty) when connecting to
your linux box
4) then you can run the program

Similar Messages

  • Mac mini configure as X11 display?

    Has anyone tried to configure OS X to turn a Mac Mini into an X11 display terminal?
    I work in a Liunx environment and we are looking at a small 'PC' to drive a 30" display. Our X11 application would run on another box in a equipment room and export the display to the Mac Mini across a local network. I'm pretty sure I can do this in Ubuntu on the Mac but this seems like a waste and I would also lose the Macs video drivers.
    My guess is that I would need to disable the OSX desktop and the run X via some kind of startx script followed by something like 'xhost +'.
    Any help in this adventure would be much appreciated!

    OSX has x11 installed by default now days. When you start it, it runs an xterm, but you can run any x11 apps you want. I'd test it to make sure performance is up to snuff for you, but it should work fine.

  • No X11 DISPLAY variable was set

    Hi,
    UCM 11g is installed in the unix server. I connected to the server thru putty and run the batch loader (/.BatchLoader.sh), im getting the below error.
    No X11 DISPLAY variable was set, but this program performed an operation which r
    equires it.
    at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:1
    59)
    at java.awt.Window.<init>(Window.java:432)
    at java.awt.Frame.<init>(Frame.java:403)
    at java.awt.Frame.<init>(Frame.java:368)
    at javax.swing.JFrame.<init>(JFrame.java:158)
    at intradoc.apps.shared.SplashFrame.<init>(SplashFrame.java:48)
    at intradoc.apps.shared.AppLauncher.reportOperationError(AppLauncher.jav
    a:386)
    at intradoc.apps.shared.AppLauncher.reportError(AppLauncher.java:426)
    at intradoc.apps.shared.AppLauncher.reportFatal(AppLauncher.java:442)
    at BatchLoader.main(BatchLoader.java:106)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at intradoc.loader.IdcClassLoader.invokeMain(IdcClassLoader.java:338)
    at intradoc.loader.IdcClassLoader.startMain(IdcClassLoader.java:171)
    ... 1 more
    How can we rectify this.

    http://support.oracle.com
    https://support.oracle.com/CSP/ui/flash.html#tab=KBHome(page=KBHome&id=()),(page=KBNavigator&id=(bmDocTitle=How%20to%20Launch%20Content%20Server%20Command%20Line%20Applets%20Using%20X11%20Forwarding%20Over%20SSH&viewingMode=1143&bmDocID=445469.1&bmDocType=HOWTO&from=BOOKMARK&bmDocDsrc=KB))

  • No X11 DISPLAY variable

    Hi ,
    I am trying to start the Admin ACC from dynadmin. But when i click Start ACC in server VM . I am getting following error.
    The ATG Control Center could not be started. Dynamo received the following error message from the JVM: java.awt.HeadlessException: No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    Please help me to fix the issue.
    Thanks ;
    Mark

    ACC is Java Swing based client UI so it requires a display. Try setting this on the shell where you are starting your server if you are on the same host:
    export DISPLAY=:0.0
    You might want to restart your server after setting this if you want to start ACC in server VM.
    In case you are using PuTTY to tunnel through the UNIX machine then check if "Enable X11 Forwarding" is selected in PuTTY settings. You can find that option under Connection -> SSH -> Tunnels

  • JMF in Unix-Shell:  No X11 DISPLAY variable was set

    Hello guys
    I've got a client-server application. The server runs on linux and is started in the unix-shell.
    When the server just sends out data which was received before, everything works fine. But when I'm using a processor (or a player) it says:
    No X11 DISPLAY variable was set, but this program performed an operation which requires it.
    How can I avoid this problem?
    Thanks in advance,
    Chris

    VladimrN wrote:
    ..No X11 DISPLAY variable was set, but this program performed an operation which requires it.Sounds like the problem of running in a headless environment. A google on "java headless x11" seems to turn up a number of hits.

  • Using Mac as X11 display server for app running on Linux

    Hello all,
    I am in the midst of learning Arabic, and am trying to get to the point of becoming comfortable with computing on Arabic screens with Arabic menus, etc. The Mac doesn't support this for Arabic, although it does for many other languages. (Neither does the Windows box, apparently, on a user by user basis. It looks like I would have to install Arabic Windows to get Arabic GUI. Somebody please correct me if I'm wrong.)
    On my Linux server, however, I have most of my applications set up for multiple languages, and this works fine. I have a user set up who is my Arabic-speaking alterego with his default language set to Arabic and most applications respect it. However, the display for my Linux server is in a cramped corner, while the iMac, of course, sits proudly on my desk. It occurs to me that I should be able to use X11 for Mac so I can learn to think in Arabic in regal splendor.
    I have X11 installed on here - I use it for OpenOffice locally - but am having trouble getting an application on the Linux box to see my display. Here is what I am doing:
    - I do xhost + on the Mac side (merepoint) to permit remote connections.
    - From the X11 terminal program on the Mac, I ssh over to my Linux server (openocean). I have tried ssh with no command line switches and with -X and with -Y. None of them appear to set the DISPLAY environment variable on the Linux box.
    - I run a Gnome or KDE application in the Linux session and it immediately doesn't find a display. It indicates an empty display string. (What a surprise.)
    - I run the command over there specifying -display merepoint:0 and it pauses and then doesn't find the display. This feels like the Mac isn't listening for remote connections or listens on some other port or display ID. I can ping back to my iMac just fine so it isn't confused about IP address or naming.
    What do I need to do (at either end) to allow the connection to go through?
    There appear to be no hardware issues. I'm not sure how the security, etc. works with X beyond opening or closing stuff from the display server with xhost. ssh and .Xauthority also comes into the mix somewhere, I think, but I'm confused as to the role they play and how they interact. I don't know if the X stuff on the Mac needs some special tweak to listen for remote connections. I didn't see any switches about that in the X11 preferences.
    Eventually, I'd like to use Command-Opt-A to switch between my Mac screen and full-screen kdm login to the Linux box so I don't need to run over there. Any hints for getting that arrangement working - beyond the obvious user preference for full-screen, which works fine - would be valuable as well.
    RalphM
    iMac G4 20"   Mac OS X (10.4.4)  

    Thank you! Setting up "X11Forwarding yes" on the server side and restarting sshd did the trick. Now from my ssh session, I can do "LANG=ar_LB gedit" on the command line and get gedit with Arabic menus.
    I found that I could even get my whole desktop up, albeit with some amusing things happening with sound across the room, using startkde. Is there a better way to get this effect?
    Now I can just log in as my Arabic alterego and it should all work pretty well.
    RalphM

  • DVD display trouble

    On my new MacBoork Pro, when reading video MPEG2 DVD in 16/9 format the display is not stable, about each second some display areas are shifted 10 or 20 pixels top or down.
    On Imac G4 with same OS X 10.4.5 version the same video DVD is displaying with any trouble.
    This default occurs for video DVD format close to the sreen full size, 16/9 scope format or 4/3 format are fully ok.
    Is it a reported default on MacBook Pro ?

    You can build the DVD on your hard drive (just the VIDEO_TS folder or as a DVD image) and try there before burning.
    If you still don't see the menu running the DVD from the hard drive itself the problem is not related at burning at all and I guess there something you are missing during the authoring.

  • X11 Display mode

    Has anyone been able to use X11 with 256 display setting? All I get is a white xterm window with nothing resolving.

    Same here. All X apps come up white-on-white / blank. The xterm is operational, as I can type commands in the blind and then control-mouse menus come up (also blank).
    ==Leonard

  • X11 Display Setting

    Has anyone been able to use X11 with 256 display setting? All I get is a white xterm window with nothing resolving.

    Post to the Unix forum under OS X Technologies where the gurus hang out.

  • How to start a second X11 display from within X ?

    For a game i am playing (freespace2 open) i would like to run it on a second X11 virtual display.
    Following Fs2_open_on_Linux#fs2_open_freezes_X i am able to start second display with xinit -- :1 , but this only works from console.
    Also the method used there (copying the mit-magic-cookie) doesn't appear to be very user-friendly.
    So i have 2 questions :
    is there a way to give a user permanent permission to start a second display ?
    can starting a second display be done from within X ?

    Lone_Wolf wrote:
    I've checked and the change to xauth appears to be permanent as it was still present after a reboot and a cold start.
    I use KDE as wm/de , but start it from console with startx.
    I have no options for starting another session, possibly because i don't use kdm or another login manager.
    startx works from within kde , xinit works from console.
    Unfortunately fs2_open crashes with a segfault after switching back and forth between display 0 and display 1 a few times.
    When running fs_open on display 0 it never crashes.
    Sofar i've used startx -- :1 , xinit -- :1 and xinit /usr/bin/fs2-open -- :1 , and they all give the same problem.
    Thanks for the tips, i'll check them out.
    If you using kde, you could make life alot easier if you need multiple xsession by running kdm...
    I mean my system boots 21 second including starting KDM starting from xinittab... if I add it as a deamon in rc.conf it takes 36 seconds

  • X11 DISPLAY from remote Unix host does not launch.

    X11 is coming up with some very strange behaviour.
    Launching X applications to display back on my Mac was working till just the last week or so. Now, for the most part, after setting up xhost on the Mac and settting the DISPLAY environment variable on the remote host.
    Launching xterm (for example). Results in can't open display"ip addr:0" and "error couldn't find per display information".
    But this does not happen in all cases. I have found one server where my display will route back.
    I created a new account on my Mac and tried to see if it would work in a fresh account. X display works now in my fresh account for all the nodes that I can't access in my "regular" account.
    I have removed my .Xauthority file and my .Xresoures file to see if anything in there was corrupting my ability to route the DISPLAY. This has had no affect.
    What other Mac OS X files would affect the characteristics of how X11 is working?
    Warren

    Hi Zoarre,
    > why doesn't -X work in tiger? isn't it more secure?
       Yes, the -Y option is very much less secure than the -X option. Unfortunately as you've noticed, this strict interpretation of "trusted" can be shall we say, inconvenient. You can read more about the X11 Security Extension Specification by downloading the PDF document from security.pdf.
       The use of the -Y option will cause all X11 apps that you forward to be treated as "trusted". In the X11 Security Extension Specification, this means that the application can be trusted to be harmless and thus that security may be lax. For instance, xclock only conveys the local time and this information can be compromised without serious risk. However, if you designate a forwarded word processor app as "trusted", you are saying that your keystrokes need not be closely guarded. If the app is specified as "untrusted" it is isolated, preventing the sharing of those keystrokes. Of course it's difficult for most apps to function in such isolation.
       Older versions of ssh were found to cause the client xauth vulnerability described in SSH client xauth Vulnerability. When they communicate the (usually MIT-MAGIC-COOKIE-1) cookie for your local XServer to the remote machine, it is placed in the remote machine's authorization cache for use by X11 apps to negotiate connections with your local XServer. Thus, if the remote machine's authorization cache is compromised, so is your XServer.
       To minimize the risk, when ssh connects with the -X option it sends an untrusted cookie to the remote machine so that X11 applications that obtain authorization with this cookie are marked as untrusted and restricted in what they can do. While this is safer, the X11 Security Extension Specification is in its infancy and many apps crash as a result of the limitations. Thus, as you've discovered, the -Y option is often necessary. However, it is less secure and should only be used when necessary!
    Gary
    ~~~~
       I have seen the Great Pretender and he is not what he seems.

  • Display trouble in IE

    Hello All,
    I have a problem with how my website displays in IE that doesn't occur in any other browser that I've tested it in, either on Mac (my platform) or Windows. I have a header in each of my pages build with a single table with some imbedded images and some background images. I can't tell if he problem is with the table/cell height or the image height, but all of the background images extend below their allotted height by 1-2 px as in the following image:
    You can see a gap between the header and the nav bar, which is part of the template that the page is built from. You can also see in the search section that the image extends 2 px below the dashed portion, where it should end. Here is what I am aiming for and what the site looks like in all other browsers:
    Notice how the transition from the header to the nav bar is seamless. Here is the code for the header:
    <table height="82" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td rowspan="2" align="center" valign="top" background="../Images/Doc_Casagrande_left.gif"><p> </p></td>
        <td width="598" rowspan="2"><img src="../Images/Doc_Casagrande.gif" alt="eClassroom Header" name="Doc_Casagrande" width="598" height="85" border="0" usemap="#Map_Header">
          <map name="Map_Header" id="Map_Header">
            <area shape="rect" coords="102,62,171,85" href="../Index.html" alt="Index" title="eClassroom Home Page">
            <area shape="rect" coords="171,62,228,85" href="../Info.html" alt="Info" title="Additional Information about WHS">
            <area shape="rect" coords="228,62,303,85" href="../Chem%201.html" alt="Chemistry 1" title="Chemistry 1 Main Page">
            <area shape="rect" coords="303,62,370,85" href="../Chem%202.html" alt="Chemistry 2 AP" title="Chemistry 2 AP Main Page">
            <area shape="rect" coords="370,62,440,85" href="../About%20Me.html" alt="About Me" title="More Information about Dr. Casagrande">
            <area shape="rect" coords="439,62,528,85" href="../Contact%20Me.html" alt="Contact Me" title="How to Contact Dr. Casagrande">
        </map></td>
        <td width="200" height="62" valign="middle" background="../Images/bg_search.gif"><!-- Atomz Search HTML for Dr. Casagrande's eClassroom -->
          <form method="get" action="http://search.atomz.com/search/">
            <input size=15 name="sp-q">
            <input name="submit" type=submit value="Search">
            <br>
             <a href="../Advanced%20Search.html" title="Perform Detailed Site Search" class="searchlink">Advanced Search</a>
            <input type=hidden name="sp-a" value="sp1002ba0f">
            <input type=hidden name="sp-p" value="all">
            <input type=hidden name="sp-f" value="ISO-8859-1">
          </form></td>
        <td height="62" align="center" valign="top" background="../Images/bg_search.gif"> </td>
      </tr>
      <tr>
        <td width="200"> </td>
        <td align="center" valign="top" > </td>
      </tr>
    </table>
    If you'd like to observe the behavior directly, the url is http://www.doccasagrande.net/Index.html
    Thanks for your help,
    Lou

    You could zero out default browser settings on everything with the CSS universal selector (*) and then go back and add your own top and bottom margins to the various selectors.
    CSS:
    * {margin:0; padding:0; line-height: 100%; font-size: 100%}
    Additionally, you should endeavor to work with valid code. Some browsers are much less forgiving of code errors than others.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.doccasagrande.net%2FIndex.htm l
    http://jigsaw.w3.org/css-validator/validator?profile=css21&warning=0&uri=http%3A%2F%2Fwww. doccasagrande.net%2FIndex.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • External Display Troubles

    This is a somewhat different problem from the previously discussed thread regarding the upgrade to 10.5.2.
    I've been using my MPB 15" with a Dell 2007WFP 20" monitor for about two months now, via the DVI cable. I've been using it on extended desktop mode, with spaces set to a 2x2 configuration. This has worked well for me for, as I said, 2 months. Until yesterday.
    I turned on the MBP, and instead of getting the expected login screen on the MBP display with the Leopard background displayed (minus the login window) on the external monitor, I get the expected on the MBP display, but a jumbled image on the Dell.
    This is odd, so I restart only to find the same result. Now, fearing for my two month old Dell monitor, I connected it via VGA (using the adapter), and receive nothing but a blank screen. I also tested this on an Acer LCD monitor connected via VGA, with the same result. So, I know its not my screen, as it works fine with another computer.
    I've called Apple Support, who weren't very useful. They encouraged me to insert the install disk and run a hardware test, which I did. With the monitor disconnected, I received no error codes. With the monitor connected, I received error code:
    4sns/40000000:tgod
    So, I have no idea what that means.
    Any help? Also, any idea if a reinstall of Leopard would work?
    Thanks for any help.

    I think I'm having the same problem as you. My external display which is hooked up through VGA via the dongle my MacBook Pro came with. Ever since that **** graphics card update it seems my HP w2207h will not work in OS X. I have windows installed on my machine and it works just fine in windows. That is probably the thing that ****** me off the most about this. In OS X the external monitor recieves NO signal from my MBP but I have 2 displays in the preferences and can rearrange them as if they both worked. *** APPLE! This is pretty ridiculous problem to have and a patch needs to be put out pronto. If not luckly I have a Time Machine backup of before this **** graphic card update. After a couple more days I'm restoring it and not installing the graphics update.
    Message was edited by: Nishimori

  • Display trouble

    please help me,
    this is stupid but some how i cannot manage to connect the tv (LG LCD) as a display
    computer recognises it but TV shows "no signal"

    Have you made sure to change to the correct input on the television?

  • 2010 27inch iMac display trouble

    My 27inch iMac isn't two years old yet, I paid apple a fortune for it, so you can imagine my annoyance, when, three months a ago, the left side of the screen appeared to darken slightly. I phoned customer service and they basically said its out of its one year warranty and there's not much they can do...grrr....
    Now, to make things worse, the entire display just randomly blacks out. At first, this was for a few seconds, now it's getting longer and sometimes won't fire up at all.
    I have been reluctant to walk in to an apple store with it because the nearest one is an hour away and it's a fair size of a machine.
    Will the direct approach do any good? I have a supposedly state of the art machine that I can't use!!!

    The display failed two months, but I had already purchased AppleCare when I bought the machine, since Amazon offered it with a significant discount. That way, I wouldn't have to remember to get it at year's end. So, most likely the one-year warranty covered that and AppleCare covered the HD going south three months ago.

Maybe you are looking for

  • Gallery to webpage (not mobileme)

    I could have sworn that I asked a question similar to this and saved the answer but it was prior to Apple changing the style of these support communities and I can't find it now (I went thru all my stuff and history).  Maybe it wasn't my quesstion bu

  • IChat Just Quits After Open!!!!

    IChat just quits right when I sign into my AIM account (its set to auto login) everything was working fine earlier but after I installed the new security update iChat has been messed up - ARGH!

  • What exactly is the "smooth cycle algorithm" preference?

    Under global preferences -> Cycle tab is the "Smooth Cycle Algorithm" checkbox. The user's manual explanation of this setting does not make sense to me - might someone help me understand what it does? I quote the manual: "Smooth Cycle Algorithm: This

  • [Project Server 2010] Maximum Number of Job processor Threads in the queue settings

    Hello, I have a farm with SharePoint 2010 and Project Server 2010 installed. The farm contains: 2 web front end servers 3 application servers Each servers has 4 processors The SQL databases are installed on our database servers. The Microsoft Project

  • Credentials popup after password is about to expire warning

    Hi, We recently upgraded to Exchange 2013 CU3, and are experiencing a strange problem. When user passwords are about to expire, the user get a message "password will expire in x days, do you want to change it now?" When they choose not to change it r