Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-451

spring proxied resource isn't able to call sub-resource locator

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 1.2.1.GA, 2.0.1.GA
    • None
    • None

      add the following code to the class org.jboss.resteasy.examples.contacts.services.ContactServiceImpl
      in the project spring-hibernate-contacts-services:

      -------------------
      @Path("/subresource")
      public Object subresource()

      { return new SubResource(); }

      public static class SubResource {
      @GET
      public String get()

      { return "response from SubResource"; }

      }
      -------------------

      rerun mvn install
      rerun mvn jetty:run

      open url in browser: http://localhost:9095/services/contactservice/subresource

      throws
      java.lang.IllegalArgumentException: object is not an instance of declaring class

              patriot1burke@gmail.com Bill Burke (Inactive)
              mlinhard Michal Linhard (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: