From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Miguel_Gonz=E1lez_Casta=F1os?= Subject: connection problem to the X server Date: Thu, 22 Apr 2004 09:37:12 +0200 Sender: linux-admin-owner@vger.kernel.org Message-ID: <40877628.3090700@tid.es> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: List-Id: Content-Type: text/plain; format="flowed"; charset="us-ascii" To: linux-admin@vger.kernel.org Dear all, I have a web application developed using JSPs, that needs to connect to a X server to show a statistics graphic. The logs when I issue an "xhost + localhost" of Tomcat gives this : Xlib: connection to "localhost:0.0" refused by server Xlib: No protocol specified xhost: unable to open display "localhost:0.0" When I issue a xhost to a different box, it doesnt fail. I have been googling a bit, I got the impression that using xhost is not safe, and it is better to use xauth. Anyway I still dont know how to fix this. Regards and sorry for my english Miguel