dcsimg
Servlet cannot render image on Tomcat 4.0 Linux.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Steve_McRoberts
Posted On:   Thursday, October 4, 2001 03:09 PM

I have a servlet which modifies an image from disk. The code works fine running under Win2K but when moved to Linux gives the following errors: at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503) at MyCode$MyImage. (ThumbFilter.java:241) the offending line (241) is: inImage = Toolkit.getDefaultToolkit().getImage(imagePath); Unfortunately, I don't know enough about Linux diplay system. Do I need to set some DISPLAY parameters to use the image toolkit?    More>>


I have a servlet which modifies an image from disk. The code works fine running under Win2K but when moved to Linux gives the following errors:


at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)

at MyCode$MyImage. (ThumbFilter.java:241)


the offending line (241) is:


inImage = Toolkit.getDefaultToolkit().getImage(imagePath);



Unfortunately, I don't know enough about Linux diplay system. Do I need to set some DISPLAY parameters to use the image toolkit?

   <<Less

Re: Servlet cannot render image on Tomcat 4.0 Linux.

Posted By:   Nathan_Meyers  
Posted On:   Thursday, October 4, 2001 05:48 PM

See this FAQ entry for an answer.
About | Sitemap | Contact