glassfish
  1. glassfish
  2. GLASSFISH-17869

Unable to expose an EJB as a JAX-RS service

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1.1
    • Fix Version/s: None
    • Component/s: jax-rs
    • Labels:
      None

      Description

      I created a simple EJB that looks like this

      package com.example;

      import javax.ejb.Stateless;
      import javax.ws.rs.GET;
      import javax.ws.rs.Path;

      @Stateless
      @Path("hello")
      public class HelloWorld {
      @GET
      public String getString()

      { return toString(); }

      }

      And packaged it in an EAR and deployed it, but there was no indicator in the logs as to what the end point URL is.

      I have tried

      @Path("/hello")

      as well

      http://localhost:8080/hello yields a 404

      I can't find it in the spec whether this is allowed or not.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Jakub Podlesak
            Reporter:
            atrajano
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: