users@glassfish.java.net

Re: How to test the jsr-299 on gfv3

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 23 Oct 2009 21:27:38 +0200

Hi,

Add the following dependency:

         <dependency>
             <groupId>org.jboss.weld</groupId>
             <artifactId>weld-osgi-bundle</artifactId>
             <version>1.0.0-CR1-SP1</version>
             <scope>provided</scope>
         </dependency>

and also remember to include a beans.xml in the WEB-INF:

<?xml version="1.0" encoding="UTF-8"?>
<beans/>

The class javax.webeans.Current no longer exists. After changes
required to depend on 330 you need to use javax.inject.Inject.

Paul.

On Oct 23, 2009, at 8:38 PM, Paulo Cesar Reis wrote:

> Hi,
>
> How can I test the latest jsr-299 on glassfish v3 preview? Im using
> maven2 to build my project so I’ve tried to include the follow api:
>
> <dependency>
> <groupId>org.jboss.weld</groupId>
> <artifactId>weld-api</artifactId>
> <version>1.0-CR1</version>
> <scope>provided</scope>
> </dependency>
>
> But I couldn’t find a lot of things like @Current and so. The GFV3
> does have the implementation of the jsr-299 and how can I include
> the api in my project?
>
> Thanks.