java.lang.ClassNotFoundException: org.glassfish.jersey.servlet.ServletContainer

后端 未结 10 1458
名媛妹妹
名媛妹妹 2020-12-14 20:58

You may feel this is a duplicated question, but none of the questions with the same title solve my problems. I am using Jersey 2.0 creating a RESTful web service in Eclipse,

10条回答
  •  死守一世寂寞
    2020-12-14 21:47

    I would like to add, I had the same problem and @Edin's answer worked, however I was using IntelliJ. So I thought I would add a way to do this for Intellij (for future people like me):

    1. File
    2. Project Structure
    3. Artifacts
    4. You should have an Artifact there named after your project, select it
    5. On the right, you will see a list Available Elements
    6. Select all the available elements, right click, then select the option that adds them to the WEB-INF/Lib

提交回复
热议问题