From the monthly archives:

June 2009

No Scope registered for scope request

June 5, 2009

Recently I was working with some code which defined beans as request scope. Junit tests failed with the following exception while trying to initialize the application context:

Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: …; nested exception is java.lang.IllegalStateException: No Scope registered for scope ‘request’

I found the solution by searching around (unfortunately I didn’t record the [...]

Read the full article →