Search code examples
deploymentjettyeclipse-wtp

Jetty deployment error


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:

How can I fix this?


Solution

  • download annotations-api.jar

    download and include the above jar in your classpath