remove @Component from resource

and set contextlocation in webinitializer to ""