Skip to content

Commit

Permalink
org.springframework.beans.factory.NoSuchBeanDefinitionException: No b…
Browse files Browse the repository at this point in the history
  • Loading branch information
ftaiolivista committed Mar 18, 2013
1 parent 2e9815d commit 90c7337
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.springframework.beans.factory.support.ManagedList;
import org.springframework.beans.factory.support.ManagedMap;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.beans.factory.config.RuntimeBeanReference;
import org.springframework.security.config.BeanIds;
import org.springframework.security.oauth2.provider.CompositeTokenGranter;
import org.springframework.security.oauth2.provider.DefaultAuthorizationRequestManager;
Expand Down Expand Up @@ -177,8 +178,7 @@ protected AbstractBeanDefinition parseEndpointAndReturnFilter(Element element, P
for(Element customGrantElement: customGrantElements) {
if(!"true".equalsIgnoreCase(customGrantElement.getAttribute("disabled"))) {
String customGranterRef = customGrantElement.getAttribute("token-granter-ref");
parserContext.getRegistry().getBeanDefinition(customGranterRef);
tokenGranters.add(parserContext.getRegistry().getBeanDefinition(customGranterRef));
tokenGranters.add( new RuntimeBeanReference(customGranterRef) );
}
}
}
Expand Down

0 comments on commit 90c7337

Please sign in to comment.