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

Seam2Processor will not have permissions to its added resource loader

    XMLWordPrintable

    Details

      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alesj AleŇ° Justin
                  Reporter:
                  dmlloyd David Lloyd
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: