[
https://issues.apache.org/jira/browse/TOMEE-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla resolved TOMEE-990.
-----------------------------------
Resolution: Auto Closed
Hi there!
We wanted to reach out and let you know that we're currently working on
cleaning up open issues in Jira that specifically impact unsupported versions,
including 1.7.x, 7.0.x, and 7.1.x.
If you had previously reported this issue on one of these unsupported versions,
we kindly ask you to check if the problem still persists and can be reproduced
on a supported version such as 8.0.x or 9.0.x. If you find that it is indeed
reproducible on a supported version, you're more than welcome to re-open this
issue.
Thanks!
> 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
> Priority: Major
>
> 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 was sent by Atlassian Jira
(v8.20.10#820010)