1
欢迎文件在主机上显示不正确。Web.xml:欢迎文件显示不正确
的web.xml:
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
在本地的Tomcat:
http://localhost:8099/Teal-0.1-BETA/是OK
等于
http://localhost:8099/Teal-0.1-BETA/index.html是OK
上托管:
http://domain/index.html是OK
http://domain/当我看到这是显示不正确也显示不正确
:
http://domain/index.xhtml
我怀疑web.xml
配置。看起来像.html
与.xhtml
扩展中的问题。
真实的文件名是index.xhtml
你有'server.xml'吗? –
Tomcat版本? –
而且,它是什么意思,“不正确”。 –