Skip to main content

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

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

Back to the top