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

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: Jakub Podlesak
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.

Generated at Mon Nov 30 11:24:46 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.