You cannot autowire dependencies like that because Servlets are not Spring Beans. You need to do something like the following:
@Override
public void init() throws ServletException {
super.init();
ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
component= applicationContext.getBean(MyComponent.class);
}
Also drop the @Autowired
annotation from component