This content has been marked as final.
Show 2 replies
-
1. Re: webapp login in a virual host
hawkis Mar 5, 2007 4:21 PM (in response to hawkis)Excerpt from the <JBOSS_ROOT>/server/default/deploy/jbossweb-tomcat55.sar/server.xml:
<Engine name="jboss.web" defaultHost="newhost"> <!-- Removed most of the comments --> <Realm className="org.jboss.web.tomcat.security.JBossSecurityMgrRealm" certificatePrincipal="org.jboss.security.auth.certs.SubjectDNMapping" allRolesMode="authOnly" /> <Host name="newhost" autodeploy="true" deployOnStartup="true" deployXML="true" appBase="app"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="applog" suffix=".log" pattern="combined"/> <DefaultContext crossContext="true" reloadable="true" /> <Context path="" docBase="app.war" /> </Host> <Host name="localhost" autoDeploy="false" deployOnStartup="false" deployXML="false" configClass="org.jboss.web.tomcat.security.config.JBossContextConfig" > <!-- only comments here --> </Host>
-
2. Re: webapp login in a virual host
hawkis Mar 12, 2007 1:35 PM (in response to hawkis)Ok. Logging into the application now works.
The trick was to have the following lines in the jboss-web.xml:<context-root>/</context-root> <virtual-host>newhost</virtual-host>
I also had to move my .war file back into the deploy folder.
What I noticed was that the classorg.jboss.security.auth.spi.UsersRolesLoginModule
never seemed to be called (by inspecting the server.log), if the above definition was not present. The only way to get that class to be called during application login ,was to have the war file in the <JBOSS_ROOT>/server/default/deploy folder.