tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Soto <>
Subject EJB and REST
Date Sun, 13 Apr 2014 17:54:27 GMT
Hello I am developing a RESTful service. My first approach has been
creating a creating a class and annotating as @Sateless EJB and also using
@Path to be a REST point too and it worked.
In my next iteration I have modified a bit that class by extracting an
interface with REST annotations and then the EJB simply implements that


public interface CatalogService {



    public List<Gift> catalog();



public class CatalogServiceImpl implements CatalogService {


    GiftCatalogService giftCatalogService;


    public List<Gift> catalog() {

        return this.giftCatalogService.giftCatalog();



Than I have created my Arquillian test and next exception is thrown:

*INFO: Started Ejb(deployment-id=GiftCatalogService,
ejb-name=GiftCatalogService, container=Default Stateless Container)*

*abr 13, 2014 7:41:12 PM org.apache.openejb.assembler.classic.Assembler

*INFO: Deployed

*abr 13, 2014 7:41:13 PM

*SEVERE: error invoking


* at

* at*

* at*

* at*

* at

I have noticed that the EJB is deployed correctly but when tries to
"decorate" with REST it throws this exception. Am I doing something wrong
or there is something not implemented on Apache CXF.

Also I have on classpath next dependencies with arquillian-tomee-embedded:













  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message