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.

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.

  • 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}
    via by Michael Ahern,
  • 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}
    via by Michael Ahern,
  • Servlet GoogleChart / httpService.registerServlet
    via by Lars Bretschneider,
    • 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)
    No Bugmate found.