i am new to Symfony2 and need to create a Custom Authentication Provider, so i read the [How to create a custom Authentication Provider](http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html "How to create a custom Authentication Provider").
I created all classes, also the Custom User Provider from [How to create a custom User Provider](http://symfony.com/doc/current/cookbook/security/custom_provider.html "How to create a custom User Provider") but i am getting this Exception:

```
RuntimeException: The parent definition "wsse.security.authentication.provider" defined for definition "security.authentication.provider.wsse.wsse_secured" does not exist.

```

I copy/pasted all classes and configuration parts from the Cookbook and only changed my Bundlename.