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

后端 未结 10 1468
名媛妹妹
名媛妹妹 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:50

    While all of the above could apply (Eclipse is not the most credible application) make sure that you have double checked your maven dependencies. You should note that for jersey 2.19 I had to add these 2 maven dependencies:

        
            org.glassfish.jersey.containers
            jersey-container-servlet
            2.19
        
        
            org.glassfish.jersey.core
            jersey-server
            2.19
        
    

提交回复
热议问题