Uploaded image for project: 'RAML Module Builder'
  1. RAML Module Builder
  2. RMB-95

Resource implementation: runtime Inheritance issue

    XMLWordPrintable

Details

    • CP: Non-roadmap backlog
    • Core: Platform

    Description

      I have the following resource interface correctly generated by the RMB:

      package org.folio.rest.jaxrs.resource;
      ...
      
      @Path("logical-views")
      public interface LogicalViewsResource {
      ...
      

      The corresponding implementation, which correctly resides in org.folio.rest.impl package, other than implementing the interface above, it extends an abstract class (for design reasons):

      package org.folio.rest.impl;
      
      public class LogicalViewAPI extends CatalogingResource implements LogicalViewsResource {
       ...
      }
      

      The build phase is ok, everything is generated and compiled without any error. But at runtime, trying to call the service I get:

      SEVERE: Implementation of org.folio.rest.jaxrs.resource.LogicalViewsResource not found in org.folio.rest.impl
      java.lang.ClassNotFoundException: Implementation of org.folio.rest.jaxrs.resource.LogicalViewsResource not found in org.folio.rest.impl
      	at org.folio.rest.tools.utils.InterfaceToImpl.convert2Impl(InterfaceToImpl.java:94)
      	at org.folio.rest.RestVerticle.route(RestVerticle.java:380)
      …
      

      TestRail: Results

        Attachments

          Activity

            People

              Unassigned Unassigned
              agazzarini Andrea Gazzarini
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases