Persistent (remember me) login using geronimo



I have found this:


http://ift.tt/1sk1N1A


I'm using tomcat with geronimo, so it says to add something like this to my geronimo-web.xml



<manager>TomcatManager</manager>
<gbean name="TomcatManager" class="org.apache.geronimo.tomcat.ManagerGBean">
<attribute name="className">org.apache.catalina.session.PersistentManager</attribute>
<attribute name="initParams">maxActiveSessions=10
maxIdleBackup=10
maxIdleSwap=11
minIdleSwap=5
store.className=org.apache.catalina.session.FileStore
store.checkInterval=10
store.directory=d:/testFolder/session
</attribute>
</gbean>


However, My geronimo-web.xml for the webapp was generated by Eclipse and has prefixes. I haven't figured out how to properly add the update. I'd love to see a complete xml file with prefixes that will properly configure PersistentManager.


Here's what my current geronimo-web.xml looks like:



<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<web:web-app xmlns:app="http://ift.tt/1k3x1nB"
xmlns:bp="http://ift.tt/KL6wHM"
xmlns:client="http://ift.tt/1k3x1nD"
xmlns:conn="http://ift.tt/MTIAD0"
xmlns:dep="http://ift.tt/MTIAD6"
xmlns:ejb="http://ift.tt/1k3x1nJ"
xmlns:jaspi="http://ift.tt/MTIyeu"
xmlns:log="http://ift.tt/MTIyuI"
xmlns:name="http://ift.tt/1k3wZvY"
xmlns:pers="http://ift.tt/UICAJV"
xmlns:pkgen="http://ift.tt/1k3wZw2"
xmlns:sec="http://ift.tt/MTIyuS"
xmlns:web="http://ift.tt/1k3x1E5">
<dep:environment>
<dep:moduleId>
<dep:groupId>default</dep:groupId>
<dep:artifactId>BTFWAR</dep:artifactId>
<dep:version>1.0</dep:version>
<dep:type>car</dep:type>
</dep:moduleId>
<dep:dependencies>
<dep:dependency>
<dep:groupId>org.apache.geronimo.framework</dep:groupId>
<dep:artifactId>j2ee-security</dep:artifactId>
<dep:type>car</dep:type>
</dep:dependency>
<dep:dependency>
<dep:groupId>console.realm</dep:groupId>
<dep:artifactId>SecurityRealm</dep:artifactId>
</dep:dependency>
</dep:dependencies>
</dep:environment>
<web:context-root>/BTFWAR</web:context-root>
<web:security-realm-name>SecurityRealm</web:security-realm-name>
<sec:security>
<sec:role-mappings>
<sec:role role-name="security:members" >
<sec:principal name="security:members" class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal"/>
</sec:role>
</sec:role-mappings>
</sec:security>
</web:web-app>

No comments:

Post a Comment