artifact searchonly snapshot versions (1.1.0 and 1.1.3) are found. Where are the final releases?
1. download https://repository.jboss.org/nexus/content/groups/public/org/jboss/weld/weld-osgi-bundle/1.1.2.Final/weld-osgi-bundle-1.1.2.Final.jar (2.5MB)
or download http://maven.glassfish.org/content/groups/glassfish/org/jboss/weld/weld-osgi-bundle/1.1.2.Final/weld-osgi-bundle-1.1.2.Final.jar (2.5MB)
2. rename weld-osgi-bundle.jar
3. overwrite %GLASSFISH_HOME%\glassfish\modules\weld-osgi-bundle.jar
4. restart GlassFish
Glassfish v3 and new versions of Weld
quote from https://cwiki.apache.org/EXTCDI/problems-with-weld.html
Usually it's possible to upgrade Glassfish with the newest version of Weld. That's not the case with Weld v1.1.2 due to a cache which broke the integration with Glassfish at least up to v3.1.1. Since CODI will resolve the first bean you will see e.g. something like: Critical error during deployment: java.lang.NoClassDefFoundError: org/jboss/weld/context/cache/RequestScopedBeanCache at org.apache.myfaces.extensions.cdi.core.api.config.CodiCoreConfig$Proxy$$$WeldClientProxy.isAdvancedQualifierRequiredForDependencyInjection(CodiCoreConfig$Proxy$$$WeldClientProxy.java). However, that isn't a CODI bug. If you use the version of weld which is supported by Glassfish officially, you won't have such problems.