JBossJSFConfigureListener java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath() when starting JBoss

Solution Verified - Updated -

Issue

  • The following exception in the JBoss server log on startup:
    INFO  [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
    INFO  [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-0.0.0.0-8009
    INFO  [Catalina] Initialization processed in 1382 ms
    INFO  [StandardService] Starting service jboss.web
    INFO  [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.GA_CP
    ERROR [ContainerBase] Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener java.lang.NoSuchMethodError: javax.servlet.ServletContext.getContextPath()Ljava/lang/String;
            at com.sun.faces.config.ConfigureListener.getServletContextIdentifier(ConfigureListener.java:506)
            at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:139)
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.2
    • 4.3

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.