Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
1.4.13
-
None
-
None
Description
My bean declared as @Scope(value = "singleton") is reinstantiated before injection. This includes the symptom, that its session factory was null.
After a two hour debugging session with pertl (Thanks!) we found the following workaround:
Use
new SpringComponentInjector(this, WebApplicationContextUtils.getRequiredWebApplicationContext(this.getServletContext()), false)
instead of
new SpringComponentInjector(this)
as recommended in the Wiki: https://cwiki.apache.org/WICKET/spring.html