[JBoss Portal Users] - aj4 calls failing in jboss portal 2.7.2
by lakshmi.rath
Hi,
While migrating to HTTPS (SSL mode), we are facing issues in making a4j requests from JSF portlet in jboss portal. The exception received is enclosed below.
The details of our implementation are:
Richfaces 3.2.0.GA
portletbridge 1.0.0.B3
jsf-facelets 1.1.12
portal version: 2.7.2
Please let me know incase anybody has faced a similar kind of issue or has any pointers and the steps taken to obtain a4j calls successfully.
The exception received is below;
exception
javax.servlet.ServletException: viewId:/jsp/scheduleReport.faces - View /jsp/scheduleReport.faces could not be restored.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:270)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
org.ajax4jsf.Filter.doFilter(Filter.java:175)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
javax.faces.application.ViewExpiredException: viewId:/jsp/scheduleReport.faces - View /jsp/scheduleReport.faces could not be restored.
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:186)
com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:104)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:147)
org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:276)
org.ajax4jsf.Filter.doFilter(Filter.java:175)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
Thanks,
Lakshmi
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253443#4253443
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253443
15 years, 4 months
[Security] - Issue in JAAS - EJB3 declarative security
by new2Security
I 'm running into an issue in EJB3 declarative security in JBoss 4.2.0.
Here is my scenario.
1. I have 3 EJB3 beans (let us call it as ClientEJB, LoginEJB and TestBean
2. ClientEJB needs to call LoginEJB to validate login. Upon successful login (using LoginContext.login()) I would like user's context set to the jBoss container).
3. Now ClientEJB needs to call TestBean. TestBean has certain methods in which I have following annotations
@RolesAllowed ({"test"}) // to allow method access to user's with "test" role
4. But for some reasons I keep getting
ERROR [RoleBasedAuthorizationInterceptor] Insufficient permissions, principal=null, requiredRoles=[test], principalRoles=[]
javax.ejb.EJBAccessException: Authorization failure
at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:113)
5. I was expecting the role which was set in LoginBean inturn propogates to TestBean.
Can some one help me with this?
Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4253437#4253437
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4253437
15 years, 4 months