java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I don't know if this is related to GLASSFISH-14416 but every time I deploy my webapp on a fresh Glassfish instance I get this error: {code} INFO: Scanning for root resource and provider classes in the packages: com.homesforhumans.resource INFO: Root resource classes found: class com.homesforhumans.resource.PostalCodesResource INFO: No provider classes found. INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM' INFO: WEB0671: Loading application [com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT] at [/context] INFO: com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT was successfully deployed in 2,238 milliseconds. INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] INFO: Grizzly Framework 1.9.46 started in: 3ms - bound to [0.0.0.0:8181] SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [javax.ws.rs.core.Response$Status], because it has not yet been started, or was already stopped at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1401) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at com.sun.jersey.core.spi.factory.ResponseBuilderImpl.<init>(ResponseBuilderImpl.java:67) at com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.createResponseBuilder(AbstractRuntimeDelegate.java:99) at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:356) at javax.ws.rs.core.Response.status(Response.java:104) at com.sun.jersey.api.Responses.status(Responses.java:127) at com.sun.jersey.api.Responses.notFound(Responses.java:103) at com.sun.jersey.api.NotFoundException.<init>(NotFoundException.java:68) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1484) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:895) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:843) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:804) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) {code} I'm attaching my project file for your review.
    via by cowwoc,
  • I don't know if this is related to GLASSFISH-14416 but every time I deploy my webapp on a fresh Glassfish instance I get this error: {code} INFO: Scanning for root resource and provider classes in the packages: com.homesforhumans.resource INFO: Root resource classes found: class com.homesforhumans.resource.PostalCodesResource INFO: No provider classes found. INFO: Initiating Jersey application, version 'Jersey: 1.12 02/15/2012 04:51 PM' INFO: WEB0671: Loading application [com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT] at [/context] INFO: com.homesforhumans_HomesForHumans_war_1.0-SNAPSHOT was successfully deployed in 2,238 milliseconds. INFO: WEB0169: Created HTTP listener [http-listener-2] on host/port [0.0.0.0:8181] INFO: Grizzly Framework 1.9.46 started in: 3ms - bound to [0.0.0.0:8181] SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [javax.ws.rs.core.Response$Status], because it has not yet been started, or was already stopped at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1401) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at com.sun.jersey.core.spi.factory.ResponseBuilderImpl.<init>(ResponseBuilderImpl.java:67) at com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.createResponseBuilder(AbstractRuntimeDelegate.java:99) at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:356) at javax.ws.rs.core.Response.status(Response.java:104) at com.sun.jersey.api.Responses.status(Responses.java:127) at com.sun.jersey.api.Responses.notFound(Responses.java:103) at com.sun.jersey.api.NotFoundException.<init>(NotFoundException.java:68) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1484) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:895) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:843) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:804) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) {code} I'm attaching my project file for your review.
    via by cowwoc,
  • Jersey Response issue driving me batty!
    via by Manny Garcia,
    • java.lang.IllegalStateException: WEB9031: WebappClassLoader unable to load resource [javax.ws.rs.core.Response$Status], because it has not yet been started, or was already stopped at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1401) at org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1359) at com.sun.jersey.core.spi.factory.ResponseBuilderImpl.<init>(ResponseBuilderImpl.java:67) at com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.createResponseBuilder(AbstractRuntimeDelegate.java:99) at javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:356) at javax.ws.rs.core.Response.status(Response.java:104) at com.sun.jersey.api.Responses.status(Responses.java:127) at com.sun.jersey.api.Responses.notFound(Responses.java:103) at com.sun.jersey.api.NotFoundException.<init>(NotFoundException.java:68) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1484) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1414) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1363) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1353) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:414) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:895) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:843) at com.sun.jersey.spi.container.servlet.ServletContainer.doFilter(ServletContainer.java:804) at com.google.inject.servlet.FilterDefinition.doFilter(FilterDefinition.java:163) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:58) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    25 more bugmates