I have deployed a project in Jetty (jetty-wtp plugin) in an Eclipse “Server”. When I start the Jetty server the console output an error:
java.lang.NoClassDefFoundError: javax/annotation/security/RunAs
I also added common-annotations.jar to this project lib but cann’t resolve this problem.
My installed environment:
- JDK 1.6.0
- jetty 8.0.0.M2
- jetty-wtp http://download.eclipse.org/jetty/updates/jetty-wtp/development
How can I fix this?
download annotations-api.jar
download and include the above jar in your classpath