Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2357

JandexDiscoveryStrategy fails with NPE on embedded Tomcat with "unpackWars=false"

    XMLWordPrintable

    Details

      Description

      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
      
      

        Attachments

          Activity

            People

            Assignee:
            tremes Tomas Remes
            Reporter:
            tremes Tomas Remes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: