Hello Ilia, This works out of the box. With not enough info I d say you put cxf in the webapp instead of letting tomee do the deployment.
This service https://github.com/rmannibucau/rblog/blob/master/src/main/java/com/github/rmannibucau/rblog/jaxrs/PostResource.java for instance use asynv jaxrs features - Suspended - and the app has no web.xml Le 7 août 2016 09:36, "shortname" <[email protected]> a écrit : > I'm trying to deploy war-file with JAX-RS service (without web.xml, > annotations only) and this service works fine on Glassfish and Wildfly > without web.xml. Tomee 7.0.1 throws NullPointerException because > ContinuationProvider not found in context (I'm using @Suspended > AsyncResponse). > > I found this article http://blog.clempinch.com/asyn > c-rest-cxf-and-the-continuations-api/ which suggest to add > async-supported tag to web.xml. > > Can I enable async support in META-INF/context.xml for example? Or this > support should be enabled by default for JAX-RS? > > Best regards, Ilia >
