Hi,

We try to print out the report from sample of jasper webapp.
Deployment to the tomcat already success and running well.

But, when we try http://localhost:8080/jasper-webapp/printer.html
and 
1. click the Print the report button it say :
-----------------
java.security.AccessControlException: access denied 
(java.lang.RuntimePermission accessClassInPackage.sun.awt.windows)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
at sun.applet.AppletSecurity.checkPackageAccess(Unknown Source)
at java.lang.Class.checkMemberAccess(Unknown Source)
at java.lang.Class.getMethod(Unknown Source)
at 
net.sf.jasperreports.engine.print.JRPrinterAWT
.initPrinterJobFields(JRPrinterAWT.java:273)
at 
net.sf.jasperreports.engine.print.JRPrinterAWT
.printPages(JRPrinterAWT.java:140)
at 
net.sf.jasperreports.engine.print.JRPrinterAWT
.printPages(JRPrinterAWT.java:88)
at 
net.sf.jasperreports.engine.JasperPrintManager
.printPages(JasperPrintManager.java:348)
at 
net.sf.jasperreports.engine.JasperPrinterManager
.printPages(JasperPrintManager.java:239)
at PrinterApplet$3.run(PrinterApplet.java:185)
at java.lang.Thread.run(Unknown Source)
-----------------
after we surf, we found the solution to put the 
permission java.lang.RuntimePermission "accessClassInPackage.sun.awt.windows";

grant codeBase "http://localhost:8080/jasper-webapp/applets/*"; {
  permission java.lang.RuntimePermission "accessClassInPackage
.sun.awt.windows";
};

in catalina.policy because we use the tomcat 6.x.

After we restart the tomcat 6.x server, and then retry, has no effect to this 
applet.

2. click printer button on applet viewer sample, it say :
---------------
Error printing report. See the console for details.

Java Applet Window
---------------

We trying to restar the catalina/tomcat server, 
but still not resolve to this problem.

Anyone can help ?

Thanks

Man'z


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to