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