catch NoClassDefFoundError when trying to resolve annotations