javax.servlet.ServletException: None of the declared classpath locations, WEB-INF/lib/artifactory-rest-3.6.0.jar, could be resolved. This could be because the default deployment configuration that scans for classes in classpath locations is not supported. Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages.

JFrog JIRA | Michael Ahern | 2 years ago
  1. 0

    In testing out the Docker feature of Artifactory 3.6 on WebSphere Liberty 8.5.5.5 I ran into issues using the REST API to obtain an authentication token. All other functionality worked as expected. I also tried tweaking the class loader to see if that would help: <classloading useJarUrls="true"/> This setting change had no affect. {code} Exception thrown by application class 'com.sun.jersey.spi.container.servlet.WebComponent.getPaths:793' javax.servlet.ServletException: None of the declared classpath locations, WEB-INF/lib/artifactory-rest-3.6.0.jar, could be resolved. This could be because the default deployment configuration that scans for classes in classpath locations is not supported. Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages. at com.sun.jersey.spi.container.servlet.WebComponent.getPaths(WebComponent.java:793) at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:714) at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:676) at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:201) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556) at javax.servlet.GenericServlet.init(GenericServlet.java:161) at org.artifactory.rest.servlet.ArtifactoryRestServlet.delayedInit(ArtifactoryRestServlet.java:68) at org.artifactory.rest.servlet.ArtifactoryRestServlet.init(ArtifactoryRestServlet.java:58) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:330) at [internal classes] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:193) at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:87) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:314) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:190) at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:152) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:67) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:92) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] {code}

    JFrog JIRA | 2 years ago | Michael Ahern
    javax.servlet.ServletException: None of the declared classpath locations, WEB-INF/lib/artifactory-rest-3.6.0.jar, could be resolved. This could be because the default deployment configuration that scans for classes in classpath locations is not supported. Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages.
  2. 0

    In testing out the Docker feature of Artifactory 3.6 on WebSphere Liberty 8.5.5.5 I ran into issues using the REST API to obtain an authentication token. All other functionality worked as expected. I also tried tweaking the class loader to see if that would help: <classloading useJarUrls="true"/> This setting change had no affect. {code} Exception thrown by application class 'com.sun.jersey.spi.container.servlet.WebComponent.getPaths:793' javax.servlet.ServletException: None of the declared classpath locations, WEB-INF/lib/artifactory-rest-3.6.0.jar, could be resolved. This could be because the default deployment configuration that scans for classes in classpath locations is not supported. Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages. at com.sun.jersey.spi.container.servlet.WebComponent.getPaths(WebComponent.java:793) at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:714) at com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:676) at com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:201) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373) at com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556) at javax.servlet.GenericServlet.init(GenericServlet.java:161) at org.artifactory.rest.servlet.ArtifactoryRestServlet.delayedInit(ArtifactoryRestServlet.java:68) at org.artifactory.rest.servlet.ArtifactoryRestServlet.init(ArtifactoryRestServlet.java:58) at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:330) at [internal classes] at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:193) at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:87) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] at org.artifactory.webapp.servlet.AccessFilter.useAuthentication(AccessFilter.java:314) at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:190) at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:152) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:67) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:92) at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:206) at [internal classes] {code}

    JFrog JIRA | 2 years ago | Michael Ahern
    javax.servlet.ServletException: None of the declared classpath locations, WEB-INF/lib/artifactory-rest-3.6.0.jar, could be resolved. This could be because the default deployment configuration that scans for classes in classpath locations is not supported. Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages.
  3. 0

    zwave hanging after reloading the jar

    GitHub | 3 years ago | marcelrv
    javax.servlet.ServletException: Resource configuration class, org.openhab.io.rest.RESTApplication, is not a super class of class javax.ws.rs.core.Application
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HTTP status 500 - The server encountered an internal error () that prevented it from fulfilling this request

    Stack Overflow | 5 years ago | Mad-D
    javax.servlet.ServletException: Resource configuration class, validatorService.ValidatorServiceConfig, is not a super class of class javax.ws.rs.core.Application
  6. 0

    Servlet GoogleChart / httpService.registerServlet

    Google Groups | 4 years ago | Lars Bretschneider
    javax.servlet.ServletException: Resource configuration class, org.openhab.persistence.db4o.rest.internal.db4oRestService, could not be loaded

    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. javax.servlet.ServletException

      None of the declared classpath locations, WEB-INF/lib/artifactory-rest-3.6.0.jar, could be resolved. This could be because the default deployment configuration that scans for classes in classpath locations is not supported. Try using the package scanning configuration, see the JavaDoc for com.sun.jersey.api.core.PackagesResourceConfig and the property com.sun.jersey.config.property.packages.

      at com.sun.jersey.spi.container.servlet.WebComponent.getPaths()
    2. Jersey
      ServletContainer.init
      1. com.sun.jersey.spi.container.servlet.WebComponent.getPaths(WebComponent.java:793)
      2. com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:714)
      3. com.sun.jersey.spi.container.servlet.WebComponent.createResourceConfig(WebComponent.java:676)
      4. com.sun.jersey.spi.container.servlet.WebComponent.init(WebComponent.java:201)
      5. com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:373)
      6. com.sun.jersey.spi.container.servlet.ServletContainer.init(ServletContainer.java:556)
      6 frames
    3. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:161)
      1 frame
    4. org.artifactory.rest
      ArtifactoryRestServlet.init
      1. org.artifactory.rest.servlet.ArtifactoryRestServlet.delayedInit(ArtifactoryRestServlet.java:68)
      2. org.artifactory.rest.servlet.ArtifactoryRestServlet.init(ArtifactoryRestServlet.java:58)
      2 frames
    5. WebSphere
      ServletWrapper.init
      1. com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:330)
      1 frame