Hi maybe just move the rest endpoint to a web module
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-12-15 11:35 GMT+01:00 Ingo Mahnke <[email protected]>: > Hallo, > currenty I try to use Rest-Services with tomee (1.7.4) and have a problem. > Does anybody know a good tuotrial for this (for tomee)? > > During deployment I always get this exception: > error invoking org.apache.openejb.server.cxf.rs.CxfRSService@733037 > java.lang.IllegalStateException: Invalid context 'qvn-server'. Cannot > find context in host localhost > at org.apache.tomee.webservices.TomcatRsRegistry. > createRsHttpListener(TomcatRsRegistry.java:103) > at org.apache.openejb.server.rest.RESTService. > deployApplication(RESTService.java:461) > > > "qvn-server" is the name of the ear-file. This file contains three > ejb-modules and one ejb module contains a class > like this: > > > > ................. > @Stateless > @LocalBean > @Path("/subscriber") > public class SubscriberService { > > > @GET > @Produces(MediaType.APPLICATION_JSON) > @Path("{id}") > public MailingListSubscriber read(@PathParam("id") long id) { > ..... > > return new MailingListSubscriber(); > } > > > } > ................... > > Is it nessesary to make some setup within tomee (context.xml)? > I tried this but with no success? > > > Thank you > Ingo > > > >
