Hi Amila
Thanks for replying my question, I have added following in policy file:
grant codeBase "file:..../xyz/xyz.war/-" {
permission java.io.FilePermission
"..../xyz.ear/xyz.war/WEB-INF/scriptServices", "read";
};
and still getting below error:
SecurityManag W SECJ0314W: Current Java 2 Security policy reported a
potential violation
of Java 2 Security Permission. Please refer to Problem
Determination Guide for further
information.
Permission:
"...../xyz.ear/xyz.war/WEB-INF/scriptServices : access denied
(java.io.FilePermission
...../xyz.ear/xyz.war/WEB-INF/scriptServices read)
Code:
org.apache.axis2.scripting.ScriptRepositoryListener in
{file:..../xyz/xyz.war/axis247136axis2-scripting-1.3.mar}
Stack Trace:
java.security.AccessControlException: access denied
(java.io.FilePermission
...../xyz.ear/xyz.war/WEB-INF/scriptServices read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java(Compiled
Code))
please let me know what coule be the problem.
Regards,
Ramesh
"Amila Suriarachchi" <[EMAIL PROTECTED]>
11/13/2008 05:28 AM
Please respond to
[email protected]
To
[email protected]
cc
Subject
Re: java.security.AccessControlException: access denied
(java.io.FilePermission "..../WEB-INF/scriptServices" read)
On Wed, Nov 12, 2008 at 3:24 AM, Ramesh Vishwanatham <
[EMAIL PROTECTED]> wrote:
All
I have a built simple web service and trying to deploy axis2 1.3 version
in WAS6.0 environment running Java 1.4.2 under security manager and
getting following exception:
Stack Trace:
java.security.AccessControlException: access denied
(java.io.FilePermission "..../WEB-INF/scriptServices" read)
Looks like this problem was reported earlier and may be got fixed in later
releases.
Resolved: (AXIS2-3816) AccessControlException when running with
Java2Security
And also I find out following comments regarding this problem:
"this problem gets solved when i give the Web Application AllPermissions
from the policy file but i cant get why this loose permission is required
"
by sandeep khurana on May 20th 2008.
We can not use later version "1.4" or "1.4.1" if this is fixed in one of
these versions because of jvm version we are using. Please help me by
pointing what needs to be specified in the policy file to be able to solve
with axis2 1.3 version.
At the deployment time Axis2 reads the Axis2.xml and services from the
filesystem. So it needs to have File System read permission. Try granting
the file read permission in the policy file.
thanks,
Amila.
Thanks in Advance
Ramesh Vishwanatham
________________________________________________________
DTCC DISCLAIMER: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or entity
to whom they are addressed. If you have received this email in error,
please notify us immediately and delete the email and any attachments from
your system. The recipient should check this email and any attachments for
the presence of viruses. The company accepts no liability for any damage
caused by any virus transmitted by this email.
--
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/
-----------------------------------------
________________________________________________________
DTCC DISCLAIMER: This email and any files transmitted with it are
confidential and intended solely for the use of the individual or
entity to whom they are addressed. If you have received this email
in error, please notify us immediately and delete the email and any
attachments from your system. The recipient should check this email
and any attachments for the presence of viruses. The company
accepts no liability for any damage caused by any virus transmitted
by this email.