[jboss-dev] missing security config file?

Stefan Guilhen sguilhen at redhat.com
Thu Aug 7 09:15:05 EDT 2008


My guess is that for some reason the SecurityConfig bean is failing to 
register the XMLLoginConfigImpl as the Configuration instance to be used 
by the JAAS login process. The stack trace shows that the default 
com.sun.security.auth.login.ConfigFile is being used instead.

Ales Justin wrote:
>> So it can't find conf/login-config.xml
>> since this is loaded by ClassLoader.getResource(), my guess is that you
>> haven't added the new ClassPath deployer to deployers.xml
>>
>> Index: server/src/etc/conf/default/deployers.xml
>> ===================================================================
>> --- server/src/etc/conf/default/deployers.xml   (revision 76563)
>> +++ server/src/etc/conf/default/deployers.xml   (working copy)
>> @@ -206,6 +206,7 @@
>>        </property>
>>     </bean>
>>     <bean name="InMemoryClassesDeployer" 
>> class="org.jboss.deployers.vfs.plugins.classloader.InMemoryClassesDeployer"/> 
>>
>> +   <bean name="ClassLoaderClassPathDeployer" 
>> class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderClassPathDeployer"/> 
>>
>>     <bean name="ClassLoaderDescribeDeployer" 
>> class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderDescribeDeployer"> 
>>
>>        <property name="classLoading"><inject 
>> bean="ClassLoading"/></property>
>>     </bean>
>>
>> Failing that (assuming you did a clean build) you'll
>> need to debug why it can't find the resource.
>>
>> e.g. enable TRACE for org.jboss.classloader
>
> That's what I thought too.
> But it's there:
>
>    <bean name="InMemoryClassesDeployer" 
> class="org.jboss.deployers.vfs.plugins.classloader.InMemoryClassesDeployer"/> 
>
>    <bean name="ClassLoaderClassPathDeployer" 
> class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderClassPathDeployer"/> 
>
>    <bean name="ClassLoaderDescribeDeployer" 
> class="org.jboss.deployers.vfs.plugins.classloader.VFSClassLoaderDescribeDeployer"> 
>
>
> OK, debug then. :-(
> _______________________________________________
> jboss-development mailing list
> jboss-development at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-development




More information about the jboss-development mailing list