Deployed two application with security webservice on one system,throws "Access 
is denied" exception
---------------------------------------------------------------------------------------------------

                 Key: TUSCANY-2759
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2759
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Axis Binding Extension
    Affects Versions: Java-SCA-1.4
         Environment: Linux,Weblogic,jdk 1.5
            Reporter: wangfeng
             Fix For: Java-SCA-Next


When deploy a webservice with security policy,axis2 will copy the rampart.mar 
file to the temp dir when deploying the rampart module.In our populate rampart 
module code,we use  'org.apache.axis2.deployment.util.Utils.createClassLoader' 
to create the deployment classLoader and the last parameter 
'axisConfig.getParameterValue(Constants.Configuration.ARTIFACTS_TEMP_DIR)' will 
be null on our default configuration.So the axis2 will be create a sub 
directory '_axis2' on the system temp directory and copy the rampart.mar to 
this.

On my environment,running one applicaton server with user 'root',then the 
directory '_axis2' will have 'root' privileges,but when running another 
applicaton server with another user,it will haven't the write privilege on the 
directory,so when running the second server,it will throw an exception.

My suggestion is  changing the last parameter to the system temp directory 
using System.getProperty("java.io.tmpdir").


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to