[GLASSFISH-17869] Unable to expose an EJB as a JAX-RS service Created: 01/Dec/11  Updated: 01/Nov/16

Status: Open
Project: glassfish
Component/s: jax-rs
Affects Version/s: 3.1.1
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: atrajano Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


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;

public class HelloWorld {
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


as well

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

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

Comment by atrajano [ 01/Dec/11 ]

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

Comment by Jakub Podlesak [ 01/Nov/16 ]

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

Generated at Fri Feb 24 11:45:22 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.