1 Reply Latest reply on Apr 6, 2010 7:04 PM by maxradin

    JAX-RS No application context active seam 2.1

    maxradin
      I'm getting this error (No application context active) when invoking a web service on 2.1 from a client on another server. The service is included in an ear file which is a successfully deployed app.

      My webservice is doing something identical to the seambay example:

      e.g.    CategoryAction catAction = (CategoryAction) Component.getInstance(
                  CategoryAction.class, true);

      The error occurs trying to call 'Component.getInstance'...

      The non-seam aspect of the service works just no seam context or injection - I read that I have to configure a url/servlet mapping but don't know where to do this. I look at the seambay example and do not see where a servlet mapping so that it has an application context.

      thanks
      Max