我在我的 Servlet 类中创建了一个 servlet 映射作为/reskilling 。当我运行应用程序时,url 包含项目名称。这是一个 WebSphere Web 应用程序,它是我的 EAR 项目的一部分。我需要 ibm-web-bnd.xmi 来解决这个问题吗?
这是我的 web.xml
<display-name>HibernateReskillingWeb</display-name>
<servlet>
<description>Paid Up Plan List</description>
<display-name>PaidUpPlanServlet</display-name>
<servlet-name>PaidUpPlanServlet</servlet-name>
<servlet-class>za.co.test.PaidUpPlanServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>PaidUpPlanServlet</servlet-name>
<url-pattern>/reskilling</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
错误信息如下所示...
HTTP Error Code: 404
Error Message:JSPG0036E: Failed to find resource /HibernateReskillingWeb/views/PaidUpPlan.jsp
Root Cause:java.io.FileNotFoundException: JSPG0036E: Failed to find resource /HibernateReskillingWeb/views/PaidUpPlan.jsp at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.findWrapper(AbstractJSPExtensionProcessor.java:395)...