[jboss-dev] missing security config file?
Stefan Guilhen
sguilhen at redhat.com
Thu Aug 7 12:23:21 EDT 2008
Both SecurityConfig and XMLLoginConfig were old mbeans that have been
configured as mc beans while still inheriting ServiceMBeanSupport (so
that they could be configured both as mbeans and as mc beans).
I've removed the ServiceMBeanSupport inheritance from the beans and
removed the ServiceMBean inheritance from their interfaces as well and
now both beans start correctly (also had to add start and stop methods
to replace startService and stopService). So now those beans can only be
configured as mc beans and use the @JMX annotation to export their
"MBean view".
My question is whether inheriting ServiceMBeanSupport is now considered
wrong for a mc bean or not. If it is, and beans are only supposed to be
configured as mc beans, then I'll commit the changes I've made to be in
line with Ales/Adrian's changes.
Ales Justin wrote:
> The only security service I see via jmx-console is
>
> jboss.security
>
> * service=JaasSecurityManager
>
> I'm missing SecurityConfig and XMLLoginConfig,
> which should both be there since they have @JMX.
>
> They get picked up, and instantiated, but that's as far as it goes.
>
> 2008-08-07 15:50:16,734 DEBUG
> [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext]
> (main) Added component XMLLoginConfig to
> vfsfile:/C:/projects/jboss5/trunk/build/output/jboss-5.0.0.CR2/server/default/deploy/security/security-jboss-beans.xml
>
> 2008-08-07 15:50:16,734 DEBUG
> [org.jboss.deployers.structure.spi.helpers.AbstractDeploymentContext]
> (main) Added component SecurityConfig to
> vfsfile:/C:/projects/jboss5/trunk/build/output/jboss-5.0.0.CR2/server/default/deploy/security/security-jboss-beans.xml
>
>
> 2008-08-07 15:50:16,796 TRACE
> [org.jboss.security.auth.login.XMLLoginConfig] (main) Constructing
> 2008-08-07 15:50:16,828 TRACE
> [org.jboss.security.plugins.SecurityConfig] (main) Constructing
>
>
> Stefan Guilhen wrote:
>> 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.
> _______________________________________________
> 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