[jbosstools-issues] [JBoss JIRA] Resolved: (JBIDE-939) EL not allowed in pages.xml
Max Andersen (JIRA)
jira-events at lists.jboss.org
Fri Oct 26 09:04:01 EDT 2007
[ http://jira.jboss.com/jira/browse/JBIDE-939?page=all ]
Max Andersen resolved JBIDE-939.
--------------------------------
Resolution: Done
This is now fixed - thanks Pete and Samuel.
Testcase:
EXECUTE: create seam project (both Ear and War should be tested)
create a copy of a xhtml file (e.g. login.xhtml and edit it so you can recognize it)
call it foo.xhml and add a foo.page.xml with the following content:
<!DOCTYPE page PUBLIC
"-//JBoss/Seam Pages Configuration DTD 1.2//EN"
"http://jboss.com/products/seam/pages-1.2.dtd">
<page view-id="/foo.xhtml" login-required="true">
<restrict>#{s:hasRole('somethingthatshouldnotexis')}</restrict>
</page>
Then if the fix works you would get this in server log:
14:32:03,094 ERROR [SeamPhaseListener] uncaught exception
org.jboss.seam.security.AuthorizationException: Authorization check failed for expression [#{s:hasRole('adminggg')}]
at org.jboss.seam.security.Identity.checkRestriction(Identity.java:160)
at org.jboss.seam.pages.Page.enter(Page.java:206)
at org.jboss.seam.core.Pages.enterPage(Pages.java:276)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.enterPage(AbstractSeamPhaseListener.java:276)
at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListene
instead of a NoClassDefFoundError
> EL not allowed in pages.xml
> ---------------------------
>
> Key: JBIDE-939
> URL: http://jira.jboss.com/jira/browse/JBIDE-939
> Project: JBoss Tools
> Issue Type: Bug
> Components: Seam
> Affects Versions: 2.0.0.Beta3
> Environment: Red Hat Developer Studio Beta
> Reporter: Samuel Mendenhall
> Assigned To: Max Andersen
> Fix For: 2.0.0.CR1
>
>
> <page view-id="/somepage.xhtml" login-required="true">
> <restrict>#{s:hasRole('someRole')}</restrict>
> </page>
> accessing somepage after logging in throws:
> java.lang.NoClassDefFoundError: com/sun/el/ExpressionFactoryImpl
> at org.jboss.seam.util.UnifiedELValueBinding.<init>(UnifiedELValueBinding.java:18)
> at org.jboss.seam.security.Identity.evaluateExpression(Identity.java:507)
> at org.jboss.seam.security.Identity.checkRestriction(Identity.java:151)
> at org.jboss.seam.pages.Page.enter(Page.java:203)
> .....
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list