[JBoss Seam] - Re: @Restrict - No redirection to Error Page
by FabBoco
Gavin,
I am sorry but
| <page view-id="/test3.xhtml" login-required="true" >
| <restrict>#{s:hasRole('Administrator')}</restrict>
| </page>
|
doesn't work to me.
anonymous wrote :
| In this scenario, after login page firefox shows an error page with the
| following message
|
| |
| | The page isn't redirecting properly
| |
| | Firefox has detected that the server is redirecting the request for this address in a way that will
| | never complete.
| |
| | * This problem can sometimes be caused by disabling or refusing to accept
| | cookies.
| |
|
| and more and more of this messages on the application server console
|
| |
| | 10:59:27,562 ERROR [SeamPhaseListener] uncaught exception
| | org.jboss.seam.security.AuthorizationException: Authorization check failed for expression [#{s:hasRo
| | le('Administrator')}]
| | 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:265
| | )
| | at org.jboss.seam.jsf.AbstractSeamPhaseListener.beforeRender(AbstractSeamPhaseListener.java:
| | 203)
| | at org.jboss.seam.jsf.SeamPhaseListener.beforePhase(SeamPhaseListener.java:57)
| | at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersBefore(PhaseListene
| | rManager.java:70)
| | at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:373)
| | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
| | ava:252)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| |
| | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:63)
| | at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:60)
| | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| | at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
| | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| | at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
| | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| | at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:79)
| | at org.jboss.seam.web.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:49)
| | at org.jboss.seam.web.SeamFilter.doFilter(SeamFilter.java:84)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
| | ava:202)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| |
| | at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
| | at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
| | ava:202)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| |
| | at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| | at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j
| | ava:202)
| | at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
| |
| | at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
| | at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
| | at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.ja
| | va:175)
| | at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
| | at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
| | at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
| | at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
| | at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| |
| | at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
| | at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
| | at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
| | at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Htt
| | p11BaseProtocol.java:664)
| | at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
| | at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
| | at java.lang.Thread.run(Thread.java:595)
| | 10:59:27,748 ERROR [SeamPhaseListener] uncaught exception
| | .........
| |
|
Any suggest ? Is my problem related to any known bug ?
Thank you
Regards
Fab.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029916#4029916
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029916
19Â years, 1Â month
[JBoss Seam] - Re: @Unwrap from SFSB and session timeout issue
by tom_goring
Hi,
Thanks for the advise but no it's not the issue.
I renamed the component just to check ("userXx") stack below.
Ideas ? Does anyone have SFSB acting as a manager using @Unwrap to a entity bean ?
17:41:51,187 WARN [Contexts] Could not destroy component: userXx
| java.lang.IllegalArgumentException: method not found: destroy for component: userXx (check that it is declared on the session bean business interface)
| at org.jboss.seam.Component.callComponentMethod(Component.java:1853)
| at org.jboss.seam.Component.callDestroyMethod(Component.java:1791)
| at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:230)
| at org.jboss.seam.contexts.Lifecycle.flushAndDestroyContexts(Lifecycle.java:396)
| at org.jboss.seam.contexts.Lifecycle.endRequest(Lifecycle.java:302)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029913#4029913
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029913
19Â years, 1Â month
[JBoss Portal] - Identify a portlet instance before rendered?
by FredF
Hello all.
I am using JBoss 4.0.5, JBoss portal 2.6 and JBoss seam 1.1.0.
My usecase is this:
I have a default portal and a page called 'Contacts' which contains two portlet instances 'PortletInstanceInternalContacts' and 'PortletInstanceExternalContacts'.
The instances originiates from the same portlet 'MyContactsPortlet'.
| <?xml version="1.0" encoding="UTF-8"?>
| <portlet-app
| xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd /opt/SUNWps/dtd/portlet.xsd"
| version="1.0">
| <portlet>
| <portlet-name>MyContactsPortlet</portlet-name>
| <init-param>
| <name>default-view</name>
| <value>/contacts.jsp</value>
| </init-param>
| <portlet-class>org.apache.myfaces.portlet.MyFacesGenericPortlet</portlet-class>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| </supports>
| <portlet-info>
| <title></title>
| </portlet-info>
| </portlet>
|
| </portlet-app>
|
The difference between the two instances is that they shall display slightly different data from backend.
The solution would be to send a parameter from the portletinstance to backend to sort of identify itself and
be able to fetch correct data.
My question is:
I want to create multiple instances of the same portlet and be able to identify the instances from each other
to populate them with data based on a parameter.
How can I get this parameter?
What can/should it be based on?
Is the portletinstance name feasable and how can I find out this portletinstance name?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4029910#4029910
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4029910
19Â years, 1Â month