-
Bug
-
Resolution: Done
-
Minor
-
2.4.2.Final, 3.0.0.CR2
-
None
JandexDiscoveryStrategy tries to process classes from WEB-INF/lib jars, but the ClassInfo is not available for these classes (because they are not added to the index).
It manifests like:
Caused by: java.lang.NullPointerException at org.jboss.weld.environment.deployment.discovery.jandex.JandexDiscoveryStrategy.containsBeanDefiningAnnotation(JandexDiscoveryStrategy.java:138) at org.jboss.weld.environment.deployment.discovery.jandex.JandexDiscoveryStrategy.processAnnotatedDiscovery(JandexDiscoveryStrategy.java:93) at org.jboss.weld.environment.deployment.discovery.AbstractDiscoveryStrategy.performDiscovery(AbstractDiscoveryStrategy.java:128) at org.jboss.weld.environment.servlet.WeldServletLifecycle.createDeployment(WeldServletLifecycle.java:300) at org.jboss.weld.environment.servlet.WeldServletLifecycle.initialize(WeldServletLifecycle.java:156) at org.jboss.weld.environment.servlet.EnhancedListener.onStartup(EnhancedListener.java:61) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5156) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 10 more