You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Brent Daniel (JIRA)" <de...@tuscany.apache.org> on 2008/10/29 20:58:44 UTC

[jira] Created: (TUSCANY-2653) doPrivileged needed in interface2WSDLGenerator

doPrivileged needed in interface2WSDLGenerator
----------------------------------------------

                 Key: TUSCANY-2653
                 URL: https://issues.apache.org/jira/browse/TUSCANY-2653
             Project: Tuscany
          Issue Type: Bug
          Components: Java SCA Axis Binding Extension
    Affects Versions: Java-SCA-1.3
            Reporter: Brent Daniel


The call to WSDLFactory.newInstance in the contructor of org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator needs to be called in a doPrivileged block. 

The following exception occurs with java 2 security enabled:
java.security.AccessControlException: access denied (java.io.FilePermission /test/was7soa/WebSphere/AppServer/java/jre/lib/wsdl.properties read)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
	at java.security.AccessController.checkPermission(AccessController.java:546)
	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:210)
	at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
	at java.io.FileInputStream.<init>(FileInputStream.java:100)
	at javax.wsdl.factory.WSDLFactory.findFactoryImplName(WSDLFactory.java:262)
	at javax.wsdl.factory.WSDLFactory.newInstance(WSDLFactory.java:60)
	at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.<init>(Interface2WSDLGenerator.java:127)


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


[jira] Assigned: (TUSCANY-2653) doPrivileged needed in interface2WSDLGenerator

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

Simon Laws reassigned TUSCANY-2653:
-----------------------------------

    Assignee: Simon Laws

> doPrivileged needed in interface2WSDLGenerator
> ----------------------------------------------
>
>                 Key: TUSCANY-2653
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2653
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.3
>            Reporter: Brent Daniel
>            Assignee: Simon Laws
>
> The call to WSDLFactory.newInstance in the contructor of org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator needs to be called in a doPrivileged block. 
> The following exception occurs with java 2 security enabled:
> java.security.AccessControlException: access denied (java.io.FilePermission /test/was7soa/WebSphere/AppServer/java/jre/lib/wsdl.properties read)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
> 	at java.security.AccessController.checkPermission(AccessController.java:546)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> 	at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:210)
> 	at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:100)
> 	at javax.wsdl.factory.WSDLFactory.findFactoryImplName(WSDLFactory.java:262)
> 	at javax.wsdl.factory.WSDLFactory.newInstance(WSDLFactory.java:60)
> 	at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.<init>(Interface2WSDLGenerator.java:127)

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


[jira] Resolved: (TUSCANY-2653) doPrivileged needed in interface2WSDLGenerator

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

Dan Becker resolved TUSCANY-2653.
---------------------------------

    Resolution: Invalid

Because the code goes through a check permission with access denied, it appears the code is going through a priviledged block. I think the reason that you are getting the access denied is that there is no permission for the Tuscany code base on your app server. You must allow Tuscany the priviledge of reading the properties file if it is to succeed here. So this problem is a basic lack of permissions in the appropriate file.

Note that this code has changed in Tuscany 1.4 and later. If you run under Tuscany 1.4 you may see a different set of line numbers.

> doPrivileged needed in interface2WSDLGenerator
> ----------------------------------------------
>
>                 Key: TUSCANY-2653
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2653
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Axis Binding Extension
>    Affects Versions: Java-SCA-1.3
>            Reporter: Brent Daniel
>            Assignee: Simon Laws
>             Fix For: Java-SCA-Next
>
>
> The call to WSDLFactory.newInstance in the contructor of org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator needs to be called in a doPrivileged block. 
> The following exception occurs with java 2 security enabled:
> java.security.AccessControlException: access denied (java.io.FilePermission /test/was7soa/WebSphere/AppServer/java/jre/lib/wsdl.properties read)
> 	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
> 	at java.security.AccessController.checkPermission(AccessController.java:546)
> 	at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
> 	at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:210)
> 	at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:100)
> 	at javax.wsdl.factory.WSDLFactory.findFactoryImplName(WSDLFactory.java:262)
> 	at javax.wsdl.factory.WSDLFactory.newInstance(WSDLFactory.java:60)
> 	at org.apache.tuscany.sca.binding.ws.wsdlgen.Interface2WSDLGenerator.<init>(Interface2WSDLGenerator.java:127)

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