Servlets 在RAD中指定servlet映射时出错
我想在IBMRAD8.5.1中的JavaWeb项目中添加一个新的servlet映射 我的应用程序中已有两个servlet: ServletOne和ServletTwo 但是,当我执行new>servlet映射时,向导中会出现以下错误:Servlets 在RAD中指定servlet映射时出错,servlets,web.xml,ibm-rad,servlet-mapping,Servlets,Web.xml,Ibm Rad,Servlet Mapping,我想在IBMRAD8.5.1中的JavaWeb项目中添加一个新的servlet映射 我的应用程序中已有两个servlet: ServletOne和ServletTwo 但是,当我执行new>servlet映射时,向导中会出现以下错误: This wizard is not applicable for projects without web.xml file. web.xml已存在于项目中,并包含以下内容: <?xml version="1.0" encoding="UTF-8"?&g
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复制粘贴吗?你在标记名中有一些非法的空格,这显然会造成麻烦。哦,是的,当我在这里复制它时,空格出现了。我纠正它。
The value is not among the possible selectors