-
1. Re: Is there a weld-osgi-bundle 1.1.2 for glassfish anywhere?
alesj Aug 3, 2011 5:49 AM (in response to healeyb) -
2. Re: Is there a weld-osgi-bundle 1.1.2 for glassfish anywhere?
ranophoenix Aug 3, 2011 6:30 AM (in response to healeyb)Searching for
weld-osgi-bundle
inartifact search
only snapshot versions (1.1.0 and 1.1.3) are found. Where are the final releases? -
3. Re: Is there a weld-osgi-bundle 1.1.2 for glassfish anywhere?
ratking Aug 21, 2011 11:33 PM (in response to healeyb)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 -
4. Re: Is there a weld-osgi-bundle 1.1.2 for glassfish anywhere?
ratking Aug 22, 2011 1:47 AM (in response to healeyb)but...sorry...
:-(Glassfish v3 and new versions of Weld
quote from https://cwiki.apache.org/EXTCDI/problems-with-weld.htmlUsually 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.
-
5. Re: Is there a weld-osgi-bundle 1.1.2 for glassfish anywhere?
ratking Oct 20, 2011 7:27 AM (in response to healeyb)Just download and try GlassFish v3.1.2 (promoted, beta), which ships with Weld 1.1.2