*.xhtml url-pattern causes java.lang.NullPointerException at com.sun.faces.context.flash.ELFlash.loggingGetPhaseMapForReading

前端 未结 2 1925
北恋
北恋 2020-12-11 19:40

I am trying to force JSF to process my welcome file. I have set the servlet-mapping in my web.xml to the following:

&         


        
相关标签:
2条回答
  • 2020-12-11 20:11

    It turns out that the problem was actually being caused by my faces-config.xml file. I had copied from an older project which was using JSF 1.2, whereas I was using 2.1. Once I changed that, the problem went away.

    0 讨论(0)
  • 2020-12-11 20:14

    For me <url-pattern>*.xhtml</url-pattern> works absolutely fine. Just wondering, where did you put your index.xhtml?

    0 讨论(0)
提交回复
热议问题