Hi,

I have created an authorization webservice which is done by using my own
policy file.
And i have deployed my authorization webservice in JBoss 3.0 server.
Now when i try to call my webservice API to do user authorization, the
JBoss server throws
the following error.

java.security.AccessControlException: access denied
(java.io.FilePermission
D:\jboss-3.0.0_tomcat-4.0.3\server\default\deploy read)
 at
java.security.AccessControlContext.checkPermission(AccessControlContext.java

:270)
 at
java.security.AccessController.checkPermission(AccessController.java:401)

 at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
 at java.lang.SecurityManager.checkRead(SecurityManager.java:887)
 at java.io.File.exists(File.java:677)
 at
org.jboss.deployment.scanner.URLDeploymentScanner.scanDirectory(URLDeploymen

tScanner.java:539)
 at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.

java:465)
 at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab

stractDeploymentScanner.java:202)
 at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs

tractDeploymentScanner.java:191)

I hope this error occurs because my policy file deactivates default
policy file of JBoss.
I have done it using System.setPolicy(mypolicy).

If u look into  JBoss policy file, it  grants
java.security.AllPermission as default permission.
But in my policy file i am retricting the permissions ( also i have
included the above permission thrown as exception.)
ie, My Policy (A part of my policy file) contains the jboss related
permission as given below

grant codeBase
"file:/D:/jboss-3.0.0_tomcat-4.0.3/server/default/deploy/-" {
        permission java.security.AllPermission;
        permission java.io.FilePermission;
};


I don't know why JBoss throw this exception even after giving the
permission for read operation in deploy folder.

Please help me to solve this problem.

Thanx in Advance.
-Jagan.



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to