Why would “java.lang.IllegalStateException: The resource configuration is not modifiable in this context.” appear deploying Jersey app?

前端 未结 15 868
孤街浪徒
孤街浪徒 2020-11-30 15:06

I have created an app implementing REST services locally using:

Eclipse Indigo Jersey 2.4 Tomcat 7.0.47

When running locally using Eclipse, the services work

15条回答
  •  眼角桃花
    2020-11-30 15:31

    I got the same error message. For me the problem was, that I used @RequestMapping (a Spring annotation) instead of the @QueryParam (JAX-RS annotation) on a method argument due to a copy paste. The error message was not that informative, but that was the problem for me.

提交回复
热议问题