Closed tnodev closed 12 years ago
Hi,
Are you including the module in your own Tapestry App ? Then i would search for other Spring dependencies which are added to the classpath through maven and conflict in some way.
Hi, I´m getting this exception could you helpme?
Do you have an example with this new version...
java.lang.IllegalArgumentException: Contribution com.rimsamex.app.security.services.AuthenticationModule.contributeProviderManager(Ordered
Configuration, AuthenticationProvider) (at AuthenticationModule.java:39) is for service 'ProviderManager', which does not exist.
at org.apache.tapestry5.ioc.internal.RegistryImpl.validateContributeDefs(RegistryImpl.java:238)
at org.apache.tapestry5.ioc.internal.RegistryImpl.
Looks like again a maven dependency issue.
ProviderManager is part of the spring-security-core package which is included as dependency on spring-security-web. Tapestry Spring Security only depends on spring-security-web and have Maven resolve the other required libraries. Maybe your project does not define the correct dependencies, exclude some or is missing this jar ?!
If you run 'mvn dependency:list' from the commandline on your project, does it display the spring-core jar ?
Hi,
This is the dependecy list for my project and its display the spring-core jar:
[INFO] org.springframework:spring-aop:jar:3.1.0.RELEASE:compile [INFO] org.springframework:spring-asm:jar:3.1.0.RELEASE:compile [INFO] org.springframework:spring-beans:jar:3.1.0.RELEASE:compile [INFO] org.springframework:spring-context:jar:3.1.0.RELEASE:compile [INFO] org.springframework:spring-core:jar:3.1.0.RELEASE:compile [INFO] org.springframework:spring-expression:jar:3.1.0.RELEASE:compile [INFO] org.springframework:spring-jdbc:jar:3.0.6.RELEASE:compile [INFO] org.springframework:spring-tx:jar:3.0.6.RELEASE:compile [INFO] org.springframework:spring-web:jar:3.1.0.RELEASE:compile [INFO] org.springframework.security:spring-security-core:jar:3.1.0.RELEASE:compile [INFO] org.springframework.security:spring-security-crypto:jar:3.1.0.RELEASE:compile [INFO] org.springframework.security:spring-security-web:jar:3.1.0.RELEASE:compile
The project example from localhost.nu should works with this current version, I mean the AppModule should be changed or I can keep it as is?
My bad,
The new SecurityModule creates an AuthenticationManager iso ProviderManager see:
@Marker( SpringSecurityServices.class )
public static AuthenticationManager buildAuthenticationManager( final List
final ProviderManager manager = new ProviderManager(providers);
manager.afterPropertiesSet();
return manager;
}
So you'll have to contribute to the AuthenticationManager interface
Thanks, it was the problem...
Hi all, can you post here how the AppModule should look like? I have the same problem. Im usign tapestry-spring-security 4.2.0.
public static UserDetailsService buildUserDetailsService(
@Inject LoginService loginService, @Inject PasswordEncoder encoder,
@Inject SaltSource salt) {
return new AuthenticationService(loginService, encoder, salt);
}
public static void contributeAuthenticationManager(
OrderedConfiguration<AuthenticationProvider> configuration,
@InjectService("DaoAuthenticationProvider") AuthenticationProvider daoAuthenticationProvider) {
configuration.add("daoAuthenticationProvider",
daoAuthenticationProvider);
}
Hi ! I'm using your package to move to T5.3 but I have an error.
Did I miss something ?
Thanks Tom