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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content