Add to your code
context.setConfigurations(new Configuration[] { new AnnotationConfiguration(), new WebXmlConfiguration(), new WebInfConfiguration(), new TagLibConfiguration(), new PlusConfiguration(), new MetaInfConfiguration(), new FragmentConfiguration(), new EnvConfiguration() });
You only need to set AnnotationConfiguration to get automatic detection of annotated classes. The rest of the configurations are for you to enable other aspects of the container. Presumably, you should be able to do this from the command line using OPTIONS = annotations, jsp, (etc.), but I never got this working. At least in this way, it should pick your annotated classes correctly in the embedded environment.
Just as a side note, it seems that the Eclipse jetty design by default is canceled, while riptide claims to be enabled by default. I assume this is the difference in the configuration files.
Jeff miller
source share