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

coderanch.com | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Jersey Response issue driving me batty! (Web Services forum at JavaRanch)

    coderanch.com | 1 year ago
    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
  2. 0

    Jersey Response issue driving me batty! (Web Services forum at Coderanch)

    coderanch.com | 6 months ago
    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
  3. 0

    Jersey Response issue driving me batty!

    Coderanch | 5 years ago | 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [GLASSFISH-18482] WEB9031: WebappClassLoader unable to load resource - Java.net JIRA

    java.net | 1 year ago
    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
  6. 0

    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.

    Java.net JIRA | 5 years ago | cowwoc
    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

    30 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. Web Container Common Utilities
      WebappClassLoader.loadClass
      1. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1410)
      2. org.glassfish.web.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1368)
      2 frames
    3. jersey-core
      AbstractRuntimeDelegate.createResponseBuilder
      1. com.sun.jersey.core.spi.factory.ResponseBuilderImpl.<init>(ResponseBuilderImpl.java:67)
      2. com.sun.jersey.core.spi.factory.AbstractRuntimeDelegate.createResponseBuilder(AbstractRuntimeDelegate.java:99)
      2 frames
    4. JavaEE 7
      Response.status
      1. javax.ws.rs.core.Response$ResponseBuilder.newInstance(Response.java:356)
      2. javax.ws.rs.core.Response.status(Response.java:127)
      2 frames
    5. mytest
      CommunityMapResource.getCommunityMapJSON
      1. mytest.CommunityMapResource.getCommunityMapJSON(CommunityMapResource.java:67)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      2. com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
      3. com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      4. com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
      5. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      6. com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
      7. com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      8. com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      9. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
      10. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
      11. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
      12. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
      12 frames
    8. Jersey
      ServletContainer.service
      1. com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
      2. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
      3. com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
      3 frames
    9. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      1 frame
    10. Glassfish Core
      StandardPipeline.invoke
      1. org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
      2. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
      3. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      4. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      5. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      5 frames
    11. Glassfish
      PESessionLockingStandardPipeline.invoke
      1. com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      2. com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      2 frames
    12. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      2. org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      3. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      3 frames
    13. Kernel Classes
      ContainerMapper.service
      1. com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
      1 frame
    14. Grizzly WS
      AbstractThreadPool$Worker.run
      1. com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
      2. com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
      3. com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
      4. com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      5. com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      6. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      7. com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      8. com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      9. com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      10. com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      11. com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      12. com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      13. com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      13 frames
    15. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)
      1 frame