Tuscany
  1. Tuscany
  2. TUSCANY-3956

Java2 Security exception in ContributionHelper.getNestedJarUrls method

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: Java-SCA-2.0-Beta1
    • Fix Version/s: Java-SCA-2.x
    • Labels:
      None
    • Environment:
      All

      Description

      The following exception occurs when run with java2 security. This has cropped up because we are now trying to read nested jars within a jar contribution
      java.lang.IllegalStateException: java.lang.reflect.InvocationTargetException

      Caused by: java.security.AccessControlException: Access denied (java.io.FilePermission c:\opt\Moonstone\WAS\profiles\node1\installedAssets\calcSharedLib.jar\BASE\calcSharedLib.jar read)
      at java.security.AccessController.checkPermission(AccessController.java:108)
      at java.lang.SecurityManager.checkPermission(SecurityManager.java:544)
      at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:208)
      at java.lang.SecurityManager.checkRead(SecurityManager.java:883)
      at java.io.File.isDirectory(File.java:763)
      at org.apache.tuscany.sca.contribution.java.impl.ContributionHelper.getNestedJarUrls(ContributionHelper.java:41)
      at org.apache.tuscany.sca.contribution.java.impl.ClassLoaderModelResolver.getContributionURLs(ClassLoaderModelResolver.java:72)
      at org.apache.tuscany.sca.contribution.java.impl.ClassLoaderModelResolver.(ClassLoaderModelResolver.java:77)
      at com.ibm.ws.soa.sca.oasis.contribution.java.WASSCAClassLoaderModelResolver.(WASSCAClassLoaderModelResolver.java:49)

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Hasan Muhammad
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development