tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tuukk4 |[:)<-<| p4s4n3n" <illuu...@lycos.com>
Subject Re: AW: servlet error..
Date Thu, 31 May 2001 07:21:02 GMT
hei
Java AWT really needs X (Stupid) to run but using Pure Java AWT (can be found at http://www.eteks.com/pja/en/)
you can make it go away:)
I have used this for pruduct succesfully.. before it i was sooo frustrated

Tuukka

ps. eteks server is slow:P

---
--Me olemme keskella jotain. jossa olemme totaalisen ulkopuolisia--


On Wed, 30 May 2001 08:51:45  
 Ralph Einfeldt wrote:
>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:kishore@itsc.uah.edu]
>> Gesendet: Mittwoch, 30. Mai 2001 01:05
>> An: tomcat-user@jakarta.apache.org
>> 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.
>> 
>


Get 250 color business cards for FREE!
http://businesscards.lycos.com/vp/fastpath/

Mime
View raw message