我们正在从JBoss AS 6.3升级到wildfly 11.0.0 final。将应用程序部署到新服务器后,启动服务器时收到以下错误。
Servlet MerchantWebServiceSoapImpl(Soap实现类)未实现javax.servlet.Servlet。
Jboss 6.3早期的Soap组件运行良好,但在最终迁移到wildfly 11.0.0后,我们遇到了以下问题。
下面是我的web.xml配置:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
id="WebApp_ID" version="3.0">
<servlet>
<servlet-name>MerchantWebServiceSoapImpl</servlet-name>
<servlet-class>com.demo.MerchantWebServiceSoapImpl</servlet-class>
</servlet>
<servlet>
<servlet-name>CXFServlet</servlet-name>
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MerchantWebServiceSoapImpl</servlet-name>
<url-pattern>/WebService/MerchantWebServiceSoap</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>CXFServlet</servlet-name>
<url-pattern>/WebService/*</url-pattern>
</servlet-mapping>
</web-app>