Why JBoss is unable to process WebListener annotation class inside the static module using jandex?

Solution Verified - Updated -

Issue

  • While implementing context listener with @WebListener annotation. If the class is kept in the WAR, then it is working fine. But if the class is kept in static module, then it doesn't work. Generated the jandex.idx file and configured the annotations attribute in jboss-deployment-structure.xml file.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.