RE: [Wlug] Newbie to mailing list- Issue with the generation ofgraphsinredhat6.2
Hi Marc, Thanks once again. I tried installing Xvfb but I'm getting the error message: Xlib: Connection "localhost:1" refused by the server Xlib: Client is not authorized to connect to the server xhost:Unable to open display "localhost:1". I'd appreciate your sugestions on this issue. Thanks, Peram
From: "Marc Hughes" <HughesM@tomsnyder.com> Reply-To: wlug@mail.wlug.org To: <wlug@mail.wlug.org> Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation ofgraphsinredhat6.2 Date: Wed, 30 Oct 2002 15:04:48 -0500
Yup
I believe it's on the RedHat CD's.
-Marc
-----Original Message----- From: Sudhaker P [mailto:perams27@hotmail.com] Sent: Wednesday, October 30, 2002 2:49 PM To: wlug@mail.wlug.org Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation ofgraphsinredhat6.2
Hi Marc, Is Xvfb a software that I can download and install?
-Sudhakar
From: "Marc Hughes" <HughesM@tomsnyder.com> Reply-To: wlug@mail.wlug.org To: <wlug@mail.wlug.org> Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation of graphsinredhat6.2 Date: Wed, 30 Oct 2002 13:40:55 -0500
So you're saying that you can use X on the machine, right? If so, I'd look other places for the problem.
Double check that your DISPLAY is set properly and access is enabled. This was the exact same error message I used to get when java couldn't connect to the xserver.
I find doing something like this:
nohup Xvfb :1 -screen 0 800x600x24 & sleep 5 export DISPLAY=localhost:1 xhost + SERVERCOMMAND <- (Whatever you need to do to start the server)
Is best since it uses a virtual x server instead of the real one. This works around your problem, but is probably the "correct" way to do it anyways.
-Marc
-----Original Message----- From: Sudhaker P [mailto:perams27@hotmail.com] Sent: Wednesday, October 30, 2002 1:23 PM To: wlug@mail.wlug.org Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation of graphsinredhat6.2
Hi Marc, The KDE for the server was not working for it so I fixed it, removing all the rpms and re-installing them, I even reinstalled "gd".So I was wondering if any other libraries related to X-server were broken too. My output for $ps auwx | grep X is as below root 14500 0.0 0.0 2220 980 tty1 S 09:44 0:00 /bin/sh /usr/X11R6/bin/startx root 14507 0.0 0.0 2344 668 tty1 S 09:44 0:00 xinit /etc/X11/xinit/xinitrc -- root 14508 0.7 0.3 18156 7956 ? S< 09:44 1:07 /etc/X11/X :0
I'd appreciate your suggestions and comments in this regard.
Thanks,
Peram
From: "Marc Hughes" <HughesM@tomsnyder.com> Reply-To: wlug@mail.wlug.org To: <wlug@mail.wlug.org> Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation of graphs inredhat6.2 Date: Wed, 30 Oct 2002 10:55:29 -0500
What do you mean when you say it seems broken? Are there other symptoms besides the java connection to it?
Can you sit down at the machine and use X? If this is a server, you probably don't want that ability (that's where Xvfb comes in). What Xserver are you running?
If you "ps aux |grep X" do you see an xserver running?
-Marc
-----Original Message----- From: Sudhaker P [mailto:perams27@hotmail.com] Sent: Wednesday, October 30, 2002 10:46 AM To: wlug@mail.wlug.org Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation of graphs inredhat6.2
Hi Marc, Thanks for the reply. I agree with you Marc, it is a servlet(I'm sorry about that) and its on the server. The display settings seems to be proper, but my X- server seems to be broken. I'd appreciate if you can guide me to any kind of information with the help of which I can fix the issue of broken X-windows.
Thanks,
Peram
From: "Marc Hughes" <HughesM@tomsnyder.com> Reply-To: wlug@mail.wlug.org To: <wlug@mail.wlug.org> Subject: RE: [Wlug] Newbie to mailing list- Issue with the generation of graphs inredhat 6.2 Date: Wed, 30 Oct 2002 09:16:11 -0500
I'm guessing this is a server (the errors you showed before made it look more like a servlet than an applet)... So are you running X? If so, when you start the server do you set your DISPLAY variable correctly? Does the server process have access to the Xserver?
If you're not running an Xserver, you need to. Weird, huh? Without a running X-Server the JRE can't do most graphical operations, even if those operations never render to the display. It's a long standing issue that a whole lot of people have complained about. What you can do is run Xvfb ... It's a non graphical X server. It just gives programs an Xserver to play with, and never displays the results of those programs.
-Marc
-----Original Message----- From: Sudhaker P [mailto:perams27@hotmail.com] Sent: Wednesday, October 30, 2002 9:08 AM To: wlug@mail.wlug.org Subject: Re: [Wlug] Newbie to mailing list- Issue with the generation of graphs inredhat 6.2
Hi, With reply to my previous mail I've figured out that Java "awt" is looking for some parameters in X-windows. I think the X is broken. I'd appreciate if any of you gurus can guide me with fixing of X-windows.
Thanks,
Peram
From: "Sudhaker P" <perams27@hotmail.com> Reply-To: wlug@mail.wlug.org To: wlug@mail.wlug.org Subject: Re: [Wlug] Newbie to mailing list- Issue with the generation of graphs in redhat 6.2 Date: Tue, 29 Oct 2002 16:07:13 -0600
Hi Karl, Thanks a lot for the response. I'm running it as an applet as in the below mentioned weblogic log java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEn vi ronment.java:58)
at java.awt.Window.<init>(Window.java:189) at java.awt.Frame.<init>(Frame.java:315) at java.awt.Frame.<init>(Frame.java:262) at com.rivenet.graphingaction.Graphit.runGraph2D(Unknown
Source)
at com.rivenet.reporting.InformalFundingComparisonGraph.makeGraph(Un kn ow n Source) at
jsp_servlet._plan._Model_controller._jspService(_Model_controller.j av a:356)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStub Im pl.java:123)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletC on textImpl.java:761)
at
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletC on textImpl.java:708)
at
weblogic.servlet.internal.ServletContextManager.invokeServlet(Servl et ContextManager.java:252)
at
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.j av a:346)
at
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:246)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:135)
So I was wondering if "awt" since it needs X to generate graphs could be the reason and X might be broken.
In your opinion if x is broken what could the rpms that I need to install. I'd appreciate your comments and suggestions.
Thanks,
Peram
From: Karl Hiramoto <karl@zoop.org> Reply-To: wlug@mail.wlug.org To: wlug@mail.wlug.org Subject: Re: [Wlug] Newbie to mailing list- Issue with the generation of graphs in redhat 6.2 Date: Tue, 29 Oct 2002 14:43:56 -0500 (EST)
are you running it from the comand line? or an applet?
Get any errors on your command line?
Did you try on the same machine booting 2.4.16 and 2.4.7 to verify that it is the kernel?
On Tue, 29 Oct 2002, Sudhaker P wrote:
> Hi , > I've a program that generates graphs with Java 1.3.1_01. The > same program is > able to generate graphs on a machine with RH 6.2 kernel > 2.4.16 but it fails > to generate graphs on a machine with RH 6.2 kernel 2.4.7-10 > on which it used > to generate before. I've installed KDE and gd thinking that > something may > broken in the OS on the jpegs generation part. But that > doesn't seem to help. I'd appreciate if any of you gurus can > guide me in this issue with your comments and suggestions. > > Thanks, > > Peram > > > > > > > _____________________________________________________________ > __ > __ > Choose an Internet access plan right for you -- try MSN! > http://resourcecenter.msn.com/access/plans/default.asp > > > _______________________________________________ > Wlug mailing list > Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug >
--
€º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º€ø Karl Hiramoto <karl@hiramoto.org> Work: 978-425-2090 ext 25 Cell: 508-517-4819 Personal web page: http://karl.hiramoto.org/ Freedom: http://www.technojihad.com/ Zoop Productions: http://www.zoop.org/ KTEQ Rapid City: http://www.kteq.org/ AOL IM ID = KarlH420 Yahoo_IM = karl_hiramoto €º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º€ø,žž,ø€º°`°º€ø
Confirmed bachelor: A man who goes through life without a hitch.
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Unlimited Internet access -- and 2 months free! Try MSN. http://resourcecenter.msn.com/access/plans/2monthsfree.asp
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Internet access plans that fit your lifestyle -- join MSN. http://resourcecenter.msn.com/access/plans/default.asp
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Broadband? Dial-up? Get reliable MSN Internet Access. http://resourcecenter.msn.com/access/plans/default.asp
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_______________________________________________ Wlug mailing list Wlug@mail.wlug.org http://mail.wlug.org/mailman/listinfo/wlug
_________________________________________________________________ Surf the Web without missing calls! Get MSN Broadband. http://resourcecenter.msn.com/access/plans/freeactivation.asp
participants (1)
-
Sudhaker P