【发布时间】:2014-01-07 12:56:57
【问题描述】:
问题
据我所知,在 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 自定义属性,但没有帮助。
documentation 中写道:
当在 jsp-property-group 中定义 url-pattern 时 web.xml,文件,它通常被映射到并由 JavaServer 页面 (JSP) 引擎。如果您的应用程序必须 覆盖此映射,以便他们可以处理和服务 JSP 内容自己,设置 com.ibm.ws.webcontainer.enableJspMappingOverride 属性为 true。
我还在 web xml 中添加了以下 sn-p,但它也没有帮助:
<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 桥接使其工作吗?
【问题讨论】:
标签: eclipse jsp websphere equinox eclipse-rap