Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 29th, 2009, 04:58 PM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Security + embedded tomcat

Hi Folks,

I've built a java webstart application and embedded tomcat to it. Now I'm experiencing a weird problem about security. Tomcat starts fine, but when web application try to get some system property, an AccessCont********************ception is thrown:

java.security.AccessCont********************ceptio n: access denied (java.util.PropertyPermission user.name read)

I just need to know WHERE to set permissions for my web application (or maybe tomcat).

Is it better to create a catalina.policy file. Where to set it? As a system property like:

System.setProperty("java.security.manager", "");
System.setProperty("java.security.policy", "$CATALINA_BASE/conf/catalina.policy");

Or define policies programatically? I have no idea how to do it programatically...

Any ideas? I believe this is not a big deal.

Regards,

Allan





Similar Threads
Thread Thread Starter Forum Replies Last Post
J2EE Security in Tomcat iamrakesh22 Apache Tomcat 0 April 12th, 2007 04:06 AM
configuring security in Tomcat aadz5 Apache Tomcat 0 May 29th, 2006 11:00 AM
Security constraint for Tomcat anntosh BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 February 9th, 2006 04:40 PM
Help with Tomcat 5.0 and security dawlboult Apache Tomcat 1 September 14th, 2005 09:31 PM
JNDI setup in Embedded Tomcat 5.0.19 Pretty Apache Tomcat 3 July 12th, 2005 06:55 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.