Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jersey-dev] Jersey error : The resource configuration is not modifiable in this context


AFAIK you get a similar error if there are multiple resources with the same path annotations. I ran into this when I copied a resource class and forgot to adjust the path annotations.

Not sure if this is the cause for your error. But it may be worth to double check.


Am Fr., 17. Apr. 2020 um 13:42 Uhr schrieb Sonali Dasgupta <sonalidasgupta95.2011@xxxxxxxxx>:
Hi Team,

I would greatly appreciate if you could help me out with the below issue, which is a high priority issue for my work project.

I have two web applications deployed at the same host and port but with different endpoint URIs. When I try to stop the server which runs these two web applications, I get the below error with the below stack trace :

2020-04-16 16:09:03.502 WARN  [pool-13-thread-1] org.eclipse.jetty.server.handler.ContextHandler.ROOT - unavailable
java.lang.IllegalStateException: The resource configuration is not modifiable in this context.
	at org.glassfish.jersey.server.ResourceConfig$ImmutableState.register(
	at org.glassfish.jersey.server.ResourceConfig$ImmutableState.register(
	at org.glassfish.jersey.server.ResourceConfig.register(
	at org.glassfish.jersey.servlet.WebComponent.<init>(
	at org.glassfish.jersey.servlet.ServletContainer.init(
	at org.glassfish.jersey.servlet.ServletContainer.init(
	at javax.servlet.GenericServlet.init(
	at org.eclipse.jetty.servlet.ServletHolder.initServlet(
	at org.eclipse.jetty.servlet.ServletHolder.initialize(
	at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(
	at org.eclipse.jetty.servlet.ServletHandler.initialize(
	at org.eclipse.jetty.servlet.ServletHandler.updateMappings(
	at org.eclipse.jetty.servlet.ServletHandler.setServletMappings(
I have tried my best to share all the information possible, but could not share the exact use case since it involves confidential projects. I would be extremely grateful if you could please help me out with this issue.

Thanks and Regards,
Sonali Dasgupta
jersey-dev mailing list
To unsubscribe from this list, visit


Back to the top