You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "wangfeng (JIRA)" <de...@tuscany.apache.org> on 2008/12/24 09:28:47 UTC

[jira] Created: (TUSCANY-2759) Deployed two application with security webservice on one system,throws "Access is denied" exception

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.


[jira] Updated: (TUSCANY-2759) Deployed two application with security webservice on one system,throws "Access is denied" exception

Posted by "wangfeng (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-2759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

wangfeng updated TUSCANY-2759:
------------------------------

    Attachment: patch.diff

This is the diff with the trunk code.

> 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
>
>         Attachments: patch.diff
>
>
> 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.