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

Seam2Processor will not have permissions to its added resource loader

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: