gpt4 book ai didi

java - WebLogic:URL 映射不起作用

转载 作者:行者123 更新时间:2023-12-04 17:21:33 25 4
gpt4 key购买 nike

我在 web.xml 中有几个 JSP 和一个映射到每个 JSP 的 URL。底部以 <servlet-name>7770015020</servlet-name> 开头的链接不要在浏览器中工作(在它之前有一条评论说“OTHER FEEDS”。但是,如果我将该 servlet 定义和映射移动到顶部,那么它就可以在浏览器中访问。我在这里达到了一些限制吗?我当我在 WebLogic 中部署 war 时不会出现错误。顶部的其他链接有效。

<web-app>
<description>JSP Test MOCK</description>

<!-- ********************************************************************** -->
<!-- <servlet> <servlet-name>test</servlet-name> <jsp-file>/WEB-INF/7770015010/test.jsp</jsp-file>
<init-param> <param-name>hello</param-name> <param-value>test</param-value>
</init-param> </servlet> <servlet-mapping> <servlet-name>test</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/test1</url-pattern>
</servlet-mapping> <servlet-mapping> <servlet-name>test</servlet-name> <url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/test2/*</url-pattern>
</servlet-mapping> -->
<!-- ********************************************************************** -->



<!-- ********************************************************************** -->
<!-- ******** TEST GOOD FEED ************* -->
<!-- ********************************************************************** -->
<!-- ********************************************************************** -->



<servlet>
<servlet-name>7770015010</servlet-name>
<jsp-file>/WEB-INF/7770015010/feed.jsp</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/benefits/integratedCare/careCoordinatorProfiles
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<!-- ******** TEST GOOD LINKS ************* -->
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectdoc_absoluteurl_samebase_singledocname.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_absoluteurl_samebase_singledocname.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/good_subjectdoc_absoluteurl_samebase_singledocname.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectdoc_relativeurl_noext
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_relativeurl_noext
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/good_subjectdoc_relativeurl_noext
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectdoc_docname_noext
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_docname_noext</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/good_subjectdoc_docname_noext
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectdoc_folder_endslash
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_folder_endslash
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/good_subjectdoc_folder_endslash/*
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectdoc_extrafolders_docname_ext.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_extrafolders_docname_ext.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/x/y/z/good_subjectdoc_extrafolders_docname_ext.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectdoc_extrafolders_docname_noext
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_extrafolders_docname_noext
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/x/y/z/good_subjectdoc_extrafolders_docname_noext
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->

<servlet>
<servlet-name>7770015010-good_subjectdoc_extrafolders_folder_endslash
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_extrafolders_folder_endslash
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/x/y/z/good_subjectdoc_extrafolders_folder_endslash/*
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectddoc_absoluteurl_pathdifferentfrombase.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectddoc_absoluteurl_pathdifferentfrombase.xml
</servlet-name>
<url-pattern>/testnewpath/good_subjectddoc_absoluteurl_pathdifferentfrombase.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-good_subjectdoc_nocharset_in_httpheaders.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_nocharset_in_httpheaders.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-good_subjectdoc_nocharset_in_httpheaders.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/good_subjectdoc_nocharset_in_httpheaders.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->

<!-- ******** TEST BAD LINKS ************* -->
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_bad_relativelink_startatAA.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/good_subjectdoc_absoluteurl_samebase_singledocname.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_bad_relativelink_startatAA.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_bad_relativelink_startatAA.xml
</url-pattern>
</servlet-mapping>
<!-- ***********************************************`*********************** -->
<servlet>
<servlet-name>7770015010-ERROR_404_error_subjectdoc_nohtmlerrorpage.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_404_error_subjectdoc_nohtmlerrorpage.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_404_error_subjectdoc_nohtmlerrorpage.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_404_error_subjectdoc_nohtmlerrorpage.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->

<servlet>
<servlet-name>7770015010-ERROR_407_subjectdoc_textheader_error_onprintlntext.html
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_407_subjectdoc_textheader_error_onprintlntext.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_407_subjectdoc_textheader_error_onprintlntext.html
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_407_subjectdoc_textheader_error_onprintlntext.html
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->

<servlet>
<servlet-name>7770015010-ERROR_500_subjectdoc_htmlheader_error_realhtmlerrorpage.html
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_500_subjectdoc_htmlheader_error_realhtmlerrorpage.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_500_subjectdoc_htmlheader_error_realhtmlerrorpage.html
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_500_subjectdoc_htmlheader_error_realhtmlerrorpage.html
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->

<servlet>
<servlet-name>7770015010-ERROR_500_subjectdoc_xmlheader_xmlsubjectdoc.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_500_subjectdoc_xmlheader_xmlsubjectdoc.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_500_subjectdoc_xmlheader_xmlsubjectdoc.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_500_subjectdoc_xmlheader_xmlsubjectdoc.xml
</url-pattern>
</servlet-mapping>

<!-- ********************************************************************** -->

<servlet>
<servlet-name>7770015010-ERROR_404_subjectdoc_xmlheader_error_onjspxmlpage.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_404_subjectdoc_xmlheader_error_onjspxmlpage.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_404_subjectdoc_xmlheader_error_onjspxmlpage.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_404_subjectdoc_xmlheader_error_onjspxmlpage.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_200_subjectdoc_htmlheader_error_jspredirect_toerrorjsphtml.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_200_subjectdoc_htmlheader_error_jspredirect_toerrorjsphtml.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_200_subjectdoc_htmlheader_error_jspredirect_toerrorjsphtml.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_200_subjectdoc_htmlheader_error_jspredirect_toerrorjsphtml.xml</url-pattern>
</servlet-mapping>
<!-- ********** REDIRECT TO THIS ACTUAL HTML ERROR PAGE ******** -->
<servlet>
<servlet-name>7770015010-ERROR_200_subjectdoc_htmlheader_error_weblogicredirect_toerrorjsphtml_ACTUALERRORPAGE.jsp
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_200_subjectdoc_htmlheader_error_weblogicredirect_toerrorjsphtml_ACTUALERRORPAGE.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>
7770015010-ERROR_200_subjectdoc_htmlheader_error_weblogicredirect_toerrorjsphtml_ACTUALERRORPAGE.jsp
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_200_subjectdoc_htmlheader_error_weblogicredirect_toerrorjsphtml_ACTUALERRORPAGE.jsp
</url-pattern>
</servlet-mapping>

<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html.xml
</url-pattern>
</servlet-mapping>
<!-- ********** REDIRECT TO THIS ACTUAL HTML ERROR PAGE ******** -->
<servlet>
<servlet-name>7770015010-ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html_ACTUALERRORPAGE.jsp
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html_ACTUALERRORPAGE.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html_ACTUALERRORPAGE.jsp
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_500_subjectdoc_htmlheader_error_jspredirect_toerror_500html_ACTUALERRORPAGE.jsp
</url-pattern>
</servlet-mapping>


<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_404_subjectdoc_htmlheader_error_weblogicredirect_toerrorjsphtml.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_404_subjectdoc_htmlheader_error_weblogicredirect_toerrorjsphtml.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
<!-- Define an error handler for 404 pages -->
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_404_subjectdoc_htmlheader_error_weblogicredirect_toerrorjsphtml.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/doesntexist.xml
</url-pattern>
</servlet-mapping>

<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_407_validfeedcontent.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_407_validfeedcontent.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_407_validfeedcontent.xml</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_407_validfeedcontent.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_malformed_xml_subjectdoc.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_malformed_xml_subjectdoc.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_malformed_xml_subjectdoc.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_malformed_xml_subjectdoc.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_nonxml_html_subjectdoc_htmlheader.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_nonxml_html_subjectdoc_htmlheader.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_nonxml_html_subjectdoc_htmlheader.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_nonxml_html_subjectdoc_htmlheader.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_differentxml_subjectdoc_xmlheader.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_differentxml_subjectdoc_xmlheader.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_differentxml_subjectdoc_xmlheader.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_differentxml_subjectdoc_xmlheader.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_validsubjecdoc_badheadercontenttype.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_validsubjecdoc_badheadercontenttype.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_validsubjecdoc_badheadercontenttype.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_validsubjecdoc_badheadercontenttype.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_nodata_onsubjectdoc_goodheader_goodheader.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_nodata_onsubjectdoc_goodheader_goodheader.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_nodata_onsubjectdoc_goodheader_goodheader.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_nodata_onsubjectdoc_goodheader_goodheader.xml
</url-pattern>
</servlet-mapping>

<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_nosubjectdoc_feed_dasextensiononly_errors.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_nosubjectdoc_feed_dasextensiononly_errors.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_nosubjectdoc_feed_dasextensiononly_errors.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_nosubjectdoc_feed_dasextensiononly_errors.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_pointtonoserver_noheaders.xml
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_pointtonoserver_noheaders.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_pointtonoserver_noheaders.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_pointtonoserver_noheaders.xml
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015010-ERROR_pointtoserver_behindfirewall_noheaders
</servlet-name>
<jsp-file>/WEB-INF/7770015010/ERROR_pointtoserver_behindfirewall_noheaders.jsp
</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015010-ERROR_pointtoserver_behindfirewall_noheaders.xml
</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015010/path/path2/ERROR_pointtoserver_behindfirewall_noheaders.xml
</url-pattern>
</servlet-mapping>
<!-- ******************** OTHER FEEDS ************************************************** -->
<servlet>
<servlet-name>7770015020</servlet-name>
<jsp-file>/WEB-INF/7770015020/feed.jsp</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015020</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015020/benefits/integratedCare/careCoordinatorProfiles
</url-pattern>
</servlet-mapping>
<!-- ********************************************************************** -->
<servlet>
<servlet-name>7770015030</servlet-name>
<jsp-file>/WEB-INF/7770015030/feed.jsp</jsp-file>
<init-param>
<param-name>hello</param-name>
<param-value>test</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>7770015030</servlet-name>
<url-pattern>/2.16.840.1.113883.3.42.10001.100001.12/7770015030/benefits/integratedCare/careCoordinatorProfiles
</url-pattern>
</servlet-mapping>

...{DELETED}
</web-app>

最佳答案

我不确定为什么它不能按照您编写的方式工作(您似乎确实达到了某种限制),但是有一个内置的 JSP servlet,您可以将其映射到根上下文,然后以与所需路径一致的方式命名您的 JSP。如果这不够灵活,请编写您自己的 servlet,将其映射到根上下文,编写逻辑以您希望的任何方式映射所有内容,然后简单地在代码中实例化和调用 JspServlet。

您使用的是什么版本的 Weblogic?你试过更新吗?是否有可能您的一个映射中存在细微的语法错误,并且它和它之后的任何映射都没有加载?

关于java - WebLogic:URL 映射不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10455186/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com