Jboss7 EAP:UT010009:类型类org.springframework.web.servlet.DispatcherServlet的Servlet远程处理没有实现javax.servlet.Servlet

时间:2016-12-29 15:39:29

标签: java spring maven servlets jboss

我尝试在Jboss7 EAP上部署我的战争,但我发现此消息错误:UT010009:类型类org.springframework.web.servlet.DispatcherServlet的Servlet远程处理未实现javax.servlet.Servlet。

15:04:14,541 ERROR [org.jboss.msc.service.fail](MSC服务线程1-2)MSC000001:无法启动服务jboss.undertow.deployment.default-server.default-host./myproject .UndertowDeploymentInfoService:服务中的org.jboss.msc.service.StartException jboss.undertow.deployment.default-server.default-host./myproject.UndertowDeploymentInfoService:无法启动服务         at org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl.java:1904)         在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)         at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:617)         在java.lang.Thread.run(Thread.java:745) 引起:java.lang.IllegalArgumentException:UT010009:类型类org.springframework.web.servlet.DispatcherServlet的Servlet远程处理未实现javax.servlet.Servlet         at io.undertow.servlet.api.ServletInfo。(ServletInfo.java:98)         在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.createServletConfig(UndertowDeploymentInfoService.java:731)         在org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService.start(UndertowDeploymentInfoService.java:283)         at org.jboss.msc.service.ServiceControllerImpl $ StartTask.startService(ServiceControllerImpl.java:1948)         at org.jboss.msc.service.ServiceControllerImpl $ StartTask.run(ServiceControllerImpl.java:1881)         ......还有3个

15:04:14,544 ERROR [org.jboss.as.controller.management-operation](ServerService线程池 - 91)WFLYCTL0013:操作(“添加”)失败 - 地址:([(“deployment”=> ;“myproject.war”)]) - 失败描述:{“WFLYCTL0080:失败的服务”=> {“jboss.undertow.deployment.default-server.default-host./myproject.UndertowDeploymentInfoService”=> “服务jboss.undertow.deployment.default-server.default-host./myproject.UndertowDeploymentInfoService中的org.jboss.msc.service.StartException:无法启动服务     引起:java.lang.IllegalArgumentException:UT010009:类型类org.springframework.web.servlet.DispatcherServlet的Servlet远程处理未实现javax.servlet.Servlet“}} 15:04:14,546错误[org.jboss.as.server](ServerService线程池 - 91)WFLYSRV0021:部署部署“myproject.war”已回滚,并显示以下失败消息: {“WFLYCTL0080:服务失败”=> {“jboss.undertow.deployment.default-server.default-host./myproject.UndertowDeploymentInfoService”=> “服务jboss.undertow.deployment.default-server.default-host./myproject.UndertowDeploymentInfoService中的org.jboss.msc.service.StartException:无法启动服务     引起:java.lang.IllegalArgumentException:UT010009:类型类org.springframework.web.servlet.DispatcherServlet的Servlet远程处理未实现javax.servlet.Servlet“}}

我的Web.xml:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">  
  <welcome-file-list> 
    <welcome-file>index.jsp</welcome-file> 
  </welcome-file-list>  
  <context-param> 
    <param-name>contextConfigLocation</param-name>  
    <param-value>WEB-INF/web-applicationContext.xml</param-value> 
  </context-param>  
  <listener> 
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> 
  </listener>  
  <listener> 
    <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> 
  </listener>  
  <servlet> 
    <servlet-name>remoting</servlet-name>  
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> 
	<load-on-startup>1</load-on-startup>
  </servlet>  
  <servlet-mapping> 
    <servlet-name>remoting</servlet-name>  
    <url-pattern>/remoting/*</url-pattern> 
  </servlet-mapping>
	<servlet>
		<description></description>
		<display-name>ExportReportServlet</display-name>
		<servlet-name>ExportReportServlet</servlet-name>
		<servlet-class>ma.hps.powercard.administration.base.serviceimpl.ExportReportServlet</servlet-class>
	</servlet>
	<servlet-mapping>
		<servlet-name>ExportReportServlet</servlet-name>
		<url-pattern>/remoting/ExportReportServlet</url-pattern>
	</servlet-mapping>
	
</web-app>

1 个答案:

答案 0 :(得分:0)

解决方案是使用弹簧3.2。+而不是弹簧2.5.6。 我认为Jboss7与spring 2.5.6不兼容