Skip to Content.
Sympa Menu

shibboleth-dev - Re: [Shib-Dev] AbstractServiceBeanDefinitionParser dependsOn shibboleth.LogbackLogging ?

Subject: Shibboleth Developers

List archive

Re: [Shib-Dev] AbstractServiceBeanDefinitionParser dependsOn shibboleth.LogbackLogging ?


Chronological Thread 
  • From: Tom Zeller <>
  • To:
  • Subject: Re: [Shib-Dev] AbstractServiceBeanDefinitionParser dependsOn shibboleth.LogbackLogging ?
  • Date: Wed, 2 Jun 2010 15:05:45 -0500
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=rZLg/pjbOCRRN4mrM8X93uKW/C6Yi3jQ6/ZVLoX0Wq2fZAwvJhSkJdcHYZg4plRusb q2XNsbWaZpBguborjj/qEo6MZ80Vja6USatRrka67Y4Jpgj/IhRZt13D05/JJu8zAj/6 FDkCyWasRSCr5TjrnrbNCmg6laZiQLkkHQGnY=

Without a "shibboleth.LogbackLogging" bean, an exception is thrown
when loading the resolver :

org.springframework.beans.factory.NoSuchBeanDefinitionException: No
bean named 'shibboleth.LogbackLogging' is defined

To workaround, I declared

<bean id="shibboleth.LogbackLogging"
class="edu.internet2.middleware.ldappc.spml.EmptyBean" />

where EmptyBean is truly empty:

public class EmptyBean { }

and AbstractServiceBeanDefinitionParser is :

public abstract class AbstractServiceBeanDefinitionParser ...
protected void doParse(...

builder.addDependsOn("shibboleth.LogbackLogging");
for (String dependency : XMLHelper
.getAttributeValueAsList(configElement.getAttributeNodeNS(null,
"depends-on"))) {
builder.addDependsOn(dependency);
}

Could an optional dependency on shibboleth.LogbackLogging be done in
xml via depends-on, or is that unordered ? or a hassle ?

On Wed, Jun 2, 2010 at 2:44 PM, Chad La Joie
<>
wrote:
> I don't believe there is any hard dependency on the logging service. It's
> only there to ensure that in Shib the logging service is started before the
> other beans.
>
> On 6/2/10 3:40 PM, Tom Zeller wrote:
>>
>> In shib-common 1.2.0, it looks like
>> AbstractServiceBeanDefinitionParser now depends on the
>> "shibboleth.LogbackLogging" bean. I'm reusing shib-common but not
>> logback logging. Could that dependency be optional instead ? If not, I
>> guess I can declare such a bean.
>>
>> Thanks,
>> Tom
>>
>
> --
> Chad La Joie
> http://itumi.biz
> trusted identities, delivered
>



Archive powered by MHonArc 2.6.16.

Top of Page