Luca Masini created TOMEE-990:
---------------------------------
Summary: Bad error report for @Stateful JAX-RS EndPoint
Key: TOMEE-990
URL: https://issues.apache.org/jira/browse/TOMEE-990
Project: TomEE
Issue Type: Bug
Affects Versions: 1.5.2
Environment: maven 3.0.3, Mac OS, JDK 1.7.0_10
Reporter: Luca Masini
I tried to create this JAX-RS EndPoint:
@Path("dispatcher")
@Stateful
@SessionScoped
@TransactionAttribute(TransactionAttributeType.NEVER)
@Interceptors(LogInterceptor.class)
public class MobileDispatcher implements Serializable { }
and instead of reporting me that a Stateful EJB can't be a JAX-RS EndPoint this exception
is raised:
Caused by: org.apache.openejb.server.rest.OpenEJBRestRuntimeException: can't find context
at org.apache.openejb.server.rest.EJBRestServiceInfo.<init>(EJBRestServiceInfo.java:27)
at org.apache.openejb.server.rest.RESTService.getRestEjbs(RESTService.java:390)
at org.apache.openejb.server.rest.RESTService.afterApplicationCreated(RESTService.java:105)
at org.apache.tomee.webservices.TomeeJaxRsService.afterApplicationCreated(TomeeJaxRsService.java:51)
... 24 more
Looking at the sources I found that in RESTService.java at line 376 there is a check "bean.restService"
that prevent the bean to have a beanContext, but then the Exception is raised and we don't
know the exact reason.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
|