> The AWT classes need an x-server to work with images.

Worse yet, the server has to be unlocked: you can't connect to a locked
server.

                                                            -- Bill K.


> -----Original Message-----
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 11:52 PM
> To: '[EMAIL PROTECTED]'
> Subject: AW: servlet error..
> 
> 
> The AWT classes need an x-server to work with images.
> 
> Can it be that there isn't one running, when this error happens ?
> 
> > -----Urspr�ngliche Nachricht-----
> > Von: Krishna Kishore Thotakura [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 30. Mai 2001 01:05
> > An: [EMAIL PROTECTED]
> > Betreff: servlet error..
> > 
> > 
> > Hi,
> >  i am trying to write an image to the outputstream of a 
> > servlet. The image is
> > actually obtained from an invisible awt Canvas. 
> > I'm using Jimi package to encode the Image into JPEG format 
> > and writing this
> > out to the ServletOutputStream. Sometimes this works fine and 
> > i see a nice
> > image in the browser but at times, i get the following error:
> > ----in tomcat.log----
> > Xlib: connection to ":0.0" refused by server
> > Xlib: Invalid MIT-MAGIC-COOKIE-1 key
> > 
> > ----in browser ---
> > Error: 500
> > Location: /wms/servlet/WmsServlet
> > Internal Servlet Error:
> > 
> > java.lang.NoClassDefFoundError
> >     at java.lang.Class.forName0(Native Method)
> >     at java.lang.Class.forName(Class.java:120)
> >     at java.awt.Toolkit$2.run(Toolkit.java:498)
> >     at java.security.AccessController.doPrivileged(Native Method)
> >     at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
> >     at java.awt.Component.getToolkitImpl(Component.java:657)
> >     at java.awt.Component.getToolkit(Component.java:641)
> >     at java.awt.Component.createImage(Component.java:2265)
> >     at stt.View.ViewJava3D.initMem(ViewJava3D.java:190)
> >     at stt.View.ViewJava3D.(ViewJava3D.java:214)
> >     at stt.Display.DisplayManager.initView(DisplayManager.java:126)
> >     at stt.Display.DisplayManager.(DisplayManager.java:64)
> >     at sttx.Display.GeoDisplayManager.(GeoDisplayManager.java:79)
> >     at WmsServlet.init(WmsServlet.java:49)
> > 
> > Any comments,suggestions,explanations would be greatly appreciated.
> > 
> 

Reply via email to