Websphere中未拾取欢迎文件列表

Websphere中未拾取欢迎文件列表,websphere,welcome-file,Websphere,Welcome File,我有一个特殊的问题。我们在web.xml中有欢迎文件列表。当我们在tomcat/JBoss上部署war并在欢迎文件列表中没有html文件的情况下点击URL时,应用程序被正确重定向。但是,在Websphere中没有发生相同的重定向。我们还需要做些什么才能让它在Websphere上工作吗 web.xml的片段- <filter> <filter-name>AppFilter</filter-name> <filter-class>com.proj.fi

我有一个特殊的问题。我们在web.xml中有欢迎文件列表。当我们在tomcat/JBoss上部署war并在欢迎文件列表中没有html文件的情况下点击URL时,应用程序被正确重定向。但是,在Websphere中没有发生相同的重定向。我们还需要做些什么才能让它在Websphere上工作吗

web.xml的片段-

<filter>
<filter-name>AppFilter</filter-name>
<filter-class>com.proj.filters.AppFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>AppFilter</filter-name>
<url-pattern>/index.html</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>

应用过滤器
com.proj.filters.AppFilter
应用过滤器
/index.html
index.html

我们所期望的是,当我们点击应用程序url时,它应该带有欢迎文件,并且应该调用我的过滤器。这可以在JBoss上使用,但不能在Websphere上使用。

在您的index.html加载中?你的index.html在哪里?index.html没有加载。它位于应用程序根目录中。请尝试以下操作:在服务器->服务器->Web容器设置->Web容器->自定义属性中,设置com.ibm.ws.webcontainer.invokefilterscompatibility=true如果不起作用,请尝试以下操作:com.ibm.ws.webcontainer.mapFiltersToAsterisk=true com.ibm.ws.webcontainer.removetrailingservletpathslash=true com.ibm.ws.webcontainer.invokeFiltersCompatibility=trueHi,很抱歉,前面提到过,我们也做了上述设置。