users@glassfish.java.net

Re: JAX-RS on Glassfish 3.1: _at_EJB injection?

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 16 Jun 2010 14:46:34 +0200

On Jun 16, 2010, at 2:35 PM, glassfish_at_javadesktop.org wrote:

> First bug filed: https://glassfish.dev.java.net/issues/show_bug.cgi?id=12268
>
> This relates to the fact that the ear/lib directory is not scanned
> for resource classes.


It works for me with GF 3.1 b04, as described in the previous email:

INFO: Initiating Jersey application, version 'Jersey: 1.1.5 01/20/2010
04:04 PM'
INFO: Adding the following classes declared in META-INF/services/
jersey-server-components to the resource configuration:
  class com.sun.jersey.multipart.impl.FormDataMultiPartDispatchProvider
  class com.sun.jersey.multipart.impl.MultiPartConfigProvider
  class com.sun.jersey.multipart.impl.MultiPartReader
  class com.sun.jersey.multipart.impl.MultiPartWriter
INFO: Instantiating the Application class, named
ljnelson.frobnicator.war.Application. The following root resource and
provider classes are registered: [class
ljnelson.frobnicator.jaxrs.FrobnicatorResource]

Paul.


> The Java EE 6 specification implies that it should be. A discussion
> on the Jersey mailing list also indicates that this should be
> possible: http://jersey.576304.n2.nabble.com/Specification-question-regarding-packaging-td4941418.html#a4941418
>
> I will file another bug related to dependency injection.
> [Message sent by forum member 'ljnelson']
>
> http://forums.java.net/jive/thread.jspa?messageID=474478
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>