Hi Konstantin, thanks for the report! This is really odd but it wouldn't be the first time we're experiencing problems with Jetty embedded. So far I haven't found the problem. A curious thing - if I try to debug the Main from Eclipse IDE I cannot reproduce the problem.
Also note that you should not annotate servlets with @ApplicationScoped but rather with @Vetoed - see also http://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#javaee_components. Of course, this does not solve this concrete issue - you would get unsatisfied dependency later (i.e. not during CDI beans validation).
|