Fix strange weld error occurring on WildFly.