[Security & JAAS/JBoss] - Strange think!
by kourkk
I correctly configured my web application to work with form authendication and also to manualy authendicate using loginContext.login(). I went for sleep, Iwake up and in my job I tested. It worked for one time and after that the loginContext.Login never worked again. I even reinstalled jboss nothing. I am sure I didn't changed nothing. Some how is using UserLoginModule instead the Database policy.I am stragling with this issue three days. I keep taking
[UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found,
but i do not use this when I say LoginContext("myPolicy", handler)
In the forum I saw many postings with the exception:
[UsersRolesLoginModule] Failed to load users/passwords/role files
java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found,
but for different reasons. I think this is some kind a bug.
Does anyone nows something?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970855#3970855
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970855
19 years, 7 months
[JBoss Seam] - Re: seam + ajax4jsf + facelets
by adambrod
Actually, my stack trace is slightly different. Here is the relevant part of the stack trace:
| 2006-09-11 18:02:59,525 ERROR org.apache.myfaces.lifecycle.PhaseListenerManager - Exception in PhaseListener RESTORE_VIEW(1) afterPhase
| java.lang.NullPointerException
| at org.jboss.seam.contexts.PageContext.getCurrentReadableMap(PageContext.java:62)
| at org.jboss.seam.contexts.PageContext.get(PageContext.java:52)
| at org.jboss.seam.contexts.Contexts.lookupInStatefulContexts(Contexts.java:125)
| at org.jboss.seam.Component.getInstance(Component.java:1245)
| at org.jboss.seam.jsf.SeamVariableResolver.resolveVariable(SeamVariableResolver.java:44)
| at org.apache.shale.tiger.faces.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:188)
| at org.apache.shale.faces.ShaleVariableResolver.resolveVariable(ShaleVariableResolver.java:152)
| at org.springframework.web.jsf.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:108)
| at org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
| at org.apache.shale.view.faces.ViewViewHandler.setupViewController(ViewViewHandler.java:285)
| at org.apache.shale.view.faces.ViewViewHandler.createView(ViewViewHandler.java:130)
| at org.apache.myfaces.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:143)
| at org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:35)
| at org.apache.shale.dialog.faces.DialogNavigationHandler.handleNavigation(DialogNavigationHandler.java:196)
| at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:89)
| at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:181)
| at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970854#3970854
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970854
19 years, 7 months
[JBoss Seam] - Re: seam + ajax4jsf + facelets
by adambrod
Here is the relevant part of web.xml
<listener>
| <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
| </listener>
|
| <!-- Propagate conversations across redirects -->
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamRedirectFilter</filter-class>
| </filter>
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
|
| <!-- Needed to ensure safe tx cleanup when using Seam-managed sessions/persistence contexts -->
| <filter>
| <filter-name>Seam Exception Filter</filter-name>
| <filter-class>org.jboss.seam.servlet.SeamExceptionFilter</filter-class>
| </filter>
| <filter-mapping>
| <filter-name>Seam Exception Filter</filter-name>
| <servlet-name>Faces Servlet</servlet-name>
| </filter-mapping>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970850#3970850
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970850
19 years, 7 months
[JBoss Seam] - Questions on Seam's PAGE scope
by CptnKirk
It isn't clear how page scoped resources are cleaned up. They appear to survive multiple requests, however can be out of date and require a refresh() as indicated in the issues example ProjectFinderBean class.
Is it possible to set a page scope timout so that resources can be cleaned up in addition to providing a way to schedule data refreshes without user interaction?
The docs seem to imply that page scoped state is serialized back to the client, so maybe no data is being stored on the server. This might aliviate memory related issues, but having a declarative way to time out this "page cache" would seem beneficial. Am I missing a configuration option?
An example use case might be a stock quote. A company may have an investors page that uses a third-party web service to lookup the company's stock price every 5 minutes. This request should only be made once every 5 minutes, users shouldn't be able to refresh, and it should be easy to implement. Seam + page scope + @Factory seems ideal here. If you can time out the data that is. After the time out, the factory method would be called again, and round you go.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970848#3970848
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3970848
19 years, 7 months