问题
据我了解,在 RAP 中,每个 servlet 请求都应该通过 Equinox Servlet Bridge。这包括帮助页面,它们是 org.eclipse.help.webapp 插件中的 JSP 文件。
我在 Web.xml 中有以下 Servlet 映射:
<servlet-mapping>
<servlet-name>equinoxbridgeservlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
如果我将我的应用程序部署到 websphere 中,则我无法打开帮助,并且我收到此错误:
看来,WebSphere 只是忽略了我的意愿,我什至想用 equinox servlet 处理“/index.jsp”url。
已经尝试过
我尝试了Web 容器的com.ibm.ws.webcontainer.enableJspMappingOverride自定义属性,但没有帮助。
在文档中指出:
当在 web.xml 文件的 jsp-property-group 中定义 url-pattern 时,它通常映射到 JavaServer Page (JSP) 引擎并由其处理。如果您的应用程序必须覆盖此映射以便它们可以自己处理和提供 JSP 内容,请将 com.ibm.ws.webcontainer.enableJspMappingOverride 属性设置为 true。
我还在 web xml 中添加了以下代码段,但它也没有帮助:
<jsp-config>
<jsp-property-group>
<description>Enables using help webapp JSP pages with Websphere</description>
<url-pattern>*.jsp</url-pattern>
</jsp-property-group>
</jsp-config>
您知道如何让 WebSphere 将我的请求与 *.jsp URL 分开,并让 Equinox 桥接使其工作吗?