Thank you!!
> Gesendet: Donnerstag, 15. Dezember 2016 um 11:53 Uhr > Von: "Andy Gumbrecht" <[email protected]> > An: "[email protected]" <[email protected]> > Betreff: Re: TomEE and Rest > > Here's a good resource project: > > http://www.tomitribe.com/blog/2014/06/apache-tomee-jax-rs-and-arquillian-starter-project/ > > You might also want to add something like this to give you a path context > for rest calls: > > https://github.com/tomitribe/rest-example/blob/master/src/main/java/org/superbiz/rest/ApplicationConfig.java > > TomEE logging is usually pretty good, so scan the log files for other > issues or warnings. > > Andy. > > On 15 December 2016 at 11:35, Ingo Mahnke <[email protected]> wrote: > > > 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 > > > > > > > > > > > -- > Andy Gumbrecht > https://twitter.com/AndyGeeDe > http://www.tomitribe.com >
