[jboss-user] [Security & JAAS/JBoss] - Re: Dynamic login config broken in JBoss 5 Beta4

javidjamae do-not-reply at jboss.com
Sun Aug 24 19:28:34 EDT 2008


OK, I just tried this out on CR1, using the same code that I got to work on Beta4, and it doesn't seem to work. Did something change again?

Here is the service:


  | <server>
  |   <mbean code="org.jboss.security.auth.login.DynamicLoginConfig"
  |          name="jboss:service=DynamicLoginConfig">
  |     <attribute name="AuthConfig">dynamic-login-config.xml</attribute>
  |     <depends optional-attribute-name="LoginConfigService">jboss.security:service=XMLLoginConfig</depends>    
  |     <depends optional-attribute-name="SecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
  |   </mbean>
  | </server>
  | 

Here is the dynamic-login-config.xml file (in my WEB-INF/classes directory) so it should be accessible by the VFS Classloader:


  | <policy>
  | 
  |  <application-policy name = "simple-security-domain">
  |     <authentication>
  |        <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule" flag = "required">
  |           <module-option name="usersProperties">myusers.properties</module-option>
  |           <module-option name="rolesProperties">myroles.properties</module-option>
  |        </login-module>
  |     </authentication>
  |  </application-policy>
  | 
  | </policy>
  | 

And here is the error:


  | 18:10:05,711 ERROR [AbstractKernelController] Error installing to Start: name=jb
  | oss:service=DynamicLoginConfig state=Create mode=Manual requiredState=Installed
  | org.jboss.deployment.DeploymentException: Failed to find authConf as resource: d
  | ynamic-login-config.xml
  |         at org.jboss.security.auth.login.DynamicLoginConfig.startService(Dynamic
  | LoginConfig.java:236)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanS
  | upport.java:376)
  |         at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMB
  | eanSupport.java:322)
  |         at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  | sorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:585)
  |         at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatch
  | er.java:157)
  |         at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
  |         at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  |         at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.
  | java:264)
  |         at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
  |         at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java
  | :189)
  |         at $Proxy35.start(Unknown Source)
  |         at org.jboss.system.microcontainer.StartStopLifecycleAction.installActio
  | n(StartStopLifecycleAction.java:42)
  |         at org.jboss.system.microcontainer.StartStopLifecycleAction.installActio
  | n(StartStopLifecycleAction.java:37)
  |         at org.jboss.dependency.plugins.action.SimpleControllerContextAction.sim
  | pleInstallAction(SimpleControllerContextAction.java:62)
  |         at org.jboss.dependency.plugins.action.AccessControllerContextAction.ins
  | tall(AccessControllerContextAction.java:71)
  |         at org.jboss.dependency.plugins.AbstractControllerContextActions.install
  | (AbstractControllerContextActions.java:51)
  |         at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
  | 


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172202#4172202

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172202



More information about the jboss-user mailing list