[JBoss Seam] - decision and method which accepts params?
by tkalactomo
| <decision name="decision"
| expression="#{bean.method(param)}">
| <transition name="OK" to="good"/>
| <transition name="NOT" to="notgood"/>
| </decision>
|
Advantage of the pageflows and theirs decisions and transitions is that you can call transitions from pages like an actions.
Those pages can then be generic and used like templates,included in other pages who call that same transition by same name.Then we in pageflow define what that transition will do later and make it really generic.In my app main disadvantage in all that logic is that I can't use method which accepts some parameters,then all that talk about including generic pages in some other pages is out of plan.
This would be a very useful to implement such feature.
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4072000#4072000
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4072000
18Â years, 8Â months
[JBoss Portal] - Problems with DatabaseServerLoginModule
by pranji
Hi
I am trying to use the DatabaseServerLoginModule but am facing some problems. I have created a portal instance which has to be accessed after JAAS authentication.
In my .war file for my portal instance i have the following files
web.xml
anonymous wrote :
|
| <servlet-name>PortalServletWithPathMapping</servlet-name>
| <servlet-class>org.mex.portlets.login.servlet.LoginServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| <security-role-ref>
| <role-name>Authenticated</role-name>
| <role-link>Authenticated</role-link>
| </security-role-ref>
|
|
|
| <!-- Provide access to authenticated users -->
| <servlet-mapping>
| <servlet-name>PortalServletWithPathMapping</servlet-name>
| <url-pattern>/authpublic/*</url-pattern>
| </servlet-mapping>
|
| <!-- Force the mapping of the jsp and images because of the default servlet replacement -->
| <servlet-mapping>
| <servlet-name>jsp</servlet-name>
| <url-pattern>/login.jsp</url-pattern>
| </servlet-mapping>
| <servlet-mapping>
| <servlet-name>jsp</servlet-name>
| <url-pattern>/error.jsp</url-pattern>
| </servlet-mapping>
|
| <resource-ref>
| <res-ref-name>jdbc/PortalDS</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| </resource-ref>
|
| <security-constraint>
| <web-resource-collection>
| <web-resource-name>Authenticated</web-resource-name>
|
| <url-pattern>/authpublic/*</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <role-name>Authenticated</role-name>
| </auth-constraint>
| </security-constraint>
| <login-config>
| <auth-method>FORM</auth-method>
| <realm-name>public</realm-name>
| <form-login-config>
| <form-login-page>/login.jsp</form-login-page>
| <form-error-page>/error.jsp</form-error-page>
| </form-login-config>
| </login-config>
|
| <security-role>
| <role-name>Authenticated</role-name>
| </security-role>
|
my jboss-web.xml
anonymous wrote : <jboss-web>
| <security-domain>java:jaas/publicportal</security-domain>
| <context-root>/public</context-root>
| <resource-ref>
| <res-ref-name>jdbc/PortalDS</res-ref-name>
| <jndi-name>java:PortalDS</jndi-name>
| </resource-ref>
| </jboss-web>
|
in the login-config inside portal.sar i have added this
anonymous wrote :
| <application-policy name = "publicportal">
|
| <login-module code = "org.jboss.security.auth.spi.DatabaseServerLoginModule"
| flag = "required">
| <module-option name = "unauthenticatedIdentity">guest</module-option>
| <module-option name = "dsJndiName">java:/PortalDS</module-option>
| <module-option name = "principalsQuery">SELECT PASSWD FROM JMS_USERS WHERE USERID=?</module-option>
| <module-option name = "rolesQuery">SELECT ROLEID, 'Roles' FROM JMS_ROLES WHERE USERID=?</module-option>
| </login-module>
|
| </application-policy>
|
I have even enabled logging as per the secutiry FAQ but when i log in i see null on the error.jsp page with no logging messages
Basically
anonymous wrote : request.getAttribute("org.jboss.portal.loginError")returns null and i am not able to login
Can anyone please help
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071993#4071993
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071993
18Â years, 8Â months
[JBoss Portal] - Re: Error with JSF webapp on AS 4.2.1 + Portal 2.6
by viggo.navarsete
Well, the stacktrace is actually not the same... Here's the new one:
14:20:37,446 WARN [SkinFactoryImpl] Init parameter for a skin name changed to org.richfaces.SKIN
| 14:20:40,342 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
| java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade
| at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
| at org.ajax4jsf.resource.InternetResourceService.getFacesContext(InternetResourceService.java:317)
| at org.ajax4jsf.resource.InternetResourceService.getResourceContext(InternetResourceService.java:251)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:162)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:259)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071991#4071991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071991
18Â years, 8Â months
[JBoss Portal] - Re: JSF 1.2 + Woodstock
by viggo.navarsete
Well, the stacktrace is actually not the same... Here's the new one:
14:20:37,446 WARN [SkinFactoryImpl] Init parameter for a skin name changed to org.richfaces.SKIN
| 14:20:40,342 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
| java.lang.ClassCastException: org.apache.catalina.core.ApplicationContextFacade
| at com.sun.faces.portlet.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:64)
| at org.ajax4jsf.resource.InternetResourceService.getFacesContext(InternetResourceService.java:317)
| at org.ajax4jsf.resource.InternetResourceService.getResourceContext(InternetResourceService.java:251)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:162)
| at org.ajax4jsf.resource.InternetResourceService.serviceResource(InternetResourceService.java:144)
| at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:259)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
| at java.lang.Thread.run(Thread.java:595)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4071989#4071989
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4071989
18Â years, 8Â months