sobota 1. února 2014

@Focus annotated method raised before @PostConstruct method

I had a problem with my application today. NPE occured in @Focus annotated method on one of my parts. I found out that @PostConstruct annotated method wasn't called at all. It was caused by wrong imported package javax.inject. Obviously there is one such package contained in JRE/JDK so you need to import bundled one. The difference is in min. version. Example of wrong and correct configuration can be seen below:
Correct configuration
Wrong configuration


Žádné komentáře:

Okomentovat