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

One possible cause is that you have two or more applicable mappings for that URL call.

For example:

@Path(“/{myParam}”)

And somewhere else:

@Path(“/{differentParam}”)

Now Jersey have no way of telling what method is actually supposed to be called and gives this error.

Leave a Comment