简体   繁体   中英

Eclipse Help of RAP 2.0 application does not work with WebSphere 8.5.5.0

Problem

As far as I understand in RAP every single servlet request should go through the Equinox Servlet Bridge. This includes the Help pages, which are JSP files inside the org.eclipse.help.webapp plugin.

I have the following Servlet Mapping in the Web.xml:

  <servlet-mapping>
    <servlet-name>equinoxbridgeservlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>

If I deploy my application into websphere, then I cannot open the help, and I get this error: 在此处输入图片说明

It seems, that WebSphere simply ignores my will, that I want to handle even the "/index.jsp" url with the equinox servlet.

Already Tried

I tried the com.ibm.ws.webcontainer.enableJspMappingOverride custom property of the web container, but it did not help.

In the documentation it is stated:

When a url-pattern is defined in the jsp-property-group of the web.xml, file, it is typically mapped to, and handled by the JavaServer Page (JSP) engine. If you have applications that must override this mapping so that they can handle and serve the JSP content themselves, set the com.ibm.ws.webcontainer.enableJspMappingOverride property to true.

I also added the following snippet to the web xml, but it also did not help:

  <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>

Do you have any idea how to make WebSphere to leave my requests with *.jsp URLs alone, and let equinox bridge to make its work?

It seems, that the custom property is neccessary, but not enough. I need an extra servlet mapping as described here .

So the mapping should look like this:

  <servlet-mapping>
    <servlet-name>equinoxbridgeservlet</servlet-name>
    <url-pattern>/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>equinoxbridgeservlet</servlet-name>
    <url-pattern>*.jsp</url-pattern>
  </servlet-mapping>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM