This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Applets and the fly likes SecurityException while printing an image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "SecurityException while printing an image" Watch "SecurityException while printing an image" New topic

SecurityException while printing an image

k ganvir

Joined: Jan 10, 2007
Posts: 1

i am trying to print an image using which works fine on http and https protocols on some environmets. but it fails on one of our environments where we are using https.
This image is placed in WEB-INF folder(for security purpose) and is rendered by a servlet which authenticates the user and then renders the image.
what are the possible reasons of exception?
how do rectify the problem?
please help as soon as possible.


k ganvir
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 41591
Welcome to JavaRanch.

For an applet to be allowed to print, it needs to be either signed, or the local security policy altered. Which approach are you taking?

Ping & DNS - my free Android networking tools app
Consider Paul's rocket mass heater.
subject: SecurityException while printing an image