[jboss-jira] [JBoss JIRA] (WFLY-131) Seam2Processor will not have permissions to its added resource loader
Tomas Remes (JIRA)
jira-events at lists.jboss.org
Thu Oct 24 04:18:02 EDT 2013
[ https://issues.jboss.org/browse/WFLY-131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12824544#comment-12824544 ]
Tomas Remes commented on WFLY-131:
----------------------------------
I've tried this https://github.com/tremes/wildfly/compare/attempts?expand=1 and deployment seems to work fine, however there's need to release some new version of jboss-seam-int (current revision looks ok) artifact. I asked Ales, because I don't have permissions to do it. So will see...
> Seam2Processor will not have permissions to its added resource loader
> ---------------------------------------------------------------------
>
> Key: WFLY-131
> URL: https://issues.jboss.org/browse/WFLY-131
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Server
> Reporter: David Lloyd
> Assignee: Ales Justin
> Labels: security
> Fix For: 8.0.0.CR1
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list