What's the exact version you're using?
IT happend with jboss-as-7.1.1.Final and with jboss-as-7.1.0.Final.
NullPointerException is always a bad sign. This seems to be coming from Weld code. Can you post this in the weld user forum and point them to this thread?
Nevermind, I just realized that the Weld user forums are hosted right here at community.jboss.org. So I've moved this thread in that forum for you. Someone there might be able to help.
Thanks. This seems to have sovled the problem.
I've got the same problem. How do you upgrade Weld while it is embedded in JBoss AS 7.1.1 ?
you can simply replace the JBOSS_HOME/modules/org/jboss/weld/core/main/weld-core.jar with the latest 1.1.x version, 1.1.12.Final at the moment (don't forget to omit the version info).
It a manual process (as far as I know and remember .... haven't work with this in a while) . Download the weld .1.1.6 Final lor later from http://www.seamframework.org/Weld/Downloads,,,
Extract then copy files in artifacts/weld too relevent locations...
weld-api.jar -- <-- jboss-as-7.1.1.Final install -->/modules/org/jboss/weld/api/main
weld-core.jar - <-- jboss-as-7.1.1.Final install -->/modules/org/jboss/weld/core/main
weld-spi.jar -- <-- jboss-as-7.1.1.Final install -->/modules/org/jboss/weld/spi/main
In each of the above there a module.xml file .... make sure that the jar files are refrence in these file ...only update <resource-root path="weld-spi.jar"/>
Example ... (for weld-spi,jar )
<module xmlns="urn:jboss:module:1.1" name="org.jboss.weld.spi">
<property name="jboss.api" value="private"/>
<!-- Insert resources here -->
AFAIK you don't need to upgrade the API and SPI. And if you omit the artifact version the modules.xml file remains the same...
Thank's for all. Its works.
Note that I only found 1.1.10 and not 1.1.12 like suggested by Martin.
Indeed, it is only necessary to update weld-core.jar, and it nicely fixes the problem.
A diff of weld-api.jar and weld-spi.jar bundled with JBoss 7.1.1.Final and weld 1.1.10.Final proves these files stayed the same.