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(ResourceConfig.java:274)
at org.glassfish.jersey.server.ResourceConfig$ImmutableState.register(ResourceConfig.java:221)
at org.glassfish.jersey.server.ResourceConfig.register(ResourceConfig.java:453)
at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:385)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:170)
at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:362)
at javax.servlet.GenericServlet.init(GenericServlet.java:244)
at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:671)
at org.eclipse.jetty.servlet.ServletHolder.initialize(ServletHolder.java:428)
at org.eclipse.jetty.servlet.ServletHandler.lambda$initialize$0(ServletHandler.java:750)
at java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:352)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:483)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:743)
at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:742)
at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:744)
at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1449)
at org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1536)
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