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

        atrajano created issue -
        Hide
        atrajano added a comment -

        It's just morbid curiosity and laziness... I just didn't want to create another package to contain the EJB.

        Show
        atrajano added a comment - It's just morbid curiosity and laziness... I just didn't want to create another package to contain the EJB.
        Martin Grebac made changes -
        Field Original Value New Value
        Assignee Bhakti Mehta [ bhaktimehta ]
        Component/s jax-rs [ 10646 ]
        Component/s web_services [ 10623 ]
        Joe Di Pol made changes -
        Assignee Jakub Podlešák [ japod ]
        Priority Major [ 3 ] Minor [ 4 ]
        Hide
        Jakub Podlesak added a comment -

        re-assigning, as i am no longer part of the GlassFish team

        Show
        Jakub Podlesak added a comment - re-assigning, as i am no longer part of the GlassFish team
        Jakub Podlesak made changes -
        Assignee Jakub Podlesak [ japod ]

          People

          • Assignee:
            Unassigned
            Reporter:
            atrajano
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: