If you're not on Spring Framework 3.2.7 or later, this won't work by default.
See SPR-11340 for details.
As a work-around, you can declare your test class as follows
@WebAppConfiguration
@ContextConfiguration("/applicationContext.xml")
@TestExecutionListeners({
ServletTestExecutionListener.class,
DependencyInjectionTestExecutionListener.class,
DirtiesContextTestExecutionListener.class
})
public class Test2 extends AbstractTestNGSpringContextTests { /* ... */ }
Regards,
Sam