解决JBoss7部署应用时Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest的错误

最近用JBoss部署WEB应用时报出了一个警告错误

15:50:06,865 WARN [org.jboss.as.ee] (MSC service thread 1-13) JBAS011006: Not installing optional component org.springframework.web.context.request.async.StandardServletAsyncWebRequest due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class org.springframework.web.context.request.async.StandardServletAsyncWebRequest
at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_05]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_05]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_05]

吓我一跳,但测试应用功能一切正常,部署在resin3.x、tomcat6和JBoss4下均没有问题,估计是JBoss7本身的问题,在stackoverflow上找到的解决方案,记录一下以备后查

修改JBoss的配置文件,如果是以standalone模式就修改standalone.xml,添加行号为5-9的代码

 1 <profile>
 2         <subsystem xmlns="urn:jboss:domain:logging:1.1">
 3             <console-handler name="CONSOLE">
 4                 <level name="INFO"/>
 5                 <filter>
 6                     <not>
 7                         <match pattern="JBAS011006"/>
 8                     </not>
 9                 </filter>
10                 .........

原问题地址:http://stackoverflow.com/questions/13922221/jbas011006-not-installing-optional-component-standardservletasyncwebrequest-due

本文地址:http://www.cnblogs.com/wangjiajun/p/4203373.html

原文地址:https://www.cnblogs.com/wangjiajun/p/4203373.html