IBM RAD 8.5.1 の Java Web プロジェクトに新しいサーブレット マッピングを追加したい
私のアプリケーションにはすでに 2 つの既存のサーブレットがあります: ServletOne と ServletTwo
しかし、新しい > サーブレット マッピングを実行すると、ウィザードで次のエラーが表示されます。
This wizard is not applicable for projects without web.xml file.
web.xml はプロジェクトに既に存在し、次の内容が含まれています。
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<display-name>MyApplication</display-name>
<servlet>
<servlet-name>ServletOne</servlet-name>
<servlet-class>com.myclass.ClassOne</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>ServletTwo</servlet-name>
<servlet-class>com.myclass.ClassTwo</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<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>
</web-app>
web.xml の場所は次のとおりです: /WebContent/WEB-INF/
サーブレット マッピングを web.xml ソース xml ファイルに直接追加しようとしましたが、サーブレット名に次のエラーが表示されます。
The value is not among the possible selectors
誰でも助けてもらえますか?