Tomcat error: Not Found in ExternalContext as a Resource

前端 未结 2 1235
谎友^
谎友^ 2020-12-11 09:07

I got this error when I tried to access my development site via http://localhost/home/index.html which redirects to http://localhost/home/views/main/index.xhtml:

<         


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

    I have no idea how your code which is responsible for the redirect look like, but

    /views/main/index*.xhtml
    

    definitely doesn't look right. What is that asterisk doing there? Fix the code accordingly that this asterisk isn't emitted in the view ID anymore.

    0 讨论(0)
  • 2020-12-11 09:51

    I solved the problem: It was just a config issue with web.xml.

    I declared webapp version as 2.0 in web.xml instead of 3.0 for Tomcat 7.

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