Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-131

Seam2Processor will not have permissions to its added resource loader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.0.0.CR1
    • None
    • Server

    Description

      The Seam2Processor class adds a VFSResourceLoader to the deployment in order to copy certain Seam classes into it. The problem is that the VFSResourceLoader will fail at runtime with a permission exception because there is no corresponding VirtualFilePermission.

      For this type of resource loader, it is better just to add the JAR using JarFileResourceLoader, which does not require permissions at load time and is much faster anyway.

      If you must use VFSResourceLoader, then instead of creating and adding the resource loader yourself, add a ResourceRoot to the deployment context.

      Attachments

        Issue Links

          Activity

            People

              ajustin@redhat.com Ales Justin
              dlloyd@redhat.com David Lloyd
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: