Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-7381

Error in Jersey / Rest APIs on WebSphere Liberty Profile

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 3.6.0
    • Fix Version/s: None
    • Component/s: REST API
    • Labels:
      None
    • Environment:

      RedHat 6.6 x86_64
      IBM JDK 8.0
      WebSphere Liberty 8.5.5.5

      Description

      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.

      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]
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              ibmmike Michael Ahern
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: