tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <ni...@weblineindia.com>
Subject tomcat and security manager
Date Wed, 30 May 2001 08:11:41 GMT
i have an application in servlet and jsp
in directory format 
in /myapp

i have put  the /myapp in  c:\sites\myapp

i have created a host int server.xml file like

<Host name="10.0.0.1" >
           <Context path=""
                    docBase="c:\sites\myapp" />
 </Host>
now i start the tomcat in secure mode by giving 
command 

startup.bat  -security

now i request in browser 
like 
http://10.0.0.0/servlet/MyServlet

it gives error like 
java.security.AccessControlException: access denied (java.io.FilePermission C:\sites\myapp\web-inf\classes
read)

i add lines in tomcat.policy

grant codeBase "file:C:\sites\myapp\-" {
  permission java.io.FilePermission "*", "read";
};

still geting same error 

any idea????

please help me

thanks in advance




Mime
View raw message